-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-7741. [Snapshot] Delete keys in snapshot scope from deleteTable during createSnapshot to accommodate snapshot garbage collection #4280
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
…during createSnapshot to accommodate snapshot garbage collection
Change-Id: Ibbf5f8c3ed29f4d235af4c75d40c351b55a3cc98
...nager/src/main/java/org/apache/hadoop/ozone/om/request/snapshot/OMSnapshotCreateRequest.java
Outdated
Show resolved
Hide resolved
Change-Id: If40fe3b6397c0f53c5970bd17a0b3ecbadacf2d8
Change-Id: Ide13aee59fc84d785aba5bc1ff735529c48149e3
Change-Id: I478aaff0d112f8f14381dd04aac994afc446e70a
Change-Id: Ida129a5821dedfc5883868ec1597bad014317662
...ontainer-service/src/main/java/org/apache/hadoop/ozone/container/metadata/DatanodeTable.java
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java
Show resolved
Hide resolved
...ger/src/main/java/org/apache/hadoop/ozone/om/response/snapshot/OMSnapshotCreateResponse.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java
Show resolved
Hide resolved
Change-Id: I8f8dab1473b3e7c65acd2e04ef0ed13367d15082
Conflicts: hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmSnapshotManager.java hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/snapshot/OMSnapshotCreateResponse.java Change-Id: I7c1bcce86d7a98cd83aa3b63be446ab94a501102
prashantpogde
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.
thanks @smengcl for making these changes. LGTM
…moved when proper refactor HDDS-5905 (HDDS-6483) is in. Change-Id: I74e5cb7a8a147a78f61dcfc6325fe6ec1f96b517
|
Thanks @prashantpogde for the review. I've added a note that the lock is a stopgap solution before the proper fix (HDDS-5905, HDDS-6483) is in. As I talked to @kerneltime last week that it is not ideal to have a lock on a RocksDB table in the first place. |
|
Thanks @prashantpogde for the review. |
What changes were proposed in this pull request?
During snapshot creation, use deleteRange to remove the keys in the snapshot scope (bucket) from deletedTable.
deleteRangeinTableclass to expose RocksDBdeleteRangeAPI.deleteRangedeletedTableOMSnapshotCreateRequest#validateAndUpdateCacheWhat is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-7741
How was this patch tested?