Updated Branches: refs/heads/master b6dbaf655 -> 90923d94f
Preventing topology event message delegater thread hang if an exception is thrown. If an excetion occured, exception is logged and continue work. Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/f38d156c Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/f38d156c Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/f38d156c Branch: refs/heads/master Commit: f38d156c6b8f22b70cc91dcfb0a1f4e5f34aea7e Parents: 52d9282 Author: Udara Liyanage <[email protected]> Authored: Thu Dec 19 16:09:05 2013 -0500 Committer: Udara Liyanage <[email protected]> Committed: Thu Dec 19 16:09:05 2013 -0500 ---------------------------------------------------------------------- .../cloud/controller/topology/TopologyEventMessageDelegator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f38d156c/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventMessageDelegator.java ---------------------------------------------------------------------- diff --git a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventMessageDelegator.java b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventMessageDelegator.java index 098f7d5..758db81 100644 --- a/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventMessageDelegator.java +++ b/components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/topology/TopologyEventMessageDelegator.java @@ -59,7 +59,8 @@ public class TopologyEventMessageDelegator implements Runnable { } catch (Exception e) { String error = "Failed to retrieve the topology event message."; log.error(error, e); - throw new RuntimeException(error, e); + // Commenting throwing the error. Otherwise thread will not execute if an exception is thrown. + //throw new RuntimeException(error, e); } } }
