chenyulin0719 opened a new pull request, #18475:
URL: https://github.com/apache/kafka/pull/18475

   This is related to KAFKA-18469.
   
   Move the retry of ListOffsetReqeust to `ListOffsetRequest.poll()` except the 
retry of `StaleMetadataException`
   
   Create a new set `requestsToRetryOnMetadataUpdate` to handle the retry on 
metadata update.
   - `requestsToRetry` is called on OffsetRequestManager.poll()
   - `requestsToRetryOnMetadataUpdate` is called on 
OffsetRequestManager.onUpdate()
   
   This issue is the root cause of the flaky test KAFKA-18036. Can be validated 
through this command:
   ```
   I=0; while ./gradlew :storage:test --tests 
TransactionsWithTieredStoreTest.testReadCommittedConsumerShouldNotSeeUndecidedData
  --rerun --fail-fast; do  (( I=$I+1 )); echo "Completed run: $I"; sleep 1; done
   ```
   
   ### 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