use of org.apache.flink.runtime.checkpoint.decline.AlignmentLimitExceededException in project flink by apache.
the class BarrierBuffer method checkSizeLimit.
private void checkSizeLimit() throws Exception {
if (maxBufferedBytes > 0 && (numQueuedBytes + bufferSpiller.getBytesWritten()) > maxBufferedBytes) {
// exceeded our limit - abort this checkpoint
LOG.info("Checkpoint {} aborted because alignment volume limit ({} bytes) exceeded", currentCheckpointId, maxBufferedBytes);
releaseBlocksAndResetBarriers();
notifyAbort(currentCheckpointId, new AlignmentLimitExceededException(maxBufferedBytes));
}
}
Aggregations