[jira] [Updated] (HDFS-12068) Modify judgment condition in function computeVolumeDataDensity,otherwise maybe divided by zero
[ https://issues.apache.org/jira/browse/HDFS-12068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] steven-wugang updated HDFS-12068: - Status: Patch Available (was: Open) > Modify judgment condition in function computeVolumeDataDensity,otherwise > maybe divided by zero > -- > > Key: HDFS-12068 > URL: https://issues.apache.org/jira/browse/HDFS-12068 > Project: Hadoop HDFS > Issue Type: Bug >Reporter: steven-wugang >Assignee: steven-wugang > Attachments: HDFS-12068.patch > > > IN function computeVolumeDataDensity,there is a piece of code,as follow: > public void computeVolumeDataDensity() { > ... >if (volume.computeEffectiveCapacity() < 0) { > skipMisConfiguredVolume(volume); > continue; > } > > double dfsUsedRatio = > truncateDecimals(volume.getUsed() / > (double) volume.computeEffectiveCapacity()); > > > } > Did not filter out the case that volume.computeEffectiveCapacity() is > zero,maybe divided by zero behind. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Updated] (HDFS-12068) Modify judgment condition in function computeVolumeDataDensity,otherwise maybe divided by zero
[ https://issues.apache.org/jira/browse/HDFS-12068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] steven-wugang updated HDFS-12068: - Attachment: HDFS-12068.patch > Modify judgment condition in function computeVolumeDataDensity,otherwise > maybe divided by zero > -- > > Key: HDFS-12068 > URL: https://issues.apache.org/jira/browse/HDFS-12068 > Project: Hadoop HDFS > Issue Type: Bug >Reporter: steven-wugang >Assignee: steven-wugang > Attachments: HDFS-12068.patch > > > IN function computeVolumeDataDensity,there is a piece of code,as follow: > public void computeVolumeDataDensity() { > ... >if (volume.computeEffectiveCapacity() < 0) { > skipMisConfiguredVolume(volume); > continue; > } > > double dfsUsedRatio = > truncateDecimals(volume.getUsed() / > (double) volume.computeEffectiveCapacity()); > > > } > Did not filter out the case that volume.computeEffectiveCapacity() is > zero,maybe divided by zero behind. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org