-
Notifications
You must be signed in to change notification settings - Fork 594
HDDS-11914. Snapshot diff should not filter SST Files based by reading SST file reader #7563
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
…g SST file reader Change-Id: If657ea759afd90e87fc4e8e975546235d559401e
...-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDiffUtils.java
Outdated
Show resolved
Hide resolved
...one/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java
Outdated
Show resolved
Hide resolved
...ds/managed-rocksdb/src/main/java/org/apache/hadoop/hdds/utils/db/managed/ManagedRocksDB.java
Outdated
Show resolved
Hide resolved
...ksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java
Outdated
Show resolved
Hide resolved
...one/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java
Outdated
Show resolved
Hide resolved
...ds/managed-rocksdb/src/main/java/org/apache/hadoop/hdds/utils/db/managed/ManagedRocksDB.java
Outdated
Show resolved
Hide resolved
Change-Id: Ic5518fc7631fbac7caac8ffb5b743c157168524f
...ksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java
Outdated
Show resolved
Hide resolved
Change-Id: I189e26e59142ef4f6d1f035e6663bcc1639a59f4
...-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDiffUtils.java
Show resolved
Hide resolved
Change-Id: I6160cb11bd5d942bf9990e0ab1ca6014b2250bf1
Change-Id: I9a87f513b41982e3695b13f3ad6c4a17e2230579
hemantk-12
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 @swamirishi for the patch.
LGTM.
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.
Changes look good to me. Thank you for making tehse changes @swamirishi
Change-Id: Ib0dde58b036f4061327806c8a2f8a460464bf224 # Conflicts: # hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java # hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java
Change-Id: Iaf7b1bf0b1c986a8956e3fdfa0598dff4f56766f
Change-Id: I9f37dc42e98fbf9995a659ddabbd14debe940d78 # Conflicts: # hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDBCheckpointDiffer.java # hadoop-hdds/rocksdb-checkpoint-differ/src/main/java/org/apache/ozone/rocksdiff/RocksDiffUtils.java
Change-Id: I9007e70744a6fa1f74f5d3411d469e20cb46b093
| RocksDiffUtils.filterRelevantSstFiles(inputFiles, tablePrefixes, fromDB); | ||
| deltaFiles.addAll(inputFiles); | ||
| } | ||
| addToObjectIdMap(fsTable, tsTable, deltaFiles, |
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.
nit: can you please log deltaFiles at DEBUG level?
hemantk-12
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 @swamirishi for the fix.
LGTM.
|
Thanks @hemantk-12 @prashantpogde for reviewing the patch |
| public synchronized Optional<List<String>> getSSTDiffListWithFullPath( | ||
| DifferSnapshotInfo src, | ||
| DifferSnapshotInfo dest, | ||
| String sstFilesDirForSnapDiffJob | ||
| ) throws IOException { | ||
| public synchronized Optional<List<String>> getSSTDiffListWithFullPath(DifferSnapshotInfo src, | ||
| DifferSnapshotInfo dest, | ||
| String sstFilesDirForSnapDiffJob) { |
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.
nit: Indenting parameters like this triggers unnecessary change whenever visibility / return type / method name is updated.
| import org.apache.ratis.util.TimeDuration; | ||
| import jakarta.annotation.Nonnull; | ||
| import org.junit.jupiter.api.AfterEach; | ||
| import org.junit.jupiter.api.Assertions; |
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.
nit: please use static import for assertions and mocks (see HDDS-9961).
What changes were proposed in this pull request?
Snapshot diff should not filter SST Files based by reading SST file reader and instead should rely on rocksdb's liveMetadataFile which also includes tombstone entries.
When creating dag compaction log as well, key ranges should also look at liveMetadataFile.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-11914
How was this patch tested?
Existing Unit tests and adding more