Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -662,4 +662,10 @@ public TopicPartition registeredChangelogPartitionFor(final String storeName) {
public String changelogFor(final String storeName) {
return storeToChangelogTopic.get(storeName);
}

public void deleteCheckPointFile() throws IOException {
Comment thread
DOJI45 marked this conversation as resolved.
Outdated
if (eosEnabled) {
checkpointFile.delete();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,15 @@ public void resume() {
case SUSPENDED:
// just transit the state without any logical changes: suspended and restoring states
// are not actually any different for inner modules

// Deleting checkpoint file before transition to RESTORING state (KAFKA-10362)
try {
stateMgr.deleteCheckPointFile();
log.debug("Deleted check point file");
Comment thread
DOJI45 marked this conversation as resolved.
Outdated
} catch (final IOException ioe) {
log.error("Encountered error while deleting the checkpoint file due to this exception", ioe);
}

transitionTo(State.RESTORING);
log.info("Resumed to restoring state");

Expand Down