Commit 1c1fd966 authored by Guus der Kinderen's avatar Guus der Kinderen

OF-1327: A Map of NodeIDs cannot contain a byte array.

parent 54a6004c
......@@ -1088,8 +1088,9 @@ public class RoutingTableImpl extends BasicModule implements RoutingTable, Clust
try {
componentLock.lock();
List<String> remoteComponents = new ArrayList<>();
NodeID nodeIDInstance = NodeID.getInstance( nodeID );
for (Map.Entry<String, Set<NodeID>> entry : componentsCache.entrySet()) {
if (entry.getValue().remove(nodeID) && entry.getValue().size() == 0) {
if (entry.getValue().remove(nodeIDInstance) && entry.getValue().size() == 0) {
remoteComponents.add(entry.getKey());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment