Abhijeet Kushe
01/20/2023, 1:08 AMMayank
Kartik Khare
01/20/2023, 3:26 AMrobert zych
01/20/2023, 4:59 AMAbhijeet Kushe
01/20/2023, 11:37 AMAbhijeet Kushe
01/20/2023, 11:41 AMAbhijeet Kushe
01/20/2023, 11:42 AMAbhijeet Kushe
01/20/2023, 11:43 AMselect ToDateTime(eventTimestamp, 'yyyy-MM-dd HH:mm:ss.SSS') as eventTimestamp,createdOn, $segmentName, "accountId", "workflowDefinitionId", "workflowInstanceId", "workflowRunningId", "recordType", "taskId", "taskKind", "attributeId", "automationFlowId", "contactId", "campaignActivityId", "sendId",orderNumber, softDelete from workflowEvents where accountId = 1100678423876 AND campaignActivityId = '528680c5-6b72-4e7d-8a9b-febe061d28e7' AND activityType = 'null' AND recordType = 'attribution' AND softDelete = 'null' order by eventTimestamp desc limit 50
eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber softDelete
2023-01-19 21:11:54.709 1642972105000 workflowEvents__1__191__20230119T1352Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:Shopify:1003 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 a9a0c958-39da-4d39-932e-118214590009 1003 null
Output #2
eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber softDelete
2023-01-19 21:11:54.709 1642972105000 workflowEvents__1__191__20230119T1352Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:Shopify:1003 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 a9a0c958-39da-4d39-932e-118214590009 1003 null
2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__0__20220720T1533Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null nullKartik Khare
01/20/2023, 11:44 AMAbhijeet Kushe
01/20/2023, 11:46 AM$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber softDelete
cdp-dl-pinot-k8s-server-0.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2023-01-19 21:11:54.709 1642972105000 workflowEvents__1__191__20230119T1352Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:Shopify:1003 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 a9a0c958-39da-4d39-932e-118214590009 1003 nullAbhijeet Kushe
01/20/2023, 11:46 AM$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber softDelete
cdp-dl-pinot-k8s-server-2.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2023-01-19 21:11:54.709 1642972105000 workflowEvents__1__191__20230119T1352Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:Shopify:1003 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 a9a0c958-39da-4d39-932e-118214590009 1003 null
cdp-dl-pinot-k8s-server-2.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__0__20220720T1533Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null nullKartik Khare
01/20/2023, 11:48 AMAbhijeet Kushe
01/20/2023, 11:49 AMAbhijeet Kushe
01/20/2023, 11:49 AMKartik Khare
01/20/2023, 11:50 AMAbhijeet Kushe
01/20/2023, 11:54 AM{
"REALTIME": {
"tableName": "workflowEvents_REALTIME",
"tableType": "REALTIME",
"segmentsConfig": {
"timeType": "MILLISECONDS",
"schemaName": "workflowEvents",
"retentionTimeUnit": "DAYS",
"retentionTimeValue": "1826",
"timeColumnName": "eventTimestamp",
"allowNullTimeValue": false,
"replicasPerPartition": "3",
"segmentPushType": "APPEND"
},
"tenants": {
"broker": "DefaultTenant",
"server": "DefaultTenant"
},
"tableIndexConfig": {
"streamConfigs": {
"streamType": "kinesis",
"stream.kinesis.topic.name": "qa-events-stream",
"region": "us-east-1",
"shardIteratorType": "LATEST",
"stream.kinesis.consumer.type": "lowlevel",
"stream.kinesis.fetch.timeout.millis": "30000",
"stream.kinesis.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder",
"stream.kinesis.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kinesis.KinesisConsumerFactory",
"realtime.segment.flush.threshold.size": "5000000",
"realtime.segment.flush.threshold.time": "1d"
},
"rangeIndexVersion": 1,
"autoGeneratedInvertedIndex": false,
"createInvertedIndexDuringSegmentGeneration": false,
"loadMode": "MMAP",
"enableDefaultStarTree": false,
"aggregateMetrics": false,
"enableDynamicStarTreeCreation": false,
"nullHandlingEnabled": false
},
"metadata": {
"customConfigs": {}
},
"routing": {
"instanceSelectorType": "strictReplicaGroup"
},
"upsertConfig": {
"mode": "FULL",
"hashFunction": "NONE"
},
"isDimTable": false
}
}Abhijeet Kushe
01/20/2023, 11:54 AM{
"schemaName": "workflowEvents",
"dimensionFieldSpecs": [
{
"name": "accountId",
"dataType": "LONG"
},
{
"name": "recordType",
"dataType": "STRING"
},
{
"name": "workflowDefinitionId",
"dataType": "STRING"
},
{
"name": "workflowDefinitionName",
"dataType": "STRING"
},
{
"name": "workflowDefinitionVersion",
"dataType": "STRING"
},
{
"name": "workflowInstanceId",
"dataType": "STRING"
},
{
"name": "workflowRunningId",
"dataType": "STRING"
},
{
"name": "workflowPrimaryId",
"dataType": "STRING"
},
{
"name": "workflowSecondaryId",
"dataType": "STRING"
},
{
"name": "workflowStatus",
"dataType": "STRING"
},
{
"name": "taskId",
"dataType": "STRING"
},
{
"name": "taskName",
"dataType": "STRING"
},
{
"name": "taskKind",
"dataType": "STRING"
},
{
"name": "taskStatus",
"dataType": "STRING"
},
{
"name": "taskResult",
"dataType": "STRING"
},
{
"name": "taskSkipped",
"dataType": "STRING"
},
{
"name": "campaignId",
"dataType": "STRING"
},
{
"name": "campaignActivityId",
"dataType": "STRING"
},
{
"name": "contactId",
"dataType": "STRING"
},
{
"name": "automationFlowId",
"dataType": "STRING"
},
{
"name": "automationTemplateId",
"dataType": "STRING"
},
{
"name": "sendId",
"dataType": "STRING"
},
{
"name": "currencyCode",
"dataType": "STRING"
},
{
"name": "attributeId",
"dataType": "STRING"
},
{
"name": "channel",
"dataType": "STRING"
},
{
"name": "correlationId",
"dataType": "STRING"
},
{
"name": "activityType",
"dataType": "STRING"
},
{
"name": "softDelete",
"dataType": "STRING"
},
{
"name": "workflowNamespace",
"dataType": "STRING",
"defaultNullValue": "ctct:dp:rmf"
},
{
"name": "workflowDisplayName",
"dataType": "STRING"
},
{
"name": "workflowAccountId",
"dataType": "STRING"
},
{
"name": "attributeType",
"dataType": "STRING"
},
{
"name": "attributionType",
"dataType": "STRING"
},
{
"name": "storeFrontName",
"dataType": "STRING"
},
{
"name": "storeFrontType",
"dataType": "STRING"
},
{
"name": "checkoutToken",
"dataType": "STRING"
},
{
"name": "cartToken",
"dataType": "STRING"
},
{
"name": "orderNumber",
"dataType": "STRING"
},
{
"name": "bounceCode",
"dataType": "STRING"
},
{
"name": "urlId",
"dataType": "STRING"
},
{
"name": "linkUrl",
"dataType": "STRING"
},
{
"name": "messageId",
"dataType": "STRING"
},
{
"name": "isBilled",
"dataType": "STRING"
},
{
"name": "deviceType",
"dataType": "STRING"
}
],
"metricFieldSpecs": [
{
"name": "sentCount",
"dataType": "LONG"
},
{
"name": "openCount",
"dataType": "LONG"
},
{
"name": "clickCount",
"dataType": "LONG"
},
{
"name": "bounceCount",
"dataType": "LONG"
},
{
"name": "totalOrderAmount",
"dataType": "LONG"
},
{
"name": "totalOrderAmt",
"dataType": "DOUBLE"
},
{
"name": "send",
"dataType": "LONG"
},
{
"name": "open",
"dataType": "LONG"
},
{
"name": "click",
"dataType": "LONG"
},
{
"name": "bounce",
"dataType": "LONG"
},
{
"name": "deliver",
"dataType": "LONG"
},
{
"name": "queue",
"dataType": "LONG"
},
{
"name": "totalOrderNum",
"dataType": "LONG"
},
{
"name": "discountAmount",
"dataType": "DOUBLE"
},
{
"name": "tax1Amount",
"dataType": "DOUBLE"
},
{
"name": "numberOfMessageParts",
"dataType": "LONG"
}
],
"dateTimeFieldSpecs": [
{
"name": "eventTimestamp",
"dataType": "LONG",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
},
{
"name": "eventTimestampNanos",
"dataType": "LONG",
"format": "1:NANOSECONDS:EPOCH",
"granularity": "1:NANOSECONDS"
},
{
"name": "createdOn",
"dataType": "LONG",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
},
{
"name": "sendCreatedOn",
"dataType": "LONG",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
},
{
"name": "orderLastModifiedDate",
"dataType": "LONG",
"format": "1:MILLISECONDS:EPOCH",
"granularity": "1:MILLISECONDS"
}
],
"primaryKeyColumns": [
"accountId",
"workflowDefinitionId",
"workflowInstanceId",
"workflowRunningId",
"recordType",
"taskId",
"taskKind",
"attributeId",
"automationFlowId",
"contactId",
"campaignActivityId",
"sendId"
]
}Kartik Khare
01/20/2023, 12:00 PMserver-0 or not - workflowEvents__1__0__20220720T1533ZAbhijeet Kushe
01/20/2023, 12:02 PMAbhijeet Kushe
01/20/2023, 12:37 PMKartik Khare
01/20/2023, 12:37 PMAbhijeet Kushe
01/20/2023, 12:40 PMKartik Khare
01/20/2023, 12:42 PMAbhijeet Kushe
01/20/2023, 12:43 PMAbhijeet Kushe
01/20/2023, 12:43 PM$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber softDelete
cdp-dl-pinot-k8s-server-1.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2023-01-19 21:11:54.709 1642972105000 workflowEvents__1__191__20230119T1352Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:Shopify:1003 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 a9a0c958-39da-4d39-932e-118214590009 1003 nullKartik Khare
01/20/2023, 1:20 PMserver-0 and server-1 have incorrect state somehow. Can you send me the result of the following query from all 3 servers
select $hostName, ToDateTime(eventTimestamp, 'yyyy-MM-dd HH:mm:ss.SSS') as eventTimestamp,
createdOn,
$segmentName,
"accountId",
"workflowDefinitionId",
"workflowInstanceId",
"workflowRunningId",
"recordType",
"taskId", "taskKind", "attributeId", "automationFlowId", "contactId", "campaignActivityId", "sendId",orderNumber, softDelete
from workflowEvents
where accountId = 1100678423876
AND campaignActivityId = '528680c5-6b72-4e7d-8a9b-febe061d28e7'
AND workflowDefinitionId = 'c746f8df-c25a-4768-9093-8a0f96596022'
AND workflowInstanceId = '259e60b1-3e21-4db3-95a1-33b98ae02e4b'
AND workflowRunningId = '0e811aff-1dfe-411e-b942-6ba495b6a661'
AND recordType = 'attribution'
AND taskId = '12ed81dc-0830-43d1-9c0c-50094f1d6604'
AND taskKind = 'grpc'
AND attributeId = 'gif_order:cbbe27299b349eb5ff1c71d9d7ec3416'
AND automationFlowId = 'a66ebfc7-213a-474d-a606-b318646dcd29'
AND contactId = '6b27480e-7c89-11ec-b2bc-fa163ef30863'
AND campaignActivityId = '528680c5-6b72-4e7d-8a9b-febe061d28e7'
AND sendId = 'null'Kartik Khare
01/20/2023, 1:21 PMsendId IS NULLAbhijeet Kushe
01/20/2023, 1:49 PMcdp-dl-pinot-k8s-server-0
$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber activityType softDelete
cdp-dl-pinot-k8s-server-0.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__55__20220913T1548Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null trueAbhijeet Kushe
01/20/2023, 1:49 PMcdp-dl-pinot-k8s-server-1
$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber activityType softDelete
cdp-dl-pinot-k8s-server-1.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__55__20220913T1548Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null trueAbhijeet Kushe
01/20/2023, 1:49 PMcdp-dl-pinot-k8s-server-2
$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber activityType softDelete
cdp-dl-pinot-k8s-server-2.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__0__20220720T1533Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null nullKartik Khare
01/20/2023, 1:52 PMcreatedOn timestamps although in different segment.
What is the activityType in all of these, I missed it in the queryAbhijeet Kushe
01/20/2023, 1:52 PMAbhijeet Kushe
01/20/2023, 1:56 PMAbhijeet Kushe
01/20/2023, 1:57 PMKartik Khare
01/20/2023, 1:57 PMnull beforeAbhijeet Kushe
01/20/2023, 1:57 PMKartik Khare
01/20/2023, 2:00 PMsoftDelete null in server-2 while true in server-1 and server-0
Can you run the same query with option(skipUpsert = true) I am suspecting some events got missed by server-2Abhijeet Kushe
01/20/2023, 2:05 PM$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber activityType softDelete
cdp-dl-pinot-k8s-server-1.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__0__20220720T1533Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null null
cdp-dl-pinot-k8s-server-1.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__55__20220913T1548Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null trueAbhijeet Kushe
01/20/2023, 2:05 PM$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber activityType softDelete
cdp-dl-pinot-k8s-server-0.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__0__20220720T1533Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null null
cdp-dl-pinot-k8s-server-0.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__55__20220913T1548Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null trueAbhijeet Kushe
01/20/2023, 2:05 PM$hostName eventTimestamp createdOn $segmentName accountId workflowDefinitionId workflowInstanceId workflowRunningId recordType taskId taskKind attributeId automationFlowId contactId campaignActivityId sendId orderNumber activityType softDelete
cdp-dl-pinot-k8s-server-2.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__0__20220720T1533Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null null
cdp-dl-pinot-k8s-server-2.cdp-dl-pinot-k8s-server-headless.dp-metrics-pinot.svc.cluster.local 2022-01-23 21:21:10.786 1642972105000 workflowEvents__1__55__20220913T1548Z 1100678423876 c746f8df-c25a-4768-9093-8a0f96596022 259e60b1-3e21-4db3-95a1-33b98ae02e4b 0e811aff-1dfe-411e-b942-6ba495b6a661 attribution 12ed81dc-0830-43d1-9c0c-50094f1d6604 grpc gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 a66ebfc7-213a-474d-a606-b318646dcd29 6b27480e-7c89-11ec-b2bc-fa163ef30863 528680c5-6b72-4e7d-8a9b-febe061d28e7 null null null trueAbhijeet Kushe
01/20/2023, 2:06 PMAbhijeet Kushe
01/20/2023, 2:09 PMKartik Khare
01/20/2023, 2:12 PMeventTimestamp here), we use the segment name for the comparisonKartik Khare
01/20/2023, 2:13 PMAbhijeet Kushe
01/20/2023, 2:14 PMMayank
Kartik Khare
01/20/2023, 2:23 PMAbhijeet Kushe
01/20/2023, 2:23 PMAbhijeet Kushe
01/20/2023, 3:00 PMKartik Khare
01/20/2023, 3:01 PMAbhijeet Kushe
01/20/2023, 3:02 PMrobert zych
01/20/2023, 4:46 PMgif_order:cbbe27299b349eb5ff1c71d9d7ec3416 is missing from server-0 and server-1. As you have "shardIteratorType": "LATEST" in your tableConfig, could it be the case that server-2 consumed this older record (eventTimestamp=*2022*-01-23 21:21:10.786 1642972105000) before server-0 and server-1 began consuming from this topic? Did you perhaps increase your replicasPerPartition recently?Abhijeet Kushe
01/20/2023, 5:03 PMrobert zych
01/20/2023, 7:01 PMskipUpsert=true results for server-0 and server-1 do include taskId=gif_order:cbbe27299b349eb5ff1c71d9d7ec3416 but but with a duplicated eventTimestamp and different values for softDelete (ie null, true). Perhaps server-0 and server-1 processed these records in a different order than server-2? I noticed that your schema includes eventTimestampNanos , assuming that it resolves the duplication, could use that as your comparisonColumn in your upsertConfig and reload your segments?Abhijeet Kushe
01/20/2023, 7:09 PMrobert zych
01/20/2023, 7:30 PMAbhijeet Kushe
01/20/2023, 7:35 PMrobert zych
01/20/2023, 7:45 PMAbhijeet Kushe
01/20/2023, 7:46 PMrobert zych
01/20/2023, 8:00 PMAbhijeet Kushe
01/20/2023, 8:10 PMrobert zych
01/20/2023, 9:14 PMAbhijeet Kushe
01/20/2023, 9:15 PMAbhijeet Kushe
01/21/2023, 12:08 AMrobert zych
01/21/2023, 12:20 AMAbhijeet Kushe
01/21/2023, 12:21 AMrobert zych
01/21/2023, 1:25 PMAbhijeet Kushe
01/21/2023, 1:29 PMrobert zych
01/21/2023, 1:31 PMrobert zych
01/21/2023, 1:54 PMrobert zych
01/21/2023, 1:57 PMreplicasPerPartition and I have "stream.kafka.consumer.prop.auto.offset.reset": "smallest"Abhijeet Kushe
01/21/2023, 2:00 PMrobert zych
01/21/2023, 2:00 PMAbhijeet Kushe
01/21/2023, 2:02 PMrobert zych
01/21/2023, 2:16 PMrobert zych
01/21/2023, 2:20 PM"stream.kafka.consumer.prop.auto.offset.reset": "largest" and increasing replicasPerPartitionAbhijeet Kushe
01/21/2023, 3:24 PMrobert zych
01/21/2023, 3:34 PMstream.kafka.consumer.prop.auto.offset.reset should be the equivalent of your shardIteratorType for Kinesis.
Now I'm seeing a consistency issue for the updated record. Here are the steps I performed:
1. Created the kafka topic
2. Created the table with replicasPerPartition=1
3. Started Server-1
4. Produced records to the topic
5. Ran query and got all the records
6. Stopped Server-1
7. Started Server-2
8. Increased replicasPerPartition to 2
9. Ran query and got no records
10. Published 1 record to the topic (update to existing pk)
11. Ran query and got 1 record (latest version of updated record)
12. Stopped Server-2
13. Started Server-1
14. Ran query and got all the original records (update wasn't processed)robert zych
01/21/2023, 3:35 PMAbhijeet Kushe
01/21/2023, 3:41 PMAbhijeet Kushe
01/21/2023, 3:41 PMrobert zych
01/21/2023, 3:50 PMAbhijeet Kushe
01/21/2023, 3:51 PMrobert zych
01/21/2023, 4:11 PMAbhijeet Kushe
01/21/2023, 4:12 PMAbhijeet Kushe
01/21/2023, 4:14 PMMayank
Abhijeet Kushe
01/21/2023, 4:23 PMMayank
Mayank
Abhijeet Kushe
01/21/2023, 4:29 PMMayank
robert zych
01/21/2023, 4:52 PMMayank
Abhijeet Kushe
01/21/2023, 4:55 PMrobert zych
01/21/2023, 4:58 PMAbhijeet Kushe
01/21/2023, 5:00 PMrobert zych
01/22/2023, 12:54 AMrobert zych
01/22/2023, 3:00 PMAbhijeet Kushe
01/22/2023, 6:06 PMrobert zych
01/22/2023, 6:18 PMAbhijeet Kushe
01/22/2023, 6:26 PMrobert zych
01/22/2023, 8:47 PMrobert zych
01/22/2023, 9:29 PMAbhijeet Kushe
01/22/2023, 9:31 PMrobert zych
01/22/2023, 9:32 PMrobert zych
01/22/2023, 9:32 PMrobert zych
01/22/2023, 9:36 PMshardIteratorType from LATEST to TRIM_HORIZONAbhijeet Kushe
01/22/2023, 9:37 PMAbhijeet Kushe
01/22/2023, 9:37 PMAbhijeet Kushe
01/22/2023, 9:39 PMrobert zych
01/22/2023, 10:07 PMrobert zych
01/22/2023, 10:10 PMrobert zych
01/22/2023, 10:16 PMAbhijeet Kushe
01/22/2023, 10:21 PMrobert zych
01/22/2023, 10:36 PM"retentionTimeUnit": "DAYS", and "retentionTimeValue": "1826",. I'm not familiar with Kinesis retention settings.Abhijeet Kushe
01/22/2023, 10:38 PMAbhijeet Kushe
01/23/2023, 1:56 PMKartik Khare
01/23/2023, 1:57 PMAbhijeet Kushe
01/23/2023, 2:19 PMrobert zych
01/23/2023, 4:10 PMrobert zych
01/23/2023, 4:13 PMAbhijeet Kushe
01/23/2023, 4:19 PMrobert zych
01/23/2023, 5:07 PMreplicasPerPartition you have to run a rebalanceAbhijeet Kushe
01/23/2023, 5:26 PM