fapifta commented on code in PR #4478:
URL: https://github.com/apache/ozone/pull/4478#discussion_r1163365031


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyRenameRequestWithFSO.java:
##########
@@ -101,7 +102,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager 
ozoneManager,
     OmKeyInfo fromKeyValue;
     Result result;
     try {
-      if (toKeyName.length() == 0 || fromKeyName.length() == 0) {
+      if (fromKeyName.length() == 0) {
         throw new OMException("Key name is empty",

Review Comment:
   After changing the condition, I believe we can be more precise in the 
message and denote that the source key is the problematic one.



-- 
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]

Reply via email to