/** * On segment creation, flag whether the segment should accept CDC mutations or not based on the total currently * allocated unflushed CDC segments and the contents of cdc_raw */ public CommitLogSegment createSegment() { CommitLogSegment segment = CommitLogSegment.createSegment(commitLog, this); cdcSizeTracker.processNewSegment(segment); return segment; }
private void recalculateOverflowSize() { rateLimiter.acquire(); calculateSize(); CommitLogSegment allocatingFrom = segmentManager.allocatingFrom(); if (allocatingFrom.getCDCState() == CDCState.FORBIDDEN) processNewSegment(allocatingFrom); }
/** * On segment creation, flag whether the segment should accept CDC mutations or not based on the total currently * allocated unflushed CDC segments and the contents of cdc_raw */ public CommitLogSegment createSegment() { CommitLogSegment segment = CommitLogSegment.createSegment(commitLog, this); cdcSizeTracker.processNewSegment(segment); return segment; }
/** * On segment creation, flag whether the segment should accept CDC mutations or not based on the total currently * allocated unflushed CDC segments and the contents of cdc_raw */ public CommitLogSegment createSegment() { CommitLogSegment segment = CommitLogSegment.createSegment(commitLog, this); cdcSizeTracker.processNewSegment(segment); return segment; }
private void recalculateOverflowSize() { rateLimiter.acquire(); calculateSize(); CommitLogSegment allocatingFrom = segmentManager.allocatingFrom(); if (allocatingFrom.getCDCState() == CDCState.FORBIDDEN) processNewSegment(allocatingFrom); }
private void recalculateOverflowSize() { rateLimiter.acquire(); calculateSize(); CommitLogSegment allocatingFrom = segmentManager.allocatingFrom(); if (allocatingFrom.getCDCState() == CDCState.FORBIDDEN) processNewSegment(allocatingFrom); }