Vamsi-klu commented on code in PR #19267:
URL: https://github.com/apache/pinot/pull/19267#discussion_r4647501414
##########
pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/RealtimeSegmentDataManager.java:
##########
@@ -567,10 +567,10 @@ protected boolean consumeLoop()
_currentOffset);
}
// We check this flag again further down
- } else if (messageBatch.getUnfilteredMessageCount() > 0) {
+ } else if (messageBatch.getUnfilteredMessageCount() > 0
+ || messageBatch.getOffsetOfNextBatch().compareTo(_currentOffset) >
0) {
Review Comment:
I reproduced the remaining issue on current master with a real Kafka 4
broker and `read_committed`. After restart, Pinot had all 2,000 committed rows.
On partition 0 the consumption offset was 1993, and both the Kafka position and
broker end were 1994. Both freshness-based and offset-based readiness still
reported `STARTING`, with the idle bypass disabled.
Your exclusive-offset example came from letting an empty poll advance the
offset used for commit. #20024 keeps those positions separate in current
master. An offset reset can also advance the position reported by an empty
poll. Would you prefer that I narrow this PR to verified progress for readiness
only? I propose requiring same-partition log start and `read_committed`
end-offset evidence. The local follow-up is the restart reproducer.
Drafted-by: OpenAI Codex (GPT-6); reviewed by @Vamsi-klu before posting
--
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]