Commit f3ef9071 authored by stewart@mysql.com's avatar stewart@mysql.com

Report an error if connect_client fails.

parent 80dd983b
...@@ -1209,11 +1209,17 @@ TransporterRegistry::start_clients_thread() ...@@ -1209,11 +1209,17 @@ TransporterRegistry::start_clients_thread()
else else
ndbout_c("Failed to get dynamic port to connect to: %d", res); ndbout_c("Failed to get dynamic port to connect to: %d", res);
} }
if(theTransporterTypes[nodeId] != tt_TCP_TRANSPORTER if (theTransporterTypes[nodeId] != tt_TCP_TRANSPORTER
|| t->get_r_port() > 0) || t->get_r_port() > 0) {
t->connect_client(); int result = t->connect_client();
else if (result<0)
NdbSleep_MilliSleep(400); ndbout_c("Error while trying to make connection (Node %u to"
" %u via port %u) error: %d. Retrying...",
t->getRemoteNodeId(),
t->getLocalNodeId(),
t->get_r_port());
} else
NdbSleep_MilliSleep(400); // wait before retrying
} }
break; break;
case DISCONNECTING: case DISCONNECTING:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment