hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ranith Sardar (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-14235) Handle ArrayIndexOutOfBoundsException in DataNodeDiskMetrics#slowDiskDetectionDaemon
Date Mon, 28 Jan 2019 13:23:00 GMT

     [ https://issues.apache.org/jira/browse/HDFS-14235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ranith Sardar updated HDFS-14235:
---------------------------------
    Status: Patch Available  (was: Open)

> 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
>         Attachments: HDFS-14235.000.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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message