Cyrill commented on code in PR #6006:
URL: https://github.com/apache/ozone/pull/6006#discussion_r1455164097
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -965,6 +965,26 @@ public String createSnapshot(String volumeName,
bucketName, snapshotName);
}
+ /**
+ * Rename Snapshot.
+ * @param volumeName vol to be used
+ * @param bucketName bucket to be used
+ * @param fromSnapshotName name of the snapshot to be renamed
+ * @param toSnapshotName new name to be used for the snapshot
+ * @throws IOException
+ */
+ @Override
+ public void renameSnapshot(String volumeName,
+ String bucketName, String fromSnapshotName,
+ String toSnapshotName) throws IOException {
+ Preconditions.checkArgument(StringUtils.isNotBlank(volumeName),
+ "volume can't be null or empty.");
+ Preconditions.checkArgument(StringUtils.isNotBlank(bucketName),
+ "bucket can't be null or empty.");
+ ozoneManagerClient.renameSnapshot(volumeName,
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]