flume-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esam...@apache.org
Subject svn commit: r1156909 - /incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/DefaultLogicalNodeManager.java
Date Fri, 12 Aug 2011 00:48:28 GMT
Author: esammer
Date: Fri Aug 12 00:48:28 2011
New Revision: 1156909

URL: http://svn.apache.org/viewvc?rev=1156909&view=rev
Log:
- Only stop logical nodes that start in the START state.

Modified:
    incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/DefaultLogicalNodeManager.java

Modified: incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/DefaultLogicalNodeManager.java
URL: http://svn.apache.org/viewvc/incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/DefaultLogicalNodeManager.java?rev=1156909&r1=1156908&r2=1156909&view=diff
==============================================================================
--- incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/DefaultLogicalNodeManager.java
(original)
+++ incubator/flume/branches/flume-728/flume-ng-node/src/main/java/org/apache/flume/node/nodemanager/DefaultLogicalNodeManager.java
Fri Aug 12 00:48:28 2011
@@ -111,7 +111,9 @@ public class DefaultLogicalNodeManager e
 
     for (LogicalNode node : getNodes()) {
       try {
-        node.stop(context);
+        if (node.getLifecycleState().equals(LifecycleState.START)) {
+          node.stop(context);
+        }
       } catch (LifecycleException e) {
         logger.error("Failed to stop logical node:{}", node);
       } catch (InterruptedException e) {



Mime
View raw message