Search in sources :

Example 1 with AlignmentLimitExceededException

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));
    }
}
Also used : AlignmentLimitExceededException(org.apache.flink.runtime.checkpoint.decline.AlignmentLimitExceededException)

Aggregations

AlignmentLimitExceededException (org.apache.flink.runtime.checkpoint.decline.AlignmentLimitExceededException)1