fix druid master segments getting stuck bug

This commit is contained in:
fjy 2013-08-08 22:06:41 -07:00
parent 3e8406a2e6
commit a190269faa
1 changed files with 2 additions and 1 deletions

View File

@ -728,6 +728,7 @@ public class DruidMaster
// Stop peons for servers that aren't there anymore. // Stop peons for servers that aren't there anymore.
for (String name : Sets.difference( for (String name : Sets.difference(
loadManagementPeons.keySet(),
Sets.newHashSet( Sets.newHashSet(
Iterables.transform( Iterables.transform(
servers, servers,
@ -740,7 +741,7 @@ public class DruidMaster
} }
} }
) )
), loadManagementPeons.keySet() )
)) { )) {
log.info("Removing listener for server[%s] which is no longer there.", name); log.info("Removing listener for server[%s] which is no longer there.", name);
LoadQueuePeon peon = loadManagementPeons.remove(name); LoadQueuePeon peon = loadManagementPeons.remove(name);