Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,6 @@ public void notifyCheckpointComplete(long checkpointId) {
);
}

@Override
public void notifyCheckpointAborted(long checkpointId) {
if (checkpointId == this.checkpointId && !WriteMetadataEvent.BOOTSTRAP_INSTANT.equals(this.instant)) {
executor.execute(() -> {
this.ckpMetadata.abortInstant(this.instant);
}, "abort instant %s", this.instant);
}
}

@Override
public void resetToCheckpoint(long checkpointID, byte[] checkpointData) {
// no operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,13 +243,6 @@ protected String lastPendingInstant() {
return this.ckpMetadata.lastPendingInstant();
}

/**
* Returns whether the instant is fresh new(not aborted).
*/
protected boolean freshInstant(String instant) {
return !this.ckpMetadata.isAborted(instant);
}

/**
* Prepares the instant time to write with for next checkpoint.
*
Expand Down Expand Up @@ -286,6 +279,6 @@ protected String instantToWrite(boolean hasData) {
* Returns whether the pending instant is invalid to write with.
*/
private boolean invalidInstant(String instant, boolean hasData) {
return instant.equals(this.currentInstant) && hasData && freshInstant(instant);
return instant.equals(this.currentInstant) && hasData;
}
}