peterxcli commented on code in PR #11762:
URL: https://github.com/apache/ozone/pull/11762#discussion_r4499863614


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/ContainerKeyMapperHelper.java:
##########
@@ -265,8 +265,7 @@ public static boolean process(OMUpdateEventBatch events,
 
         case UPDATE:
           if (omdbUpdateEvent.getOldValue() != null) {
-            handleDeleteOMKeyEvent(
-                omdbUpdateEvent.getOldValue().getKeyName(), 
localContainerKeyMap,
+            handleDeleteOMKeyEvent(updatedKey, localContainerKeyMap,

Review Comment:
   solve this with sync method, I think better solution would be:
   1. Optimistic transactions (`OptimisticTransactionDB` with `GetForUpdate` 
and retry)
   2. Merge operator
   
   but they require bigger changes.



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