Repository: tez
Updated Branches:
  refs/heads/branch-0.7 1e84c3bd8 -> 72e675a47


TEZ-2947. Tez UI: Timeline, RM & AM requests gets into a consecutive loop in 
counters page without any delay (Sreenath Somarajapuram via jeagles)

(cherry picked from commit 87270e6ab3be66a035030c7602faca1b12a5b1cf)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/72e675a4
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/72e675a4
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/72e675a4

Branch: refs/heads/branch-0.7
Commit: 72e675a47f5730ab82c57a7dee2e397382794c8a
Parents: 1e84c3b
Author: Jonathan Eagles <[email protected]>
Authored: Sun Nov 22 21:25:08 2015 -0600
Committer: Jonathan Eagles <[email protected]>
Committed: Sun Nov 22 21:31:48 2015 -0600

----------------------------------------------------------------------
 CHANGES.txt                                                   | 1 +
 .../webapp/app/scripts/controllers/dag_counters_controller.js | 5 +++++
 .../app/scripts/controllers/task-counters-controller.js       | 7 ++++++-
 .../scripts/controllers/task_attempt_counters_controller.js   | 5 +++++
 .../app/scripts/controllers/vertex_counters_controller.js     | 5 +++++
 5 files changed, 22 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/72e675a4/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 2aeb71c..9b10831 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -8,6 +8,7 @@ INCOMPATIBLE CHANGES
   TEZ-2949. Allow duplicate dag names within session for Tez.
 
 ALL CHANGES
+  TEZ-2947. Tez UI: Timeline, RM & AM requests gets into a consecutive loop in 
counters page without any delay
   TEZ-2946. Tez UI: At times RM return a huge error message making the yellow 
error bar to fill the whole screen
   TEZ-2949. Allow duplicate dag names within session for Tez.
   TEZ-2933. Tez UI: Load application details from RM when available

http://git-wip-us.apache.org/repos/asf/tez/blob/72e675a4/tez-ui/src/main/webapp/app/scripts/controllers/dag_counters_controller.js
----------------------------------------------------------------------
diff --git 
a/tez-ui/src/main/webapp/app/scripts/controllers/dag_counters_controller.js 
b/tez-ui/src/main/webapp/app/scripts/controllers/dag_counters_controller.js
index 4cd3f80..59c21d5 100644
--- a/tez-ui/src/main/webapp/app/scripts/controllers/dag_counters_controller.js
+++ b/tez-ui/src/main/webapp/app/scripts/controllers/dag_counters_controller.js
@@ -48,4 +48,9 @@ App.DagCountersController = 
App.PollingController.extend(App.Helpers.DisplayHelp
       options: null
     });
   }.observes('applicationId', 'model', 'model.status', 'id'),
+
+  applicationComplete: function () {
+    this.get('pollster').stop();
+    this.set('pollster.polledRecords', null);
+  }
 });

http://git-wip-us.apache.org/repos/asf/tez/blob/72e675a4/tez-ui/src/main/webapp/app/scripts/controllers/task-counters-controller.js
----------------------------------------------------------------------
diff --git 
a/tez-ui/src/main/webapp/app/scripts/controllers/task-counters-controller.js 
b/tez-ui/src/main/webapp/app/scripts/controllers/task-counters-controller.js
index dd74129..0a1bdb8 100644
--- a/tez-ui/src/main/webapp/app/scripts/controllers/task-counters-controller.js
+++ b/tez-ui/src/main/webapp/app/scripts/controllers/task-counters-controller.js
@@ -60,5 +60,10 @@ App.TaskCountersController = 
App.PollingController.extend(App.ModelRefreshMixin,
         return 'Task %@, please check the counters of individual task 
attempts.'.fmt(status);
       }
     }
-  }.property('content.status', 'content.counterGroups.length')
+  }.property('content.status', 'content.counterGroups.length'),
+
+  applicationComplete: function () {
+    this.get('pollster').stop();
+    this.set('pollster.polledRecords', null);
+  }
 });

http://git-wip-us.apache.org/repos/asf/tez/blob/72e675a4/tez-ui/src/main/webapp/app/scripts/controllers/task_attempt_counters_controller.js
----------------------------------------------------------------------
diff --git 
a/tez-ui/src/main/webapp/app/scripts/controllers/task_attempt_counters_controller.js
 
b/tez-ui/src/main/webapp/app/scripts/controllers/task_attempt_counters_controller.js
index 591fa43..65346e0 100644
--- 
a/tez-ui/src/main/webapp/app/scripts/controllers/task_attempt_counters_controller.js
+++ 
b/tez-ui/src/main/webapp/app/scripts/controllers/task_attempt_counters_controller.js
@@ -54,4 +54,9 @@ App.TaskAttemptCountersController = 
App.PollingController.extend(App.Helpers.Dis
       options: null
     });
   }.observes('task.vertex.dag.applicationId', 'status', 'dagID', 'vertexID', 
'id'),
+
+  applicationComplete: function () {
+    this.get('pollster').stop();
+    this.set('pollster.polledRecords', null);
+  }
 });

http://git-wip-us.apache.org/repos/asf/tez/blob/72e675a4/tez-ui/src/main/webapp/app/scripts/controllers/vertex_counters_controller.js
----------------------------------------------------------------------
diff --git 
a/tez-ui/src/main/webapp/app/scripts/controllers/vertex_counters_controller.js 
b/tez-ui/src/main/webapp/app/scripts/controllers/vertex_counters_controller.js
index 90a7e4a..8403f0a 100644
--- 
a/tez-ui/src/main/webapp/app/scripts/controllers/vertex_counters_controller.js
+++ 
b/tez-ui/src/main/webapp/app/scripts/controllers/vertex_counters_controller.js
@@ -49,4 +49,9 @@ App.VertexCountersController = 
App.PollingController.extend(App.Helpers.DisplayH
       options: null
     });
   }.observes('applicationId', 'status', 'dagID', 'id'),
+
+  applicationComplete: function () {
+    this.get('pollster').stop();
+    this.set('pollster.polledRecords', null);
+  }
 });

Reply via email to