File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
agent/src/main/java/com/cloud/agent Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments