-
Notifications
You must be signed in to change notification settings - Fork 509
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
HDDS-11705. Snapshot operations on linked buckets should work on actual underlying bucket #7434
Merged
Merged
Changes from 8 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
62a2c1c
HDDS-11705. Snapshot diff fails on linked buckets
swamirishi 2a3c55a
HDDS-11705. Snapshot operations should on linked buckets should work …
swamirishi 77f69a2
HDDS-11705. Revert fixes made on snapshot flows
swamirishi df52e73
HDDS-11705. Address review comments
swamirishi 3115158
HDDS-11705. Add test cases
swamirishi 516f0a3
HDDS-11705. Address review comments
swamirishi 7830c2b
HDDS-11705. Fix tests
swamirishi a286afc
HDDS-11705. Address review comments and move resolve check outside to…
swamirishi ce0fed0
HDDS-11705. Revert test case change
swamirishi 50bc68b
HDDS-11705. Fix bats
swamirishi d638499
HDDS-11705. Fix bats
swamirishi 82154a6
HDDS-11705. fix bats
swamirishi d0d5e91
HDDS-11705. Add linked bucket info in snapshot info
swamirishi 029655d
HDDS-11705. Fix checkstyle
swamirishi e5353c7
HDDS-11705. Revert commented code
swamirishi 0105fad
HDDS-11705. Revert renaming of WithoutLinkedBuckets tests
swamirishi 798487e
HDDS-11705. Fix test case
swamirishi 85daf58
HDDS-11705. Fix test case
swamirishi 0bee4e3
HDDS-11705. Address review comments
swamirishi a861e5a
HDDS-11705. Fix build issue
swamirishi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
154 changes: 88 additions & 66 deletions
154
...ne/integration-test/src/test/java/org/apache/hadoop/ozone/om/snapshot/TestOmSnapshot.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
.../org/apache/hadoop/ozone/om/snapshot/TestOmSnapshotFileSystemFsoWithoutLinkedBuckets.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.hadoop.ozone.om.snapshot; | ||
|
||
import org.junit.jupiter.api.Timeout; | ||
|
||
/** | ||
* OmSnapshot file system tests for FSO. | ||
*/ | ||
@Timeout(120) | ||
public class TestOmSnapshotFileSystemFsoWithoutLinkedBuckets extends TestOmSnapshotFileSystem { | ||
TestOmSnapshotFileSystemFsoWithoutLinkedBuckets() throws Exception { | ||
super(BUCKET_NAME_FSO, false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...g/apache/hadoop/ozone/om/snapshot/TestOmSnapshotFileSystemLegacyWithoutLinkedBuckets.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.hadoop.ozone.om.snapshot; | ||
|
||
import org.junit.jupiter.api.Timeout; | ||
|
||
/** | ||
* OmSnapshot file system tests for Legacy. | ||
*/ | ||
@Timeout(120) | ||
public class TestOmSnapshotFileSystemLegacyWithoutLinkedBuckets extends TestOmSnapshotFileSystem { | ||
TestOmSnapshotFileSystemLegacyWithoutLinkedBuckets() throws Exception { | ||
super(BUCKET_NAME_LEGACY, false); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Shouldn't we need to call createBucket with true flag? Currently, it is calling
createBucket
which defaults to not linked bucket.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.
createLinkedBucket is called by createBucket when the flag is true.
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.
When the sourceBucket is present it creates a linked bucket