Skip to content

Commit

Permalink
Log map name when snapshot validation fails (#20822)
Browse files Browse the repository at this point in the history
  • Loading branch information
frant-hartm committed Feb 23, 2022
1 parent 611e66f commit eb930b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ static long validateSnapshot(
if (validationRecord == null) {
String nameOrId = snapshotName != null ? '"' + snapshotName + '"' : "with ID " + snapshotId;
throw new JetException(String.format(
"snapshot %s doesn't exist or is damaged. Unable to restore the state for %s.",
nameOrId, jobIdString));
"snapshot %s in IMap %s (%d entries) is damaged. Unable to restore the state for %s.",
nameOrId, snapshotMap.getName(), snapshotMap.size() - 1, jobIdString));
}
if (validationRecord.numChunks() != snapshotMap.size() - 1) {
// fallback validation that counts using aggregate(), ignoring different snapshot IDs
Expand Down

0 comments on commit eb930b6

Please sign in to comment.