You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2015/02/23 21:57:12 UTC

svn commit: r1661784 - /uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/NodeAgent.java

Author: cwiklik
Date: Mon Feb 23 20:57:11 2015
New Revision: 1661784

URL: http://svn.apache.org/r1661784
Log:
UIMA-4257 Fix a bug that prevented an agent from stopping a purged process. The agent now uses its own information about a process when making a decision whether or not to stop it.

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/NodeAgent.java

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/NodeAgent.java
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/NodeAgent.java?rev=1661784&r1=1661783&r2=1661784&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/NodeAgent.java (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/NodeAgent.java Mon Feb 23 20:57:11 2015
@@ -564,7 +564,7 @@ public class NodeAgent extends AbstractD
         // check if process is Running, Initializing, or Starting
         if (isAlive(agentManagedProcess)) {
           // Stop the process if it has been deallocated
-          if (process.isDeallocated() && isAlive(process)) {
+          if (process.isDeallocated() ) {
             agentManagedProcess.setResourceState(ResourceState.Deallocated);
             logger.info(
                     methodName,