KKcorps commented on code in PR #15641:
URL: https://github.com/apache/pinot/pull/15641#discussion_r2060700025


##########
pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/RealtimeSegmentDataManager.java:
##########
@@ -1851,6 +1854,10 @@ private StreamPartitionMsgOffset 
fetchStreamOffset(OffsetCriteria offsetCriteria
     }
     try {
       return 
_partitionMetadataProvider.fetchStreamPartitionOffset(offsetCriteria, 
maxWaitTimeMs);
+    } catch (IllegalStateException ise) {

Review Comment:
   Yes that is correct 
   
   Example logs 
   
   ```
   2025/04/18 09:49:48.026 WARN 
[RealtimeSegmentDataManager_table__0__0__20250418T0743Z] 
[grizzly-http-server-12] Cannot fetch stream offset with criteria 
OffsetCriteria{_offsetType=LARGEST, _offsetString='largest'} for clientId 
foobar_REALTIME-table-events-0 and partitionGroupId 0 with maxWaitTime 5000
   java.lang.IllegalStateException: This consumer has already been closed.
           at 
org.apache.kafka.clients.consumer.KafkaConsumer.acquireAndEnsureOpen(KafkaConsumer.java:2432)
           at 
org.apache.kafka.clients.consumer.KafkaConsumer.endOffsets(KafkaConsumer.java:2213)
   ```        



-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to