[ https://issues.apache.org/jira/browse/CASSANDRA-14544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16525699#comment-16525699 ]
Ariel Weisberg edited comment on CASSANDRA-14544 at 6/27/18 10:43 PM: ---------------------------------------------------------------------- Committed as [85ceec8855683b8bf71e009c8ed102ec91d85a41|https://github.com/apache/cassandra/commit/85ceec8855683b8bf71e009c8ed102ec91d85a41]. Thanks! was (Author: aweisberg): Committed as [85ceec8855683b8bf71e009c8ed102ec91d85a41|][https://github.com/apache/cassandra/commit/85ceec8855683b8bf71e009c8ed102ec91d85a41].] Thanks! > Report why native_transport_port fails to bind > ---------------------------------------------- > > Key: CASSANDRA-14544 > URL: https://issues.apache.org/jira/browse/CASSANDRA-14544 > Project: Cassandra > Issue Type: Bug > Reporter: James Roper > Assignee: James Roper > Priority: Major > Fix For: 4.0 > > > On line 164 of {{org/apache/cassandra/transport/Server.java}}, the cause of a > failure to bind to the server port is swallowed: > [https://github.com/apache/cassandra/blob/06209037ea56b5a2a49615a99f1542d6ea1b2947/src/java/org/apache/cassandra/transport/Server.java#L163-L164] > {code:java} > if (!bindFuture.awaitUninterruptibly().isSuccess()) > throw new IllegalStateException(String.format("Failed to bind > port %d on %s.", socket.getPort(), socket.getAddress().getHostAddress())); > {code} > So we're told that the bind failed, but we're left guessing as to why. The > cause of the bind failure should be passed to the {{IllegalStateException}}, > so that we can then proceed with debugging, like so: > {code:java} > if (!bindFuture.awaitUninterruptibly().isSuccess()) > throw new IllegalStateException(String.format("Failed to bind > port %d on %s.", socket.getPort(), socket.getAddress().getHostAddress()), > bindFuture.cause()); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org