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

Hudson commented on HDFS-14235:
-------------------------------

SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16005 (See 
[https://builds.apache.org/job/Hadoop-trunk-Commit/16005/])
HDFS-14235. Handle ArrayIndexOutOfBoundsException in (surendralilhore: rev 
41e18feda3f5ff924c87c4bed5b5cbbaecb19ae1)
* (edit) 
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/metrics/DataNodeDiskMetrics.java


> Handle ArrayIndexOutOfBoundsException in 
> DataNodeDiskMetrics#slowDiskDetectionDaemon 
> -------------------------------------------------------------------------------------
>
>                 Key: HDFS-14235
>                 URL: https://issues.apache.org/jira/browse/HDFS-14235
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Surendra Singh Lilhore
>            Assignee: Ranith Sardar
>            Priority: Major
>             Fix For: 3.3.0, 3.2.1
>
>         Attachments: HDFS-14235.000.patch, HDFS-14235.001.patch, 
> HDFS-14235.002.patch, HDFS-14235.003.patch, NPE.png, exception.png
>
>
> below code throwing exception because {{volumeIterator.next()}} called two 
> time without checking hashNext().
> {code:java}
> while (volumeIterator.hasNext()) {
>   FsVolumeSpi volume = volumeIterator.next();
>   DataNodeVolumeMetrics metrics = volumeIterator.next().getMetrics();
>   String volumeName = volume.getBaseURI().getPath();
>   metadataOpStats.put(volumeName,
>   metrics.getMetadataOperationMean());
>   readIoStats.put(volumeName, metrics.getReadIoMean());
>   writeIoStats.put(volumeName, metrics.getWriteIoMean());
> }{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to