chungen0126 commented on code in PR #5093:
URL: https://github.com/apache/ozone/pull/5093#discussion_r1315910925
##########
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:
I wonder if it is fine to add deleted keys to TreeMap. If It was resolved by
the PR, I will remove my changes about listing keys from DB.
--
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]