You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2016/12/15 15:06:11 UTC

svn commit: r1774485 - /uima/uima-ducc/trunk/src/main/admin/ducc_util.py

Author: degenaro
Date: Thu Dec 15 15:06:11 2016
New Revision: 1774485

URL: http://svn.apache.org/viewvc?rev=1774485&view=rev
Log:
UIMA-5193 DUCC failover support (static)

Modified:
    uima/uima-ducc/trunk/src/main/admin/ducc_util.py

Modified: uima/uima-ducc/trunk/src/main/admin/ducc_util.py
URL: http://svn.apache.org/viewvc/uima/uima-ducc/trunk/src/main/admin/ducc_util.py?rev=1774485&r1=1774484&r2=1774485&view=diff
==============================================================================
--- uima/uima-ducc/trunk/src/main/admin/ducc_util.py (original)
+++ uima/uima-ducc/trunk/src/main/admin/ducc_util.py Thu Dec 15 15:06:11 2016
@@ -1020,17 +1020,16 @@ class DuccUtil(DuccBase):
                 nodes = failover_nodes.split()
                 head_node = self.ducc_properties.get('ducc.head')
                 head_pool = self.get_nodepool(head_node)
-                mismatch = False
                 for node in nodes:
                     node_pool = self.get_nodepool(node,'<None>')
                     if( head_pool != node_pool):
-                        if(not mismatch):
+                        if(rc == 0):
                             message = 'OK: Head failover node '+head_node+' in node pool '+head_pool
                             print message
                         message = 'NOTOK: Head failover node '+node+' in node pool '+node_pool
                         print message
-                        mismatch = True
-                if mismatch:
+                        rc = 1
+                if (rc > 0):
                     message = "NOTOK: Head failover nodepools incorrectly configured."
                 else:
                     message = "OK: Head failover nodepools correctly configured."