You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2023/01/10 18:15:30 UTC

[GitHub] [ozone] duongkame commented on a diff in pull request #4156: HDDS-7722. FSO buckets fail to invalidate open file table cache when committing a key

duongkame commented on code in PR #4156:
URL: https://github.com/apache/ozone/pull/4156#discussion_r1066133897


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCommitRequestWithFSO.java:
##########
@@ -193,7 +193,7 @@ public OMClientResponse validateAndUpdateCache(OzoneManager ozoneManager,
       }
 
       // Add to cache of open key table and key table.
-      OMFileRequest.addOpenFileTableCacheEntry(omMetadataManager, dbFileKey,
+      OMFileRequest.addOpenFileTableCacheEntry(omMetadataManager, dbOpenFileKey,

Review Comment:
   Nice catch.
   
   So, what happens is when an FSO key is committed, the open-key entry is not cleaned up. Logically, that should prevent the key from being reopened, e.g. for a overwrite. 
   Fortunately (or maybe not), when OM opens a key for writing, it just doesn't care if the file has been opened already (even by the same client). I feel like this behavior results in some funny scenarios when multiple clients open and commit the same file. Guess it's something we can think about. 



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org