From af72d0e71abc2384f6368dacb18aad993e6f3fee Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 12 Apr 2018 17:05:06 -0400 Subject: [PATCH] Update the discovery lookup tables on node add/remove This will mitigate stale mappings in the discovery process. --- confluent_server/confluent/discovery/core.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_server/confluent/discovery/core.py b/confluent_server/confluent/discovery/core.py index eb5aea26..9dfc76db 100644 --- a/confluent_server/confluent/discovery/core.py +++ b/confluent_server/confluent/discovery/core.py @@ -1078,6 +1078,7 @@ def newnodes(added, deleting, configmanager): global attribwatcher global needaddhandled global nodeaddhandler + _map_unique_ids() configmanager.remove_watcher(attribwatcher) allnodes = configmanager.list_nodes() attribwatcher = configmanager.watch_attributes(