Praneeth G
02/13/2025, 2:24 PM/tables/{tableNameWithType}/validDocIdsMetadata is empty . Below is the table upsertConfig . Please suggest.
"upsertConfig": {
"mode": "FULL",
"metadataTTL": 0,
"dropOutOfOrderRecord": false,
"enableSnapshot": true,
"deletedKeysTTL": 0,
"hashFunction": "NONE",
"defaultPartialUpsertStrategy": "OVERWRITE",
"enablePreload": false,
"consistencyMode": "NONE",
"upsertViewRefreshIntervalMs": 3000,
"allowPartialUpsertConsumptionDuringCommit": false
}Praneeth G
02/13/2025, 2:25 PMXiang Fu
Xiaobing
02/14/2025, 1:26 AMPraneeth G
02/17/2025, 12:54 PMPratik Tibrewal
02/17/2025, 12:58 PMPraneeth G
02/17/2025, 12:59 PMPraneeth G
02/17/2025, 12:59 PMPraneeth G
02/17/2025, 1:00 PMPratik Tibrewal
02/17/2025, 1:07 PMPraneeth G
02/25/2025, 6:54 AMjava.lang.IllegalStateException: 'enableSnapshot' from UpsertConfig must be enabled for UpsertCompactionTask with validDocIdsType = SNAPSHOT at org.apache.pinot.shaded.com.google.common.base.Preconditions.checkState(Preconditions.java:515) at org.apache.pinot.plugin.minion.tasks.upsertcompaction.UpsertCompactionTaskGenerator.generateTasks(UpsertCompactionTaskGenerator.java:157) at
Since this is a recreated table .. is there any caching of table config somewhere that could lead to this ? Do you think this is a bug ?
cc : @XiaobingPratik Tibrewal
02/25/2025, 11:00 AMenableSnapshot <-- the config is without s at the end and no d in between. Can you confirm if the config name is correct?Praneeth G
02/25/2025, 11:04 AM"upsertConfig": {
"mode": "FULL",
"metadataTTL": 0,
"dropOutOfOrderRecord": false,
"enableSnapshot": true,
"deletedKeysTTL": 0,
"hashFunction": "NONE",
"defaultPartialUpsertStrategy": "OVERWRITE",
"enablePreload": false,
"consistencyMode": "NONE",
"upsertViewRefreshIntervalMs": 3000,
"allowPartialUpsertConsumptionDuringCommit": false
}
Basically enableSnapshot was false .. instead of restarting the servers ( there are around 10) after making it true .. we recreated the table with enableSnapshot : true . ( schema was not deleted , only table )
After the table re-creation ..on segment commit , was able to see results for SNAPSHOT validDocType as well . But upsertCompaction job is failing .Pratik Tibrewal
02/25/2025, 2:36 PMPraneeth G
02/25/2025, 2:39 PMPraneeth G
02/25/2025, 2:42 PM{
"REALTIME": {
"tableName": "merchant_store_dimension_REALTIME",
"tableType": "REALTIME",
"segmentsConfig": {
"retentionTimeUnit": "DAYS",
"retentionTimeValue": "90000",
"replicasPerPartition": "2",
"timeColumnName": "merchant_acquisition_date_ts",
"minimizeDataMovement": false
},
"tenants": {
"broker": "DefaultTenant",
"server": "DefaultTenant"
},
"tableIndexConfig": {
"invertedIndexColumns": [
"merchant_id",
"store_id"
],
"noDictionaryColumns": [],
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.topic.name": "merchant_store_dimension",
"stream.kafka.broker.list": "<broker>",
"stream.kafka.consumer.type": "lowlevel",
"stream.kafka.consumer.prop.auto.offset.reset": "smallest",
"stream.kafka.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kafka20.KafkaConsumerFactory",
"stream.kafka.decoder.class.name": "org.apache.pinot.plugin.stream.kafka.KafkaJSONMessageDecoder",
"realtime.segment.flush.threshold.rows": "0",
"realtime.segment.flush.threshold.time": "1h",
"realtime.segment.flush.threshold.segment.size": "500M"
},
"aggregateMetrics": false,
"enableDefaultStarTree": false,
"nullHandlingEnabled": false,
"bloomFilterColumns": [],
"onHeapDictionaryColumns": [],
"rangeIndexColumns": [],
"sortedColumn": [],
"varLengthDictionaryColumns": [],
"rangeIndexVersion": 2,
"optimizeDictionaryForMetrics": false,
"optimizeDictionary": false,
"autoGeneratedInvertedIndex": false,
"createInvertedIndexDuringSegmentGeneration": false,
"loadMode": "MMAP",
"enableDynamicStarTreeCreation": false,
"columnMajorSegmentBuilderEnabled": true,
"noDictionarySizeRatioThreshold": 0.85
},
"metadata": {},
"quota": {},
"task": {
"taskTypeConfigsMap": {
"UpsertCompactionTask": {
"schedule": "0 59 18 * * ?",
"bufferTimePeriod": "4h",
"invalidRecordsThresholdPercent": "1",
"tableMaxNumTasks": "40"
}
}
},
"routing": {
"instanceSelectorType": "strictReplicaGroup"
},
"query": {},
"upsertConfig": {
"mode": "FULL",
"metadataTTL": 0,
"dropOutOfOrderRecord": false,
"enableSnapshot": true,
"deletedKeysTTL": 0,
"allowPartialUpsertConsumptionDuringCommit": false,
"hashFunction": "NONE",
"defaultPartialUpsertStrategy": "OVERWRITE",
"enablePreload": false,
"consistencyMode": "NONE",
"upsertViewRefreshIntervalMs": 3000
},
"ingestionConfig": {
"transformConfigs": [
{
"columnName": "merchant_acquisition_date_ts",
"transformFunction": "DATETIMECONVERT(merchant_acquisition_date, '1:MILLISECONDS:SIMPLE_DATE_FORMAT:yyyy-MM-dd HH:mm:ss.SSS', '1:MILLISECONDS:EPOCH', '1:SECONDS')"
}
],
"continueOnError": true,
"rowTimeValueCheck": false,
"segmentTimeValueCheck": true
},
"isDimTable": false
}
}