Skip to content
Merged
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 @@ -70,7 +70,8 @@ public static SnapshotInfo getSnapshotInfo(final OzoneManager ozoneManager,
throw e;
}
if (snapshotInfo == null) {
throw new OMException(KEY_NOT_FOUND);
throw new OMException("Snapshot '" + snapshotKey + "' is not found.",
Copy link
Contributor

@hemantk-12 hemantk-12 Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should it be snapshotKey or snapshotName? I think snapshotName would be better.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hemantk-12 In this case it only has dbKey (e.g. result of SnapshotInfo.getTableKey(volumeName, bucketName, snapshotName))

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. But I'm just thinking from client perspective snapshotName would be better which can be extracted from the snapshotKey I guess. At the same time it is not a big deal to return snapshotKey in exception message.

KEY_NOT_FOUND);
}
return snapshotInfo;
}
Expand Down