rich7420 commented on code in PR #11044:
URL: https://github.com/apache/ozone/pull/11044#discussion_r3835592900


##########
hadoop-ozone/cli-debug/src/main/java/org/apache/hadoop/ozone/debug/replicas/ReplicasVerify.java:
##########
@@ -346,13 +346,40 @@ void processKey(OzoneClient ozoneClient, String 
volumeName, String bucketName, S
       return;
     }
 
+    KeyVerificationResult keyVerificationResult = verifyKey(keyInfo, 
volumeName, bucketName, keyName);
+    if (keyVerificationResult.shouldRefreshKeyLocation()) {
+      OmKeyInfo refreshedKeyInfo = ozoneClient.getProxy().getKeyInfo(

Review Comment:
   Same exposure on the initial `getKeyInfo` (~L340): `checkBucket` iterates 
`listKeys()` with no per-key catch, so a key deleted mid-run throws 
`KEY_NOT_FOUND` and aborts the whole run. Worth the same catch-and-continue 
here.



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