Skip to content

Commit a0ba2aa

Browse files
Merge branch '4.20' into 4.22
2 parents 4379666 + e4414d1 commit a0ba2aa

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,13 +1332,14 @@ public void doTask(final Task task) throws TaskExecutionException {
13321332
}
13331333
} else if (task.getType() == Task.Type.DISCONNECT) {
13341334
try {
1335-
// an issue has been found if reconnect immediately after disconnecting. please refer to https://github.com/apache/cloudstack/issues/8517
1335+
// an issue has been found if reconnect immediately after disconnecting.
13361336
// wait 5 seconds before reconnecting
1337+
logger.debug("Wait for 5 secs before reconnecting, disconnect task - {}", () -> getLinkLog(task.getLink()));
13371338
Thread.sleep(5000);
13381339
} catch (InterruptedException e) {
13391340
}
13401341
shell.setConnectionTransfer(false);
1341-
logger.debug("Executing disconnect task - {}", () -> getLinkLog(task.getLink()));
1342+
logger.debug("Executing disconnect task - {} and reconnecting", () -> getLinkLog(task.getLink()));
13421343
reconnect(task.getLink());
13431344
} else if (task.getType() == Task.Type.OTHER) {
13441345
processOtherTask(task);

0 commit comments

Comments
 (0)