-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-3930. Fix OMKeyDeletesRequest. #1169
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
Closed
Closed
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
e0e2547
HDDS-3900. Fix OMKeyDeletesRequest.
bharatviswa504 d769ef7
revert not required
bharatviswa504 c5b0102
revert not needed
bharatviswa504 c9603a3
use trxnLogIndex
bharatviswa504 3972827
fix
bharatviswa504 22121c9
fix
bharatviswa504 223a99c
fix
bharatviswa504 ae62dd7
remove unneeded
bharatviswa504 5610238
add back
bharatviswa504 861d184
fix review bug
bharatviswa504 d6daa33
Add tests
bharatviswa504 70d5f33
fix sonar issue
bharatviswa504 ec8068c
fix review comments
bharatviswa504 0cf98c9
rat check
bharatviswa504 1338787
fix checkstyle
bharatviswa504 21d1cd0
fix issue in deletekey
bharatviswa504 00458a8
handle partial delete in response class"
bharatviswa504 c30a77e
fix TestResultCodes"
bharatviswa504 ace6295
revert imports
bharatviswa504 ac098b0
fix checkstyle
bharatviswa504 cba00cd
remove intellij optimize import changes
bharatviswa504 d1e8c9d
import change
bharatviswa504 204aac7
remove unchanged file
bharatviswa504 fb3c794
cs
bharatviswa504 eb7c8df
fix tests
bharatviswa504 46c7763
fix cs
bharatviswa504 8c6b465
address review comments
bharatviswa504 a548df2
fix metric mistake
bharatviswa504 b46762e
fix cs
bharatviswa504 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -223,6 +223,8 @@ public enum ResultCodes { | |
|
|
||
| INVALID_VOLUME_NAME, | ||
|
|
||
| PARTIAL_DELETE, | ||
|
|
||
| REPLAY // When ratis logs are replayed. | ||
| } | ||
| } | ||
51 changes: 51 additions & 0 deletions
51
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmDeleteKeys.java
This file contains hidden or 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,51 @@ | ||
| /** | ||
| * 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.helpers; | ||
|
|
||
| import java.util.List; | ||
|
|
||
| /** | ||
| * Represent class which has info of Keys to be deleted from Client. | ||
| */ | ||
| public class OmDeleteKeys { | ||
|
|
||
| private String volume; | ||
| private String bucket; | ||
|
|
||
| private List<String> keyNames; | ||
|
|
||
|
|
||
| public OmDeleteKeys(String volume, String bucket, List<String> keyNames) { | ||
| this.volume = volume; | ||
| this.bucket = bucket; | ||
| this.keyNames = keyNames; | ||
| } | ||
|
|
||
| public String getVolume() { | ||
| return volume; | ||
| } | ||
|
|
||
| public String getBucket() { | ||
| return bucket; | ||
| } | ||
|
|
||
| public List< String > getKeyNames() { | ||
| return keyNames; | ||
| } | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.