Author: cwiklik
Date: Tue Jan 31 15:15:50 2017
New Revision: 1781103

URL: http://svn.apache.org/viewvc?rev=1781103&view=rev
Log:
UIMA-5284 modified to set reason=FailedInitialization if prcoess failed on its 
own while in Starting state

Modified:
    
uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java

Modified: 
uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java
URL: 
http://svn.apache.org/viewvc/uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java?rev=1781103&r1=1781102&r2=1781103&view=diff
==============================================================================
--- 
uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java
 (original)
+++ 
uima/uima-ducc/trunk/uima-ducc-agent/src/main/java/org/apache/uima/ducc/agent/launcher/ManagedProcess.java
 Tue Jan 31 15:15:50 2017
@@ -415,7 +415,7 @@ public class ManagedProcess implements P
                        } else {
                                if ( !isAP && !isstopping ) {
                                        // check if process exited while in 
Initializing state  
-                                       if ( 
ProcessState.Initializing.equals(pstate) ) {
+                                       if ( 
ProcessState.Initializing.equals(pstate) || 
ProcessState.Starting.equals(pstate)) {
                                                
getDuccProcess().setReasonForStoppingProcess(ReasonForStoppingProcess.FailedInitialization.toString());
                                log("ManagedProcess.drainProcessStreams",
                                    "Process Failed while in initializing state 
- setting reason to "+getDuccProcess().getReasonForStoppingProcess());


Reply via email to