[ 
https://issues.apache.org/jira/browse/HDFS-7698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14307697#comment-14307697
 ] 

Colin Patrick McCabe commented on HDFS-7698:
--------------------------------------------

bq. In DFSInputStream#tryReadZeroCopy, we should also hold the infoLock for 
readStatistics.

good catch

bq. For HdfsDataInputStream#getAllBlocks, we could remove the synchronized too.

good point, let's do that



> Fix locking on HDFS read statistics and add a method for clearing them.
> -----------------------------------------------------------------------
>
>                 Key: HDFS-7698
>                 URL: https://issues.apache.org/jira/browse/HDFS-7698
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 2.7.0
>            Reporter: Colin Patrick McCabe
>            Assignee: Colin Patrick McCabe
>         Attachments: HDFS-7698.002.patch
>
>
> Fix locking on HDFS read statistics and add a method for clearing them.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to