Skip to content
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

Added Time-Specific Metrics #867

Merged

Conversation

arunkumarchacko
Copy link
Contributor

Original PR: #819

@arunkumarchacko
Copy link
Contributor Author

/gcbrun

@codecov
Copy link

codecov bot commented Sep 5, 2022

Codecov Report

Base: 80.44% // Head: 80.34% // Decreases project coverage by -0.09% ⚠️

Coverage data is based on head (58551a7) compared to base (d16e109).
Patch coverage: 91.82% of modified lines in pull request are covered.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #867      +/-   ##
============================================
- Coverage     80.44%   80.34%   -0.10%     
- Complexity     2009     2024      +15     
============================================
  Files           137      137              
  Lines          9000     9041      +41     
  Branches       1036     1035       -1     
============================================
+ Hits           7240     7264      +24     
- Misses         1340     1358      +18     
+ Partials        420      419       -1     
Flag Coverage Δ
integrationtest 62.39% <88.94%> (-0.12%) ⬇️
unittest 74.73% <91.82%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...gle/cloud/hadoop/fs/gcs/GhfsStorageStatistics.java 33.33% <25.00%> (-66.67%) ⬇️
...cloud/hadoop/fs/gcs/GoogleHadoopFSInputStream.java 93.02% <88.63%> (+0.81%) ⬆️
...le/cloud/hadoop/fs/gcs/GoogleHadoopFileSystem.java 89.13% <94.80%> (+0.07%) ⬆️
.../cloud/hadoop/fs/gcs/GoogleHadoopOutputStream.java 93.75% <96.82%> (+0.69%) ⬆️
...oogle/cloud/hadoop/fs/gcs/GhfsInstrumentation.java 74.42% <100.00%> (-1.61%) ⬇️
.../com/google/cloud/hadoop/fs/gcs/GhfsStatistic.java 100.00% <100.00%> (+1.49%) ⬆️
...ogle/cloud/hadoop/gcsio/PrefixMappedItemCache.java 67.56% <0.00%> (-2.71%) ⬇️
...n/java/com/google/cloud/hadoop/gcsio/Watchdog.java 89.07% <0.00%> (-2.53%) ⬇️
...ud/hadoop/util/ChainingHttpRequestInitializer.java 90.19% <0.00%> (-1.97%) ⬇️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -569,7 +573,6 @@ public void seekForwards(long skipped) {
if (skipped > 0) {
bytesSkippedOnSeek.addAndGet(skipped);
}
seekOperations.incrementAndGet();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we are removing this? Similar comment fir seekBackwards too.

nit: update the java doc of this function.

*
* @return current map of minimums
*/
private Map<String, Long> minimums() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do any of these private functions adding any value?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could have inlined this. Having this method is not bad either.

Copy link
Contributor Author

@arunkumarchacko arunkumarchacko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PTAL

streamStatistics.bytesRead(max(response, 0));
streamStatistics.readOperationCompleted(length, max(response, 0));
return response;
return trackDuration(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be much cleaner if we can use AOP and annotation to capture the "duration" of each API.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the pattern from hadoop. Adding AOP will be more work and I do no think it is worth the effort.

@singhravidutt
Copy link
Contributor

/gcbrun

@arunkumarchacko
Copy link
Contributor Author

/gcbrun

@arunkumarchacko
Copy link
Contributor Author

/gcbrun

@arunkumarchacko arunkumarchacko merged commit a820950 into GoogleCloudDataproc:master Sep 22, 2022
@arunkumarchacko arunkumarchacko deleted the merge_metrics_changes branch September 22, 2022 05:28
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants