mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	Merge release branch 4.8 to master
* 4.8: Cloudstack 9285 for 4.7.x CLOUDSTACK-9285 - Address original on start exception(s) and newline cleanup Cloudstack 9285 for 4.7.x
This commit is contained in:
		
						commit
						5251eeddf2
					
				@ -227,7 +227,7 @@ public class Agent implements HandlerFactory, IAgentControl {
 | 
				
			|||||||
        try {
 | 
					        try {
 | 
				
			||||||
            _connection.start();
 | 
					            _connection.start();
 | 
				
			||||||
        } catch (final NioConnectionException e) {
 | 
					        } catch (final NioConnectionException e) {
 | 
				
			||||||
            throw new CloudRuntimeException("Unable to start the connection!", e);
 | 
					            s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        while (!_connection.isStartup()) {
 | 
					        while (!_connection.isStartup()) {
 | 
				
			||||||
            _shell.getBackoffAlgorithm().waitBeforeRetry();
 | 
					            _shell.getBackoffAlgorithm().waitBeforeRetry();
 | 
				
			||||||
@ -235,7 +235,7 @@ public class Agent implements HandlerFactory, IAgentControl {
 | 
				
			|||||||
            try {
 | 
					            try {
 | 
				
			||||||
                _connection.start();
 | 
					                _connection.start();
 | 
				
			||||||
            } catch (final NioConnectionException e) {
 | 
					            } catch (final NioConnectionException e) {
 | 
				
			||||||
                throw new CloudRuntimeException("Unable to start the connection!", e);
 | 
					                s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -412,7 +412,7 @@ public class Agent implements HandlerFactory, IAgentControl {
 | 
				
			|||||||
            try {
 | 
					            try {
 | 
				
			||||||
                _connection.start();
 | 
					                _connection.start();
 | 
				
			||||||
            } catch (final NioConnectionException e) {
 | 
					            } catch (final NioConnectionException e) {
 | 
				
			||||||
                throw new CloudRuntimeException("Unable to start the connection!", e);
 | 
					                s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            _shell.getBackoffAlgorithm().waitBeforeRetry();
 | 
					            _shell.getBackoffAlgorithm().waitBeforeRetry();
 | 
				
			||||||
        } while (!_connection.isStartup());
 | 
					        } while (!_connection.isStartup());
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user