[ https://issues.apache.org/jira/browse/HADOOP-17272?focusedWorklogId=501860&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-501860
]
ASF GitHub Bot logged work on HADOOP-17272:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 18/Oct/20 05:17
Start Date: 18/Oct/20 05:17
Worklog Time Spent: 10m
Work Description: mehakmeet commented on a change in pull request #2353:
URL: https://github.com/apache/hadoop/pull/2353#discussion_r507018462
##########
File path: hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsInputStreamStatisticsImpl.java
##########
@@ -90,9 +107,7 @@ public void seek(long seekTo, long currentPos) {
*/
@Override
public void bytesRead(long bytes) {
- if (bytes > 0) {
- bytesRead += bytes;
- }
+ ioStatisticsStore.incrementCounter(STREAM_READ_BYTES, bytes);
Review comment:
Thanks for the tip. I've added the frequently updated counters as counter ref.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Issue Time Tracking
-------------------
Worklog Id: (was: 501860)
Time Spent: 2h 40m (was: 2.5h)
> ABFS Streams to support IOStatistics API
> -----------------------------------------
>
> Key: HADOOP-17272
> URL: https://issues.apache.org/jira/browse/HADOOP-17272
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/azure
> Affects Versions: 3.3.1
> Reporter: Steve Loughran
> Assignee: Mehakmeet Singh
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> ABFS input/output streams to support IOStatistics API
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org
|