Skip to content

Commit 4db1c01

Browse files
committed
Merge pull request #1430 from myENA/4.7_cloudstack-9285
CLOUDSTACK-9285 for 4.7.xPer Daan's request, here is a pull request for the 4.7.x release. * pr/1430: Cloudstack 9285 for 4.7.x CLOUDSTACK-9285 - Address original on start exception(s) and newline cleanup Cloudstack 9285 for 4.7.x Signed-off-by: Will Stevens <williamstevens@gmail.com>
2 parents 9610056 + 454ea4a commit 4db1c01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agent/src/com/cloud/agent/Agent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,15 +227,15 @@ public void start() {
227227
try {
228228
_connection.start();
229229
} catch (final NioConnectionException e) {
230-
throw new CloudRuntimeException("Unable to start the connection!", e);
230+
s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
231231
}
232232
while (!_connection.isStartup()) {
233233
_shell.getBackoffAlgorithm().waitBeforeRetry();
234234
_connection = new NioClient("Agent", _shell.getHost(), _shell.getPort(), _shell.getWorkers(), this);
235235
try {
236236
_connection.start();
237237
} catch (final NioConnectionException e) {
238-
throw new CloudRuntimeException("Unable to start the connection!", e);
238+
s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
239239
}
240240
}
241241
}
@@ -412,7 +412,7 @@ protected void reconnect(final Link link) {
412412
try {
413413
_connection.start();
414414
} catch (final NioConnectionException e) {
415-
throw new CloudRuntimeException("Unable to start the connection!", e);
415+
s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
416416
}
417417
_shell.getBackoffAlgorithm().waitBeforeRetry();
418418
} while (!_connection.isStartup());

0 commit comments

Comments
 (0)