git commit: AMBARI-7643. Jobs view: Input/Output bytes shows up as 0 for some jobs (alejandro)
Repository: ambari Updated Branches: refs/heads/trunk af9ceed0f - e40a21889 AMBARI-7643. Jobs view: Input/Output bytes shows up as 0 for some jobs (alejandro) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e40a2188 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e40a2188 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e40a2188 Branch: refs/heads/trunk Commit: e40a2188940909e41c38bd81d5a6072dcc008109 Parents: af9ceed Author: Alejandro Fernandez afernan...@hortonworks.com Authored: Fri Oct 3 19:07:34 2014 -0700 Committer: Alejandro Fernandez afernan...@hortonworks.com Committed: Mon Oct 6 11:46:13 2014 -0700 -- .../src/main/resources/ui/app/scripts/models/jobs/tez_dag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ambari/blob/e40a2188/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js -- diff --git a/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js b/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js index 5797120..b4dec2b 100644 --- a/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js +++ b/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js @@ -162,11 +162,11 @@ App.TezDagVertex = DS.Model.extend({ recordWriteCount: DS.attr('number'), totalReadBytes: function () { -return this.get('fileReadBytes') + this.get('hdfsReadBytes'); +return (this.get('fileReadBytes') || 0) + (this.get('hdfsReadBytes') || 0); }.property('fileReadBytes', 'hdfsReadBytes'), totalWriteBytes: function () { -return this.get('fileWriteBytes') + this.get('hdfsWriteBytes'); +return (this.get('fileWriteBytes') || 0) + (this.get('hdfsWriteBytes') || 0); }.property('fileWriteBytes', 'hdfsWriteBytes'), totalReadBytesDisplay: function () {
[06/10] git commit: AMBARI-7643. Jobs view: Input/Output bytes shows up as 0 for some jobs (alejandro)
AMBARI-7643. Jobs view: Input/Output bytes shows up as 0 for some jobs (alejandro) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/e40a2188 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/e40a2188 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/e40a2188 Branch: refs/heads/branch-alerts-dev Commit: e40a2188940909e41c38bd81d5a6072dcc008109 Parents: af9ceed Author: Alejandro Fernandez afernan...@hortonworks.com Authored: Fri Oct 3 19:07:34 2014 -0700 Committer: Alejandro Fernandez afernan...@hortonworks.com Committed: Mon Oct 6 11:46:13 2014 -0700 -- .../src/main/resources/ui/app/scripts/models/jobs/tez_dag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ambari/blob/e40a2188/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js -- diff --git a/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js b/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js index 5797120..b4dec2b 100644 --- a/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js +++ b/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js @@ -162,11 +162,11 @@ App.TezDagVertex = DS.Model.extend({ recordWriteCount: DS.attr('number'), totalReadBytes: function () { -return this.get('fileReadBytes') + this.get('hdfsReadBytes'); +return (this.get('fileReadBytes') || 0) + (this.get('hdfsReadBytes') || 0); }.property('fileReadBytes', 'hdfsReadBytes'), totalWriteBytes: function () { -return this.get('fileWriteBytes') + this.get('hdfsWriteBytes'); +return (this.get('fileWriteBytes') || 0) + (this.get('hdfsWriteBytes') || 0); }.property('fileWriteBytes', 'hdfsWriteBytes'), totalReadBytesDisplay: function () {
git commit: AMBARI-7643. Jobs view: Input/Output bytes shows up as 0 for some jobs (alejandro)
Repository: ambari Updated Branches: refs/heads/branch-1.7.0 473fca01d - 165356e26 AMBARI-7643. Jobs view: Input/Output bytes shows up as 0 for some jobs (alejandro) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/165356e2 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/165356e2 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/165356e2 Branch: refs/heads/branch-1.7.0 Commit: 165356e267c463421aea2b665ea07c8d82ae8a51 Parents: 473fca0 Author: Alejandro Fernandez afernan...@hortonworks.com Authored: Mon Oct 6 11:48:35 2014 -0700 Committer: Alejandro Fernandez afernan...@hortonworks.com Committed: Mon Oct 6 15:03:13 2014 -0700 -- .../src/main/resources/ui/app/scripts/models/jobs/tez_dag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- http://git-wip-us.apache.org/repos/asf/ambari/blob/165356e2/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js -- diff --git a/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js b/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js index 5797120..b4dec2b 100644 --- a/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js +++ b/contrib/views/jobs/src/main/resources/ui/app/scripts/models/jobs/tez_dag.js @@ -162,11 +162,11 @@ App.TezDagVertex = DS.Model.extend({ recordWriteCount: DS.attr('number'), totalReadBytes: function () { -return this.get('fileReadBytes') + this.get('hdfsReadBytes'); +return (this.get('fileReadBytes') || 0) + (this.get('hdfsReadBytes') || 0); }.property('fileReadBytes', 'hdfsReadBytes'), totalWriteBytes: function () { -return this.get('fileWriteBytes') + this.get('hdfsWriteBytes'); +return (this.get('fileWriteBytes') || 0) + (this.get('hdfsWriteBytes') || 0); }.property('fileWriteBytes', 'hdfsWriteBytes'), totalReadBytesDisplay: function () {