Report why native_transport_port fails to bind

Patch by James Roper; Review by Dinesh Joshi for CASSANDRA-14544
This commit is contained in:
James Roper 2018-06-26 18:18:36 -04:00 committed by Ariel Weisberg
parent 06209037ea
commit 85ceec8855
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,5 @@
4.0
* Report why native_transport_port fails to bind (CASSANDRA-14544)
* Optimize internode messaging protocol (CASSANDRA-14485)
* Internode messaging handshake sends wrong messaging version number (CASSANDRA-14540)
* Add a virtual table to expose active client connections (CASSANDRA-14458)

View File

@ -161,7 +161,8 @@ public class Server implements CassandraDaemon.Server
ChannelFuture bindFuture = bootstrap.bind(socket);
if (!bindFuture.awaitUninterruptibly().isSuccess())
throw new IllegalStateException(String.format("Failed to bind port %d on %s.", socket.getPort(), socket.getAddress().getHostAddress()));
throw new IllegalStateException(String.format("Failed to bind port %d on %s.", socket.getPort(), socket.getAddress().getHostAddress()),
bindFuture.cause());
connectionTracker.allChannels.add(bindFuture.channel());
isRunning.set(true);