IGNITE-17247 Fix race condition on close in GridNioClientConnectionMultiplexer (... master
authorPavel Tupitsyn <ptupitsyn@apache.org>
Tue, 28 Jun 2022 16:31:13 +0000 (19:31 +0300)
committerGitHub <noreply@github.com>
Tue, 28 Jun 2022 16:31:13 +0000 (19:31 +0300)
commitfb778a084ad3c913cb87d517e25fa36130fc658c
tree71ceb6cc27ec9744c338fb9d500200198ba59859
parent5bef64ce562116cbf6bd41989f4d7e0897b56f7f
IGNITE-17247 Fix race condition on close in GridNioClientConnectionMultiplexer (#10115)

When `GridNioServer.createSession` is called concurrently with `GridNioServer.stop`, it is possible that `GridNioFuture` returned by `createSession` will never complete. Add RW lock in `GridNioClientConnectionMultiplexer` to fix this.
modules/core/src/main/java/org/apache/ignite/internal/client/thin/io/gridnioserver/GridNioClientConnectionMultiplexer.java