[hornetq-commits] JBoss hornetq SVN: r11420 - branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/server/impl.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Sep 26 06:36:42 EDT 2011
Author: borges
Date: 2011-09-26 06:36:41 -0400 (Mon, 26 Sep 2011)
New Revision: 11420
Modified:
branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/server/impl/HornetQServerImpl.java
Log:
HORNETQ-720 do not log errors if the server is being stopped
Modified: branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/server/impl/HornetQServerImpl.java
===================================================================
--- branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/server/impl/HornetQServerImpl.java 2011-09-26 10:36:08 UTC (rev 11419)
+++ branches/HORNETQ-720_Replication/hornetq-core/src/main/java/org/hornetq/core/server/impl/HornetQServerImpl.java 2011-09-26 10:36:41 UTC (rev 11420)
@@ -612,7 +612,11 @@
}
catch (Exception e)
{
+ if (e instanceof InterruptedException && !started)
+ // do not log errors if the server is being stopped.
+ return;
log.error("Failure in initialisation", e);
+ e.printStackTrace();
}
}
@@ -752,7 +756,9 @@
}
connectorsService.stop();
- //we stop the groupinghandler before we stop te cluster manager so binding mappings aren't removed in case of failover
+
+ // we stop the groupingHandler before we stop the cluster manager so binding mappings
+ // aren't removed in case of failover
if (groupingHandler != null)
{
managementService.removeNotificationListener(groupingHandler);
More information about the hornetq-commits
mailing list