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 2017/01/05 18:25:09 UTC

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

Author: degenaro
Date: Thu Jan  5 18:25:09 2017
New Revision: 1777488

URL: http://svn.apache.org/viewvc?rev=1777488&view=rev
Log:
UIMA-5193 DUCC failover support (static)
> check_ducc -c should allow head node not in any pool for failover.

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=1777488&r1=1777487&r2=1777488&view=diff
==============================================================================
--- uima/uima-ducc/trunk/src/main/admin/ducc_util.py (original)
+++ uima/uima-ducc/trunk/src/main/admin/ducc_util.py Thu Jan  5 18:25:09 2017
@@ -1019,9 +1019,10 @@ class DuccUtil(DuccBase):
             if(len(failover_nodes) >= 0):
                 nodes = failover_nodes.split()
                 head_node = self.ducc_properties.get('ducc.head')
-                head_pool = self.get_nodepool(head_node)
+                head_pool = self.get_nodepool(head_node,'<None>')
                 for node in nodes:
                     node_pool = self.get_nodepool(node,'<None>')
+                    #print 'head:'+head_pool+' '+'node:'+node_pool
                     if( head_pool != node_pool):
                         if(rc == 0):
                             message = 'OK: Head failover node '+head_node+' in node pool '+head_pool