art9440 commented on code in PR #9774:
URL: https://github.com/apache/ozone/pull/9774#discussion_r2815828650
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/OMClientRequestUtils.java:
##########
@@ -111,4 +112,27 @@ public static boolean
shouldLogClientRequestFailure(IOException exception) {
return true;
}
}
+
+ public static void validateVolumeName(String volumeName) throws IOException {
+ if (StringUtils.isBlank(volumeName)) {
+ if (StringUtils.isBlank(volumeName)) {
+ throw new OMException("Invalid, volume name is empty",
+ OMException.ResultCodes.INVALID_VOLUME_NAME);
+ }
Review Comment:
Fixed
--
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]