You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by sw...@apache.org on 2016/04/12 14:57:17 UTC
[1/2] git commit: updated refs/heads/4.7 to 8e3d7ee
Repository: cloudstack
Updated Branches:
refs/heads/4.7 2d68893ee -> 8e3d7ee41
Additional exception logging for Cloudstack-9285
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/5f062f1b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/5f062f1b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/5f062f1b
Branch: refs/heads/4.7
Commit: 5f062f1b9e338d2c8dca20c48d891d400baf2389
Parents: 4db1c01
Author: Simon Weller <sw...@ena.com>
Authored: Tue Apr 5 18:05:38 2016 -0500
Committer: Simon Weller <sw...@ena.com>
Committed: Mon Apr 11 17:05:45 2016 -0500
----------------------------------------------------------------------
agent/src/com/cloud/agent/Agent.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/5f062f1b/agent/src/com/cloud/agent/Agent.java
----------------------------------------------------------------------
diff --git a/agent/src/com/cloud/agent/Agent.java b/agent/src/com/cloud/agent/Agent.java
index 2dee5a4..7fab5f4 100644
--- a/agent/src/com/cloud/agent/Agent.java
+++ b/agent/src/com/cloud/agent/Agent.java
@@ -227,6 +227,7 @@ public class Agent implements HandlerFactory, IAgentControl {
try {
_connection.start();
} catch (final NioConnectionException e) {
+ s_logger.warn("NIO Connection Exception " + e);
s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
}
while (!_connection.isStartup()) {
@@ -235,6 +236,7 @@ public class Agent implements HandlerFactory, IAgentControl {
try {
_connection.start();
} catch (final NioConnectionException e) {
+ s_logger.warn("NIO Connection Exception " + e);
s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
}
}
@@ -412,6 +414,7 @@ public class Agent implements HandlerFactory, IAgentControl {
try {
_connection.start();
} catch (final NioConnectionException e) {
+ s_logger.warn("NIO Connection Exception " + e);
s_logger.info("Attempted to connect to the server, but received an unexpected exception, trying again...");
}
_shell.getBackoffAlgorithm().waitBeforeRetry();
[2/2] git commit: updated refs/heads/4.7 to 8e3d7ee
Posted by sw...@apache.org.
Merge pull request #1479 from myENA/9285_exception_log
Cloudstack-9285 exception log additionAfter discussion with @miguelaferreira on the previous PR related to Cloudstack-9285, we decided on adding additional exception logging for this issue.
After adding it, the logs look like this in our lab:
2016-04-07 15:44:03,298 WARN [cloud.agent.Agent] (Agent-Handler-1:null) (logid:7225632a) NIO Connection Exception com.cloud.utils.exception.NioConnectionException: Connection closed with -1 on reading size. <<-- new exception logging
2016-04-07 15:44:03,298 INFO [cloud.agent.Agent] (Agent-Handler-1:null) (logid:7225632a) Attempted to connect to the server, but received an unexpected exception, trying again... << --original logging from previous PR.
* pr/1479:
Additional exception logging for Cloudstack-9285
Signed-off-by: Will Stevens <wi...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8e3d7ee4
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8e3d7ee4
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8e3d7ee4
Branch: refs/heads/4.7
Commit: 8e3d7ee41ca4ee78a5d6f99cb41b7635db8cb790
Parents: 2d68893 5f062f1
Author: Will Stevens <wi...@gmail.com>
Authored: Tue Apr 12 08:56:35 2016 -0400
Committer: Will Stevens <wi...@gmail.com>
Committed: Tue Apr 12 08:56:35 2016 -0400
----------------------------------------------------------------------
agent/src/com/cloud/agent/Agent.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------