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

   Avoid `ConcurrentModificationException` if `call.nodeProvider.provide()` 
fail.
   
   The steps producing above error are shown below.
   
   1. maybeDrainPendingCall encounter error when calling 
`call.nodeProvider.provide();`
   2. `runnable.pendingCalls.add(this)` adds the call back to `pendingCalls`
   3. `pendingIter.remove();` tries to remove item from the modified array list.
   
   ### 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: [email protected]

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

Reply via email to