-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-8147. Introduce latency metrics for S3 Gateway operations #4383
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 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d7457f6
HDDS-8147. Introduce latency metrics for S3 Gateway operations
tanvipenumudy 3b14fe9
fix checkstyle
tanvipenumudy 6afad90
fix TestPermissionCheck, TestS3GatewayMetrics UT failures
tanvipenumudy c0a4705
handling OS3Exception in BucketEndpoint endpoints with RuntimeException
tanvipenumudy b346b50
refactor capturing latency in a finally block
tanvipenumudy e86b609
Merge upstream master changes
tanvipenumudy c2d75d3
fix TestS3GatewayMetrics.testGetAclFailure post upstream/master merge
tanvipenumudy e298884
Resolve merge conflicts
tanvipenumudy d602d09
Resolve acceptance test failures - Head Bucket not existent
tanvipenumudy 312c5f1
Remove separate metrics source for S3GatewayLatencyMetrics
tanvipenumudy 7b9a689
Add separate latency metrics for successful and failed S3G operations
tanvipenumudy 7de1ffd
Provide metric descriptions for the newly introduced metrics
tanvipenumudy bb0fec4
Simplify S3G metrics by combining operation count and latency measure…
tanvipenumudy 1604a0a
Remove Exception-handling no longer required
tanvipenumudy 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
29 changes: 29 additions & 0 deletions
29
hadoop-hdds/common/src/main/java/org/apache/hadoop/util/GenericCheckedSupplier.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,29 @@ | ||
| /* | ||
| * 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.util; | ||
|
|
||
| /** | ||
| * Similar to {@link java.util.function.Supplier}, this class presents a block | ||
| * of code generating a value with a possibility of throwing a generic | ||
| * Exception. | ||
| */ | ||
|
|
||
| @FunctionalInterface | ||
| public interface GenericCheckedSupplier<T, E extends Exception> { | ||
| T get() 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
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.