SegmentNodeBuilder getNodeState can trigger eager flush of child node builder
@@ -111,8 +111,10 @@ public class SegmentNodeBuilder extends MemoryNodeBuilder {
SegmentNodeState sState = writer.writeNode(state);
if (state != sState) {
set(sState);
+ if(!isChildBuilder()) {
updateCount = 0;
}
+ }
return sState;
} catch (IOException e) {
LOG.error("Error flushing changes", e);
