rajinisivaram opened a new pull request #10930:
URL: https://github.com/apache/kafka/pull/10930


   If fetchOffset < startOffset, we currently throw OffsetOutOfRangeException 
when attempting to read from the log in the regular case. But for diverging 
epochs, we return Errors.NONE with the new leader start offset, hwm etc.. 
ReplicaFetcherThread throws OffsetOutOfRangeException when processing responses 
with Errors.NONE if the leader's offsets in the response are out of range and 
this moves the partition to failed state. The PR adds a check for this case 
when processing fetch requests and throws OffsetOutOfRangeException regardless 
of epoch.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


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


Reply via email to