From ff9f7fcf7f67095f3ab9d257624dee6e16363b1e Mon Sep 17 00:00:00 2001 From: Sunil G Date: Sat, 11 Nov 2017 16:52:31 +0530 Subject: [PATCH] YARN-7452. Decommissioning node default value to be zero in new YARN UI. Contributed by Vasudevan Skm. --- .../hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js index dcc0c2997d..0be0d83f47 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js @@ -89,7 +89,7 @@ export default DS.Model.extend({ }); arr.push({ label: "Decommissioning", - value: this.get("decommissioningNodes") + value: this.get("decommissioningNodes") || 0 }); arr.push({ label: "Decomissioned",