YARN-7749. [UI2] GPU information tab in left hand side disappears when we click other tabs below. Contributed by Sunil G and Vasudevan Skm.

This commit is contained in:
Rohith Sharma K S 2018-01-24 15:56:59 +05:30
parent f3e33aeb80
commit 2014863470
3 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ export default AbstractRoute.extend({
return Ember.RSVP.hash({ return Ember.RSVP.hash({
nodeApp: this.store.queryRecord('yarn-node-app', nodeApp: this.store.queryRecord('yarn-node-app',
{ nodeAddr : param.node_addr, appId: param.app_id }), { nodeAddr : param.node_addr, appId: param.app_id }),
nmGpuInfo: this.store.findRecord('yarn-nm-gpu', param.node_addr, {reload:true}),
nodeInfo: { id: param.node_id, addr: param.node_addr, appId: param.app_id } nodeInfo: { id: param.node_id, addr: param.node_addr, appId: param.app_id }
}); });
}, },

View File

@ -25,6 +25,7 @@ export default AbstractRoute.extend({
// Get all apps running on a specific node. Node is contacted by using node_addr. // Get all apps running on a specific node. Node is contacted by using node_addr.
return Ember.RSVP.hash({ return Ember.RSVP.hash({
apps: this.store.query('yarn-node-app', { nodeAddr: param.node_addr }), apps: this.store.query('yarn-node-app', { nodeAddr: param.node_addr }),
nmGpuInfo: this.store.findRecord('yarn-nm-gpu', param.node_addr, {reload:true}),
nodeInfo: { id: param.node_id, addr: param.node_addr } nodeInfo: { id: param.node_id, addr: param.node_addr }
}); });
}, },

View File

@ -24,6 +24,7 @@ export default AbstractRoute.extend({
// Get all containers running on specific node. // Get all containers running on specific node.
return Ember.RSVP.hash({ return Ember.RSVP.hash({
containers: this.store.query('yarn-node-container', { nodeHttpAddr: param.node_addr }), containers: this.store.query('yarn-node-container', { nodeHttpAddr: param.node_addr }),
nmGpuInfo: this.store.findRecord('yarn-nm-gpu', param.node_addr, {reload:true}),
nodeInfo: { id: param.node_id, addr: param.node_addr } nodeInfo: { id: param.node_id, addr: param.node_addr }
}); });
}, },