mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 13:55:57 +00:00
Closes #56068
This commit is contained in:
parent
b816ab0c18
commit
75d4a4def4
@ -307,15 +307,14 @@ public class Netty4Transport extends TcpTransport {
|
||||
@SuppressForbidden(reason = "debug")
|
||||
protected void stopInternal() {
|
||||
Releasables.close(() -> {
|
||||
Future<?> shutdownFuture = eventLoopGroup.shutdownGracefully(0, 5, TimeUnit.SECONDS);
|
||||
shutdownFuture.awaitUninterruptibly();
|
||||
if (shutdownFuture.isSuccess() == false) {
|
||||
logger.warn("Error closing netty event loop group", shutdownFuture.cause());
|
||||
if (eventLoopGroup != null) {
|
||||
Future<?> shutdownFuture = eventLoopGroup.shutdownGracefully(0, 5, TimeUnit.SECONDS);
|
||||
shutdownFuture.awaitUninterruptibly();
|
||||
if (shutdownFuture.isSuccess() == false) {
|
||||
logger.warn("Error closing netty event loop group", shutdownFuture.cause());
|
||||
}
|
||||
}
|
||||
|
||||
serverBootstraps.clear();
|
||||
clientBootstrap = null;
|
||||
});
|
||||
}, serverBootstraps::clear, () -> clientBootstrap = null);
|
||||
}
|
||||
|
||||
protected class ClientChannelInitializer extends ChannelInitializer<Channel> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user