Skip to content
This repository was archived by the owner on Dec 20, 2022. It is now read-only.

Commit 89d4333

Browse files
committed
Better error message on bind to non-rdma interface
Change-Id: Ia70020e37de6d94dfbf568404557b54e1b7f61d6
1 parent 9c5d650 commit 89d4333

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/org/apache/spark/shuffle/rdma/RdmaNode.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,8 @@ class RdmaNode {
8181
logger.info("Failed to bind to port {} on iteration {}", bindPort, i);
8282
bindPort = bindPort != 0 ? bindPort + 1 : 0;
8383
}
84-
if (err != 0) {
85-
throw new IOException("Unable to bind, err: " + err);
86-
}
8784

88-
if (listenerRdmaCmId.getVerbs() == null){
85+
if (err != 0 || listenerRdmaCmId.getVerbs() == null){
8986
throw new IOException("Failed to bind. Make sure your NIC supports RDMA");
9087
}
9188

0 commit comments

Comments
 (0)