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 2022/02/23 11:16:30 UTC

[GitHub] [ozone] Xushaohong opened a new pull request #3126: HDDS-6369. Fix PARTIAL_RENAME to update DB

Xushaohong opened a new pull request #3126:
URL: https://github.com/apache/ozone/pull/3126


   ## What changes were proposed in this pull request?
   
   Override the method checkAndUpdateDB to update DB when response status is PARTIAL_RENAME.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6369
   
   ## How was this patch tested?
   UT
   


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


[GitHub] [ozone] adoroszlai merged pull request #3126: HDDS-6369. PARTIAL_RENAME does not update OM DB

Posted by GitBox <gi...@apache.org>.
adoroszlai merged pull request #3126:
URL: https://github.com/apache/ozone/pull/3126


   


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


[GitHub] [ozone] Xushaohong commented on pull request #3126: HDDS-6369. Fix PARTIAL_RENAME to update DB

Posted by GitBox <gi...@apache.org>.
Xushaohong commented on pull request #3126:
URL: https://github.com/apache/ozone/pull/3126#issuecomment-1049471673


   > Thanks @Xushaohong for extracting this from #3121, and finding the problem in the first place.
   > 
   > If I understand correctly, the bug could lead to data loss.
   
   Yep, if OM restarts, it would lose the key data.
   
   > I think we can expand this test case to include "multi rename" before restarting OM:
   > 
   > https://github.com/apache/ozone/blob/239d889344e028d4e08a9c678a837f54a801fccd/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerRestart.java#L170-L171
   
   Thx @adoroszlai for helping review! I have updated the UT. 
   


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


[GitHub] [ozone] adoroszlai commented on a change in pull request #3126: HDDS-6369. Fix PARTIAL_RENAME to update DB

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on a change in pull request #3126:
URL: https://github.com/apache/ozone/pull/3126#discussion_r813684206



##########
File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOzoneManagerRestart.java
##########
@@ -188,12 +197,29 @@ public void testRestartOMWithKeyOperation() throws Exception {
     Assert.assertTrue(ozoneBucket.getName().equals(bucketName));
 
     String data = "random data";
-    OzoneOutputStream ozoneOutputStream = ozoneBucket.createKey(key,
+    OzoneOutputStream ozoneOutputStream1 = ozoneBucket.createKey(key1,

Review comment:
       Nit: renaming `ozoneOutputStream` seems unnecessary, but no need to revert unless further changes are requested by other reviewers.




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


[GitHub] [ozone] adoroszlai commented on pull request #3126: HDDS-6369. PARTIAL_RENAME does not update OM DB

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #3126:
URL: https://github.com/apache/ozone/pull/3126#issuecomment-1050895632


   This was needed for #3121, as it exposes this bug in `TestOzoneRpcClientAbstract#testKeysRenameFail`.


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