-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt to fix race condition in the
CachingConnectionFactory
There is a logic in the `CachingConnectionFactory.destroy()` where we wait for `inFlightAsyncCloses`. However, it looks like we first close the main connection with all its channels. Therefore, we may end up with a `ConcurrentModificationException` when we iterate channels list for clean up, but in-flight requests still wait for their confirms, therefore they may come back to the cache meanwhile we are trying to clean up
- Loading branch information
1 parent
ced72ed
commit 162ef4a
Showing
4 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters