@@ -69,9 +69,6 @@ def __init__(self, manager, arealm_oid, interval=10.):
6969 # this flag is set
7070 self ._check_and_apply_in_progress = False
7171
72- # locks for proxy connections being handled currently
73- self ._proxy_connection_locks = {}
74-
7572 @property
7673 def is_started (self ):
7774 """
@@ -341,18 +338,6 @@ def _apply_webcluster_connections(self, wc_node_oid, wc_worker_id, workergroup_p
341338 # we will name the connection on our proxy worker along the target node/worker
342339 connection_id = 'cnc_{}_{}' .format (node_authid , worker_name )
343340
344- # check if a connection with the respective name is already running
345- lock_key = (wc_node_oid , wc_worker_id , connection_id )
346- if lock_key in self ._proxy_connection_locks :
347- self .log .info (
348- '{func} Proxy connection {connection_id} already being handled by another placement - skipping {placement}' ,
349- func = hltype (self ._apply_webcluster_connections ),
350- connection_id = hlid (connection_id ),
351- placement = self ._proxy_connection_locks [lock_key ])
352- continue
353-
354- self ._proxy_connection_locks [lock_key ] = placement
355-
356341 try :
357342 connection = yield self ._manager ._session .call (
358343 'crossbarfabriccenter.remote.proxy.get_proxy_connection' , str (wc_node_oid ), wc_worker_id ,
@@ -367,7 +352,6 @@ def _apply_webcluster_connections(self, wc_node_oid, wc_worker_id, workergroup_p
367352 wc_worker_id = hlid (wc_worker_id ),
368353 wc_node_oid = hlid (wc_node_oid ),
369354 error = e .error )
370- del self ._proxy_connection_locks [lock_key ]
371355 raise
372356 is_running_completely = False
373357 connection = None
@@ -611,7 +595,6 @@ def _apply_webcluster_connections(self, wc_node_oid, wc_worker_id, workergroup_p
611595 wc_worker_id = hlid (wc_worker_id ),
612596 wc_node_oid = hlid (wc_node_oid ),
613597 error = e .error )
614- del self ._proxy_connection_locks [lock_key ]
615598 raise
616599 is_running_completely = False
617600 if e .error == 'wamp.error.no_such_procedure' :
@@ -668,7 +651,6 @@ def _apply_webcluster_connections(self, wc_node_oid, wc_worker_id, workergroup_p
668651 wc_worker_id = hlid (wc_worker_id ),
669652 num_routes = len (routes ))
670653
671- del self ._proxy_connection_locks [lock_key ]
672654 return is_running_completely
673655
674656 @inlineCallbacks
@@ -737,11 +719,19 @@ def _apply_webcluster_routes(self, workergroup_placements, wc_node_oid, wc_worke
737719 route = yield self ._manager ._session .call ('crossbarfabriccenter.remote.proxy.start_proxy_realm_route' ,
738720 str (wc_node_oid ), wc_worker_id , realm_name , config )
739721 except Exception as e :
740- self .log .error ('Proxy route failed: {e}' , e = e )
722+ self .log .error (
723+ '{func} Proxy route creation FAILED for node={node_oid} worker={worker_id} realm="{realm}": {error}' ,
724+ func = hltype (self ._apply_webcluster_routes ),
725+ node_oid = hlid (str (wc_node_oid )),
726+ worker_id = hlid (wc_worker_id ),
727+ realm = hlval (realm_name ),
728+ error = e )
741729 else :
742730 self .log .info (
743- '{func} Proxy backend route started:\n {route}' ,
731+ '{func} Proxy backend route started on node={node_oid} worker={worker_id} :\n {route}' ,
744732 func = hltype (self ._apply_webcluster_routes ),
733+ node_oid = hlid (str (wc_node_oid )),
734+ worker_id = hlid (wc_worker_id ),
745735 route = route ,
746736 )
747737 routes .append (route )
0 commit comments