chirag-wadhwa5 opened a new pull request, #18677: URL: https://github.com/apache/kafka/pull/18677
Bug -> there are times during share partition initialization, where the persister read state response contains batches, eg - startOffset = 10, stateBatches = {{15, 20}, {30, 40}} These gaps could natural gaps, but could also be batches which were fetched before but were not acknowledged. In that case, these records must be made available again for fetch. This PR introduces another class variable, `gapsAfterInitialization`, which stores the first offset of all these gaps in the read state response. The `nextFetchOffset `method then consider these gaps as well while finding the next offset to fetch from. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org