-
Notifications
You must be signed in to change notification settings - Fork 587
HDDS-12560. Reclaimable Filter for Snaphost Garbage Collections #8053
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
Merged
Merged
Changes from 7 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
7327b47
HDDS-12559. Implement Bulk Ozone Locks for taking locks on multiple s…
swamirishi bd5b0c6
HDDS-12560. Reclaimable Filter for Snaphost Garbage Collections
swamirishi f1c85fd
HDDS-12560. Mock SnapshotDiffManager construction
swamirishi 43ab7b7
HDDS-12559. Revert unintended change in method signature
swamirishi 51c88f1
Merge remote-tracking branch 'origin/HDDS-12559' into HEAD
swamirishi b901166
HDDS-12559. Address review comments
swamirishi 690eae9
Merge remote-tracking branch 'apache/master' into HEAD
swamirishi 865f3a5
HDDS-12559. Add javadoc
swamirishi 5743edb
HDDS-12560. Address review comments
swamirishi abcfaff
HDDS-12559. Move acquireLock to another private function
swamirishi a2127a4
HDDS-12560. Address review comments
swamirishi 9f6d2a0
HDDS-12559. Address review comments
swamirishi 9d6bae3
HDDS-12560. Address review comments
swamirishi 7d785ab
Merge remote-tracking branch 'origin/HDDS-12559' into HEAD
swamirishi e1d2317
Merge remote-tracking branch 'apache/master' into HEAD
swamirishi 93ba939
HDDS-12560. Address review comments
swamirishi 3935bf8
Update hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozo…
swamirishi 6d638a0
HDDS-12560. Fix method folding
swamirishi 681bb3d
Merge remote-tracking branch 'apache/master' into HEAD
swamirishi 8fd746c
HDDS-12560. Remove Checked Function
swamirishi b69182e
Merge remote-tracking branch 'origin/HDDS-12560' into HEAD
swamirishi d32bcf0
Update hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozo…
swamirishi f8a2b6e
HDDS-12560. Fix compilation issue
swamirishi f323e3e
Merge remote-tracking branch 'origin/HDDS-12560' into HEAD
swamirishi 29a26d2
HDDS-12560. Address review comments
swamirishi 1ebba73
HDDS-12560. Fix test case
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
30 changes: 30 additions & 0 deletions
30
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/util/CheckedFunction.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,30 @@ | ||
| /* | ||
| * 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.util; | ||
|
|
||
| /** | ||
| * Represents a function that accepts one argument and produces a result. | ||
| * This is a functional interface whose functional method is apply(Object). | ||
| * Type parameters: | ||
| * <T> – the type of the input to the function | ||
| * <R> – the type of the result of the function | ||
| * <E> - the type of exception thrown. | ||
| */ | ||
| public interface CheckedFunction<T, R, E extends Exception> { | ||
| R apply(T t) throws E; | ||
| } | ||
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.
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.
Please use
org.apache.ratis.util.function.CheckedFunctioninsteadThere 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.
+1 .We can reuse the existing interface.
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.
done