mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
This fixes the issue that on reconnection, agent LB feature will fail and only the first ms-host will be tried reconnection again and again. Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
70dbfa7883
commit
6f1c5551fc
@ -509,8 +509,8 @@ public class Agent implements HandlerFactory, IAgentControl {
|
||||
_shell.getBackoffAlgorithm().waitBeforeRetry();
|
||||
}
|
||||
|
||||
final String host = _shell.getNextHost();
|
||||
do {
|
||||
final String host = _shell.getNextHost();
|
||||
_connection = new NioClient("Agent", host, _shell.getPort(), _shell.getWorkers(), this);
|
||||
s_logger.info("Reconnecting to host:" + host);
|
||||
try {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user