Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some error messages #43

Merged
merged 1 commit into from
Aug 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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