Skip to content

Commit

Permalink
Merge 6b9a6d1 into 535f96b
Browse files Browse the repository at this point in the history
  • Loading branch information
cuveland committed Aug 13, 2018
2 parents 535f96b + 6b9a6d1 commit 371d755
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fles_rdma/IBConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ void IBConnection::connect(const std::string& hostname,
if (!err)
break;
}
if (err)
if (err) {
L_(fatal) << "rdma_resolve_addr failed: " << strerror(errno);
throw InfinibandException("rdma_resolve_addr failed");
}

freeaddrinfo(res);
}
Expand Down
4 changes: 4 additions & 0 deletions lib/fles_rdma/IBConnectionGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,15 +315,19 @@ class IBConnectionGroup : public ConnectionGroupWorker {
on_addr_resolved(event->id);
return;
case RDMA_CM_EVENT_ADDR_ERROR:
L_(fatal) << rdma_event_str(event->event);
throw InfinibandException("rdma_resolve_addr failed");
case RDMA_CM_EVENT_ROUTE_RESOLVED:
on_route_resolved(event->id);
return;
case RDMA_CM_EVENT_ROUTE_ERROR:
L_(fatal) << rdma_event_str(event->event);
throw InfinibandException("rdma_resolve_route failed");
case RDMA_CM_EVENT_CONNECT_ERROR:
L_(fatal) << rdma_event_str(event->event);
throw InfinibandException("could not establish connection");
case RDMA_CM_EVENT_UNREACHABLE:
L_(fatal) << rdma_event_str(event->event);
throw InfinibandException("remote server is not reachable");
case RDMA_CM_EVENT_REJECTED:
on_rejected(event);
Expand Down

0 comments on commit 371d755

Please sign in to comment.