serjchebotarev opened a new pull request #9014:
URL: https://github.com/apache/kafka/pull/9014


   In `testCloseOldestConnection` flaky behavior can be caused by the code path 
when in `selector.poll(0)` the connection is not closed immediately. This can 
be due to `Selector#maybeReadFromClosingChannel` returning `true`. To avoid 
this, also check `selector.closingChannel(id)` in addition to 
`selector.disconnected().containsKey(id)`.
   
   ### 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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to