Hi folks TL;DR I am trying to debug my realtime ta...
# troubleshooting
j
Hi folks TL;DR I am trying to debug my realtime table which has about half the total expected rows
Config
Copy code
{
  "REALTIME": {
    "tableName": "spark_metrics_REALTIME",
    "tableType": "REALTIME",
    "segmentsConfig": {
      "schemaName": "spark_metrics",
      "replication": "1",
      "retentionTimeUnit": "DAYS",
      "retentionTimeValue": "400",
      "replicasPerPartition": "1",
      "timeColumnName": "_kafka_timestamp",
      "minimizeDataMovement": false
    },
    "tenants": {
      "broker": "DefaultTenant",
      "server": "DefaultTenant",
      "tagOverrideConfig": {}
    },
    "tableIndexConfig": {
      "invertedIndexColumns": [],
      "noDictionaryColumns": [],
      "autoGeneratedInvertedIndex": false,
      "createInvertedIndexDuringSegmentGeneration": false,
      "sortedColumn": [],
      "bloomFilterColumns": [],
      "loadMode": "MMAP",
      "onHeapDictionaryColumns": [],
      "varLengthDictionaryColumns": [],
      "enableDefaultStarTree": false,
      "enableDynamicStarTreeCreation": false,
      "aggregateMetrics": false,
      "nullHandlingEnabled": false,
      "optimizeDictionary": false,
      "optimizeDictionaryForMetrics": false,
      "noDictionarySizeRatioThreshold": 0.85,
      "rangeIndexColumns": [],
      "rangeIndexVersion": 2,
      "streamConfigs": {
        "streamType": "kafka",
        "stream.kafka.topic.name": "spark-metrics",
        "stream.kafka.broker.list": "REDACTED",
        "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": "24h",
        "realtime.segment.flush.threshold.segment.size": "50M"
      }
    },
    "metadata": {},
    "quota": {},
    "routing": {},
    "query": {},
    "ingestionConfig": {
      "continueOnError": false,
      "rowTimeValueCheck": false,
      "segmentTimeValueCheck": true
    },
    "isDimTable": false
  }
}
Schema for time column
Copy code
"dateTimeFieldSpecs": [
    {
      "name": "_kafka_timestamp",
      "dataType": "LONG",
      "format": "1:MICROSECONDS:EPOCH",
      "granularity": "1:MICROSECONDS"
    },
Not sure what causes the "lumpy" nature of the timestamps
The actual ingest has values for every hour
Logs on all of the realtime servers look healthy
x
have you checked that metrics is there any lag from the pinot side ?
how many kafka partitions you have
i suppose you only have 1 server here?
j
When there is lag, are messages dropped or delayed? Based on the gaps in data, it seems it is dropped?
r
@Jessica Stewart - Were you able to resolve this?
x
If you see kafka lags: 1. If it's seasonal or a sudden bump for Kafka traffic from client side, then the lagged data will catch up eventually 2. if the Kafka data rate is more than the Pinot max consumption rate, then you need to increase Kafka partitions to give more parallelism for Pinot to consume.