This is an automated email from the ASF dual-hosted git repository.
sumitagrawal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 611e6d7c88 HDDS-9195. TestOzoneFileSystem - Handle inconsistency in
Create, Delete operations of same key before cache flush. (#5208)
611e6d7c88 is described below
commit 611e6d7c88bc80d7e7b3c91893cbde765ac482c3
Author: devmadhuu <[email protected]>
AuthorDate: Mon Aug 28 14:14:49 2023 +0530
HDDS-9195. TestOzoneFileSystem - Handle inconsistency in Create, Delete
operations of same key before cache flush. (#5208)
---
.../src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
index 2cfcd54168..8bce4eb70f 100644
---
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
+++
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
@@ -1613,7 +1613,7 @@ public class KeyManagerImpl implements KeyManager {
// for recursive list all the entries
if (!isKeyDeleted(entryInDb, keyTable)) {
- cacheKeyMap.put(entryInDb, new OzoneFileStatus(omKeyInfo,
+ cacheKeyMap.putIfAbsent(entryInDb, new OzoneFileStatus(omKeyInfo,
scmBlockSize, !OzoneFSUtils.isFile(entryKeyName)));
countEntries++;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]