Skip to content

Commit

Permalink
Merge branch '11614-skip-extant-stream-files' into mod-run-migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tinker-michaelj committed Feb 20, 2024
2 parents 6e38f99 + 1ca77d4 commit 01a27f9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import edu.umd.cs.findbugs.annotations.NonNull;
import java.io.IOException;
import java.io.UncheckedIOException;
import java.nio.file.FileAlreadyExistsException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.StandardOpenOption;
Expand Down Expand Up @@ -107,6 +108,10 @@ static void writeSignatureFile(
logger.debug("signature file saved: {}", sigFilePath);
// flush
fileOut.flush();
} catch (final FileAlreadyExistsException ignore) {
// This is part of normal operations, as a reconnected node will very commonly
// re-create an existing record stream file while REPLAYING_EVENTS
logger.info("Skipping signature file for {} as it already exists", recordFilePath);
} catch (final IOException e) {
logger.error("Fail to generate signature file for {}", recordFilePath, e);
throw new UncheckedIOException(e);
Expand Down

0 comments on commit 01a27f9

Please sign in to comment.