mirror of https://github.com/apache/druid.git
more inventory logs
This commit is contained in:
parent
9c6e32fc3f
commit
e166260f80
|
@ -263,12 +263,13 @@ public class CuratorInventoryManager<ContainerClass, InventoryClass>
|
||||||
|
|
||||||
final ContainerClass container = strategy.deserializeContainer(child.getData());
|
final ContainerClass container = strategy.deserializeContainer(child.getData());
|
||||||
|
|
||||||
ContainerHolder oldContainer = containers.get(containerKey);
|
log.info("Container[%s] updated.", child.getPath());
|
||||||
if (oldContainer == null) {
|
ContainerHolder holder = containers.get(containerKey);
|
||||||
|
if (holder == null) {
|
||||||
log.warn("Container update[%s], but the old container didn't exist!? Ignoring.", child.getPath());
|
log.warn("Container update[%s], but the old container didn't exist!? Ignoring.", child.getPath());
|
||||||
} else {
|
} else {
|
||||||
synchronized (oldContainer) {
|
synchronized (holder) {
|
||||||
oldContainer.setContainer(strategy.updateContainer(oldContainer.getContainer(), container));
|
holder.setContainer(strategy.updateContainer(holder.getContainer(), container));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -121,6 +121,7 @@ public class BatchDataSegmentAnnouncer extends AbstractDataSegmentAnnouncer
|
||||||
{
|
{
|
||||||
final SegmentZNode segmentZNode = segmentLookup.remove(segment);
|
final SegmentZNode segmentZNode = segmentLookup.remove(segment);
|
||||||
if (segmentZNode == null) {
|
if (segmentZNode == null) {
|
||||||
|
log.warn("No path to unannounce segment[%s]", segment.getIdentifier());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue