Loïc Mathieu
09/06/2022, 3:25 PMpinot-controller | 2022/09/06 15:11:30.283 ERROR [PinotTableIdealStateBuilder] [grizzly-http-server-1] Could not get PartitionGroupMetadata for topic: my-topic of table: my-topic_REALTIME
pinot-controller | java.lang.NullPointerException: null
pinot-controller | at org.apache.pinot.plugin.stream.kafka20.KafkaStreamMetadataProvider.fetchPartitionCount(KafkaStreamMetadataProvider.java:48) ~[pinot-kafka-2.0-0.10.0-shaded.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
pinot-controller | at org.apache.pinot.spi.stream.StreamMetadataProvider.computePartitionGroupMetadata(StreamMetadataProvider.java:66) ~[pinot-all-0.10.0-jar-with-dependencies.jar:0.10.0-30c4635bfeee88f88aa9c9f63b93bcd4a650607f]
For me NPE is always suspicious (a bug).
Here is my table config.
{
"tableName": "my-topic",
"tableType": "REALTIME",
"segmentsConfig": {
"timeColumnName": "timestamp",
"timeType": "MILLISECONDS",
"schemaName": "my-topic",
"replicasPerPartition": "1"
},
"tenants": {},
"tableIndexConfig": {
"loadMode": "MMAP",
"streamConfigs": {
"streamType": "kafka",
"stream.kafka.consumer.type": "LowLevel",
"stream.kafka.topic.name": "my-topic",
"stream.kafka.decoder.class.name": "org.apache.pinot.plugin.inputformat.avro.confluent.KafkaConfluentSchemaRegistryAvroMessageDecoder",
"stream.kafka.consumer.factory.class.name": "org.apache.pinot.plugin.stream.kafka20.KafkaConsumerFactory",
"stream.kafka.broker.list": "my-broker:9092",
"stream.kafka.consumer.prop.auto.offset.reset": "smallest",
"stream.kafka.consumer.prop.schema.registry.url": "<https://my-registry:8000>",
"<http://stream.kafka.consumer.prop.basic.auth.user.info|stream.kafka.consumer.prop.basic.auth.user.info>": "<redacted>",
"security.protocol": "SSL",
"ssl.truststore.type": "PEM",
"ssl.truststore.certificates": "<redacted>",
"ssl.keystore.type": "PEM",
"ssl.keystore.certificate.chain": "<redacted>",
"ssl.keystore.key": "<redacted>"
}
},
"metadata": {
"customConfigs": {}
}
}
Mayank
Loïc Mathieu
09/06/2022, 3:51 PMMayank
Haitao Zhang
09/06/2022, 8:40 PMLoïc Mathieu
09/07/2022, 7:03 AMHaitao Zhang
09/07/2022, 11:26 PM_consumer
is null or partitionsFor
returns null. But _consumer is not null, otherwise, during initialization, this line (https://github.com/apache/pinot/blob/master/pinot-plugins/pinot-stream-ingestion/p[…]plugin/stream/kafka20/KafkaPartitionLevelConnectionHandler.java) throws exception. Therefore, I feel partitionsFor
returns null.Haitao Zhang
09/07/2022, 11:27 PMpartitionsFor
returns null or not?Loïc Mathieu
09/12/2022, 9:48 AMLoïc Mathieu
11/16/2022, 10:31 AMMayank