ChildNodeStateProvider does not return all immediate children
Add log for path when maxBufferSize changes. This would enable determining
sub tree having lots of children
@@ -62,7 +62,10 @@ class FlatFileStoreIterator extends AbstractIterator<NodeStateEntry> implements
}
private NodeStateEntry computeNextEntry() {
- maxBufferSize = Math.max(maxBufferSize, buffer.size());
+ if (buffer.size() > maxBufferSize) {
+ maxBufferSize = buffer.size();
+ log.info("Max buffer size changed {} for path {}", maxBufferSize, current.getPath());
+ }
if (!buffer.isEmpty()) {
return buffer.remove();
}
