Skip to content

Conversation

@swamirishi
Copy link
Contributor

@swamirishi swamirishi commented Jan 18, 2023

What changes were proposed in this pull request?

Adding testcases to test functionality of snapdiff & key reclaimation in snapshots.
Adding a flag to force snapdiff without using the native libraries. This is to give the users an option to debug any correctness issue in snapdiff to understand diff b/w the 2 diff flows.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7798

How was this patch tested?

Unit Tests

@swamirishi swamirishi marked this pull request as draft January 18, 2023 17:31
@swamirishi swamirishi changed the title HDDS-7798: SnapDiff : Edge case handling Unit Tests HDDS-7798. SnapDiff : Edge case handling Unit Tests Jan 18, 2023
@swamirishi swamirishi marked this pull request as ready for review January 19, 2023 01:23
@smengcl smengcl added the snapshot https://issues.apache.org/jira/browse/HDDS-6517 label Jan 19, 2023
@swamirishi swamirishi changed the title HDDS-7798. SnapDiff : Edge case handling Unit Tests HDDS-7798. [Snaphost] SnapDiff : Edge case handling Unit Tests Jan 19, 2023
@swamirishi swamirishi changed the title HDDS-7798. [Snaphost] SnapDiff : Edge case handling Unit Tests HDDS-7798. [Snapshot] SnapDiff : Edge case handling Unit Tests Jan 19, 2023
@swamirishi swamirishi marked this pull request as draft January 25, 2023 19:23
@swamirishi swamirishi marked this pull request as draft January 25, 2023 19:23
@prashantpogde
Copy link
Contributor

@swamirishi Can you please rebase this PR to master ? We will be merging changes in to master going forward.

@swamirishi swamirishi changed the base branch from HDDS-6517-Snapshot to master February 7, 2023 00:50
@prashantpogde prashantpogde requested a review from smengcl February 9, 2023 21:43
@prashantpogde
Copy link
Contributor

@DaveTeng0 Can you please review this ?

@smengcl
Copy link
Contributor

smengcl commented Apr 27, 2023

Need a rebase (merge) and CI fixes.

# Conflicts:
#	hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshot.java
#	hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java
@smengcl
Copy link
Contributor

smengcl commented Jun 8, 2023

Blocked by #4678

@smengcl smengcl marked this pull request as draft June 8, 2023 20:51
# Conflicts:
#	.github/workflows/ci.yml
#	hadoop-hdds/rocksdb-checkpoint-differ/src/test/java/org/apache/ozone/rocksdb/util/TestManagedSstFileReader.java
#	hadoop-ozone/dev-support/checks/junit.sh
#	hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmSnapshot.java
#	hadoop-ozone/ozone-manager/pom.xml
#	hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/snapshot/SnapshotDiffManager.java
#	hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/snapshot/SnapshotTestUtils.java
#	hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestSnapshotDiffManager.java
#	pom.xml
Copy link
Contributor

@smengcl smengcl left a 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 great test additions. We can have a follow-up jira to refactor (deduplicate) the test.

Pending nit addressal and green CI.

@smengcl smengcl changed the title HDDS-7798. [Snapshot] SnapDiff : Edge case handling Unit Tests HDDS-7798. [Snapshot] Add SnapDiff test cases; add config to allow disabling native libs for SnapDiff Jun 30, 2023
@smengcl smengcl merged commit 12f3f5a into apache:master Jul 11, 2023
@smengcl
Copy link
Contributor

smengcl commented Jul 11, 2023

Thanks @swamirishi for the test additions and fixes. Thanks @hemantk-12 for reviewing this.

@adoroszlai
Copy link
Contributor

We can have a follow-up jira to refactor (deduplicate) the test.

I don't see such a follow-up task. Also, please note that TestOmSnapshot now takes 17-19 minutes, up from 4.5 minutes. Filed HDDS-9299.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

snapshot https://issues.apache.org/jira/browse/HDDS-6517

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants