smengcl commented on code in PR #5093:
URL: https://github.com/apache/ozone/pull/5093#discussion_r1317909194


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java:
##########
@@ -1242,7 +1242,7 @@ private OmKeyInfo createFakeDirIfShould(String volume, 
String bucket,
           // in different volume/bucket, such as "/vol1/bucket2/dir2/key2".
           if (key.startsWith(targetKey)) {
             if (!Objects.equals(key, targetKey)
-                && !isKeyDeleted(key, keyTable)) {
+                && keyTable.isExist(key)) {

Review Comment:
   Thanks @chungen0126 @devmadhuu .
   
   Should we consider this PR superceded by #5244 ? Since the latter is fixing 
the same issue in a cleaner way



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