xiangfu0 commented on code in PR #17602:
URL: https://github.com/apache/pinot/pull/17602#discussion_r2803830335


##########
pinot-plugins/pinot-stream-ingestion/pinot-kafka-3.0/src/main/java/org/apache/pinot/plugin/stream/kafka30/KafkaStreamMetadataProvider.java:
##########
@@ -84,7 +84,7 @@ public Set<Integer> fetchPartitionIds(long timeoutMillis) {
     try {
       List<PartitionInfo> partitionInfos = _consumer.partitionsFor(_topic, 
Duration.ofMillis(timeoutMillis));
       if (CollectionUtils.isEmpty(partitionInfos)) {
-        throw new RuntimeException(String.format("Failed to fetch partition 
information for topic: %s", _topic));
+        throw transientPartitionInfoUnavailable();

Review Comment:
   Ack, addressed in latest commit: reverted to RuntimeException path for empty 
partition metadata in kafka-3.0.



-- 
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]

Reply via email to