-
Notifications
You must be signed in to change notification settings - Fork 587
HDDS-9312. Expand all the entries deletedDirTable for Snapshot. #5339
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
Changes from all commits
56b2ab1
5f4bbf3
61e9376
3f74baa
382962d
da3f654
d647921
cd82700
8fc3a25
75f3f5e
9baa010
fb4aca2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,6 +72,7 @@ private SnapshotInfo createSnapshotInfo() { | |
| .setReferencedReplicatedSize(6000L) | ||
| .setExclusiveSize(1000L) | ||
| .setExclusiveReplicatedSize(3000L) | ||
| .setExpandedDeletedDir(false) | ||
| .build(); | ||
| } | ||
|
|
||
|
|
@@ -95,6 +96,7 @@ private OzoneManagerProtocolProtos.SnapshotInfo createSnapshotInfoProto() { | |
| .setReferencedReplicatedSize(6000L) | ||
| .setExclusiveSize(1000L) | ||
| .setExclusiveReplicatedSize(3000L) | ||
| .setExpandedDeletedDir(false) | ||
| .build(); | ||
| } | ||
|
|
||
|
|
@@ -138,7 +140,8 @@ public void testSnapshotInfoToProto() { | |
| snapshotInfoEntryActual.getExclusiveSize()); | ||
| Assert.assertEquals(snapshotInfoEntryExpected.getExclusiveReplicatedSize(), | ||
| snapshotInfoEntryActual.getExclusiveReplicatedSize()); | ||
|
|
||
| Assert.assertEquals(snapshotInfoEntryExpected.getExpandedDeletedDir(), | ||
| snapshotInfoEntryActual.getExpandedDeletedDir()); | ||
| Assert.assertEquals(snapshotInfoEntryExpected, snapshotInfoEntryActual); | ||
| } | ||
|
|
||
|
|
@@ -174,6 +177,8 @@ public void testSnapshotInfoProtoToSnapshotInfo() { | |
| snapshotInfoActual.getExclusiveSize()); | ||
| Assert.assertEquals(snapshotInfoExpected.getExclusiveReplicatedSize(), | ||
| snapshotInfoActual.getExclusiveReplicatedSize()); | ||
| Assert.assertEquals(snapshotInfoExpected.getExpandedDeletedDir(), | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we just
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes we can, but this is just to check each field individually.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| snapshotInfoActual.getExpandedDeletedDir()); | ||
|
|
||
| Assert.assertEquals(snapshotInfoExpected, snapshotInfoActual); | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.