java-driver icon indicating copy to clipboard operation
java-driver copied to clipboard

Fix ChannelPoolInitTest NullPointerException

Open Bouncheck opened this issue 2 years ago • 0 comments

It seems that there was a race condition where we try to inspect ChannelSet while it is still null and initialized property is still false. This small reordering ensures that initialize() method of ChannelPool has been already called, because channelOpened event already fired.

Bouncheck avatar Jan 26 '23 17:01 Bouncheck