-
Notifications
You must be signed in to change notification settings - Fork 14
IoStats-CallBack-AAL #298
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
IoStats-CallBack-AAL #298
Conversation
input-stream/src/main/java/software/amazon/s3/analyticsaccelerator/S3SeekableInputStream.java
Outdated
Show resolved
Hide resolved
...ream/src/main/java/software/amazon/s3/analyticsaccelerator/S3SeekableInputStreamFactory.java
Show resolved
Hide resolved
input-stream/src/main/java/software/amazon/s3/analyticsaccelerator/io/physical/data/Block.java
Outdated
Show resolved
Hide resolved
common/src/main/java/software/amazon/s3/analyticsaccelerator/util/RequestCallback.java
Outdated
Show resolved
Hide resolved
...am/src/main/java/software/amazon/s3/analyticsaccelerator/io/physical/data/MetadataStore.java
Outdated
Show resolved
Hide resolved
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.
@vaibhav5140 I don't see any tests for your changes?
You will need to assert that the methods in your callback are getting called.
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.
+1, pending moving logging to trace.
would be great if you can also update the HEAD request metric also. we can move it into objectClient later
objectClient.headObject( | ||
HeadRequest.builder().s3Uri(s3URI).build(), openStreamInformation))); | ||
() -> { | ||
CompletableFuture<ObjectMetadata> result = |
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.
what about updating the head request metric?
|
||
@Override | ||
public void onGetRequest() { | ||
LOG.debug("GET request made"); |
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.
sorry can you move this to TRACE? just thinking logging this at debug will create a lot of noise in the benchmarking logs
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.
+1, LGTM
## Description of change <!-- Thank you for submitting a pull request!--> <!-- Please describe your contribution here. What and why? --> <!-- Please ensure your commit messages follow these [guidelines](https://chris.beams.io/posts/git-commit/). --> This PR implements a callback mechanism that allows the analytics accelerator to pass metrics back to the S3A connector, ensuring that each GET operation properly increments the STREAM_READ_ANALYTICS_GET_REQUESTS counter. This enables S3A to monitor and assert with accurate statistics. Public Jira: https://issues.apache.org/jira/browse/HADOOP-19364 Haddop S3A PR: apache/hadoop#7763 --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the [Developer Certificate of Origin (DCO)](https://developercertificate.org/).
Description of change
This PR implements a callback mechanism that allows the analytics accelerator to pass metrics back to the S3A connector, ensuring that each GET operation properly increments the STREAM_READ_ANALYTICS_GET_REQUESTS counter. This enables S3A to monitor and assert with accurate statistics.
Public Jira: https://issues.apache.org/jira/browse/HADOOP-19364
Haddop S3A PR: apache/hadoop#7763
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the Developer Certificate of Origin (DCO).