mirror of https://github.com/apache/cassandra
Report why native_transport_port fails to bind
Patch by James Roper; Review by Dinesh Joshi for CASSANDRA-14544
This commit is contained in:
parent
06209037ea
commit
85ceec8855
|
|
@ -1,4 +1,5 @@
|
||||||
4.0
|
4.0
|
||||||
|
* Report why native_transport_port fails to bind (CASSANDRA-14544)
|
||||||
* Optimize internode messaging protocol (CASSANDRA-14485)
|
* Optimize internode messaging protocol (CASSANDRA-14485)
|
||||||
* Internode messaging handshake sends wrong messaging version number (CASSANDRA-14540)
|
* Internode messaging handshake sends wrong messaging version number (CASSANDRA-14540)
|
||||||
* Add a virtual table to expose active client connections (CASSANDRA-14458)
|
* Add a virtual table to expose active client connections (CASSANDRA-14458)
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,8 @@ public class Server implements CassandraDaemon.Server
|
||||||
|
|
||||||
ChannelFuture bindFuture = bootstrap.bind(socket);
|
ChannelFuture bindFuture = bootstrap.bind(socket);
|
||||||
if (!bindFuture.awaitUninterruptibly().isSuccess())
|
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());
|
connectionTracker.allChannels.add(bindFuture.channel());
|
||||||
isRunning.set(true);
|
isRunning.set(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue