-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-8665. Implemented CopyObject for SnapshotInfo and moved out snapshot chain update form OMSnapshotPurgeResponse #5201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/SnapshotInfo.java
Outdated
Show resolved
Hide resolved
smengcl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Structurally tha patch looks good to me.
@aswinshakil pls take a look. see if the chain operations are still consistent w/ the patch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for finding this issue and putting up the patch @hemantk-12 . Changes look good to me. Pending CI
|
|
||
| updateSnapshotInfoAndCache(nextSnapshot, omMetadataManager, | ||
| trxnLogIndex, updatedSnapInfos, true); | ||
| updateSnapshotChainAndCache(omMetadataManager, fromSnapshot, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a possibility that snapshot chain may get corrupted because of batch operation.
Created jira to revisit it: https://issues.apache.org/jira/browse/HDDS-9198
|
Thanks @hemantk-12 for the fix. Thanks @szetszwo for raising the issue. Thanks @aswinshakil for reviewing this. |
|
@hemantk-12 , @smengcl , thanks a lot for fixing this! |
…ved out snapshot chain update form OMSnapshotPurgeResponse (apache#5201) (cherry picked from commit fcf5b17) Change-Id: I6df1b15926a10034a9d68f226b932392c1c67e9e
What changes were proposed in this pull request?
Issue is that at final stage of snapshot purge we update the snapshot chain and next global & path level snapshots in DB. When we update next global and path level snapshots in DB, it doesn’t not update the cache. SnapshotInfo read happens from the cache. When causes that test failures mentioned in HDDS-8665.
This change contains two main change.
OMSnapshotPurgeResponsetoOMSnapshotPurgeRequest.What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-8665
How was this patch tested?
Existing unit tests.