deshmukhpurushothaman commented on issue #18935: URL: https://github.com/apache/pinot/issues/18935#issuecomment-7344357646
@Jackie-Jiang I could reproduce this, and I believe the root cause is not a Kafka connectivity problem. **Cause:** the stock `apachepinot/pinot:1.5.1` image only ships `pinot-kafka-3.0` (`/opt/pinot/plugins/pinot-stream-ingestion/pinot-kafka-3.0/`). The `org.apache.pinot.plugin.stream.kafka40.KafkaConsumerFactory` class does not exist in it, so the controller fails to load the factory class before it ever contacts Kafka. That also explains why `kafka30` works against the same Kafka 4.0.0 cluster. **Why the error is `null`:** in `PartitionGroupMetadataFetcher`, `StreamConsumerFactoryProvider.create()` is called outside the `try` block, so the failure is never recorded. `PinotTableIdealStateBuilder.getStreamMetadataList` then throws `new RuntimeException(null)`, which the REST API returns as `"error": null`. The same gap exists on master. **Repro:** Pinot 1.5.1 plus Kafka 4.0.0 (KRaft) in Docker. A table with the `kafka40` factory returns HTTP 500 and `error: null`. The same table with `kafka30` is created fine. With the error handling fixed, the response becomes `ClassNotFoundException: org.apache.pinot.plugin.stream.kafka40.KafkaConsumerFactory`. **Workaround:** keep using `kafka30` on 1.5.1, or use a release or image that includes the Kafka 4 plugin. On current master the Kafka 4 plugin is the default (#20112). I have a fix and regression tests ready: a factory class that cannot be loaded will be recorded by the fetcher and reported with the table, topic and root cause instead of `null`. Could you please assign this issue to me so I can open the PR? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
