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.
for (String name : Sets.difference(
loadManagementPeons.keySet(),
Sets.newHashSet(
Iterables.transform(
servers,
@ -740,7 +741,7 @@ public class DruidMaster
}
}
)
), loadManagementPeons.keySet()
)
)) {
log.info("Removing listener for server[%s] which is no longer there.", name);
LoadQueuePeon peon = loadManagementPeons.remove(name);