diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 38616738aa..0957680efb 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1483,6 +1483,9 @@ Release 2.8.0 - UNRELEASED HDFS-9191. Typo in Hdfs.java. NoSuchElementException is misspelled. (Catherine Palmer via jghoman) + HDFS-9193. Fix incorrect references the usages of the DN in dfshealth.js. + (Chang Li via wheat9) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js index cc3afcdc62..e7245dfbfb 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js @@ -186,7 +186,7 @@ var r = null; if (v < 70) { r = 'progress-bar-success'; - } else if (u.usedPercentage < 85) { + } else if (v < 85) { r = 'progress-bar-warning'; } else { r = "progress-bar-danger";