flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StephanEwen <...@git.apache.org>
Subject [GitHub] flink pull request #1668: [FLINK-3257] Add Exactly-Once Processing Guarantee...
Date Sat, 25 Mar 2017 11:50:27 GMT
Github user StephanEwen commented on a diff in the pull request:

    --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamIterationTail.java
    @@ -64,6 +70,22 @@ public void init() throws Exception {
    +	@Override
    +	protected boolean performCheckpoint(CheckpointMetaData checkpointMetaData, CheckpointOptions
checkpointOptions, CheckpointMetrics checkpointMetrics) throws Exception {
    +		LOG.debug("Starting checkpoint {} on task {}", checkpointMetaData.getCheckpointId(),
    +		synchronized (getCheckpointLock()) {
    +			if (isRunning()) {
    +				dataChannel.put(new Either.Right(new CheckpointBarrier(checkpointMetaData.getCheckpointId(),
checkpointMetaData.getTimestamp(), checkpointOptions)));
    +				getEnvironment().acknowledgeCheckpoint(checkpointMetaData.getCheckpointId(), checkpointMetrics);
    --- End diff --
    Can the `IterationTailTask` contain operators as well, or is it always a task without
operators? If it has operators, we cannot immediately acknowledge here, but need to delegate
to superclass checkpoint method instead.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message