You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Yusaku Sako (JIRA)" <ji...@apache.org> on 2014/06/16 20:54:01 UTC

[jira] [Commented] (AMBARI-6131) Services page intermittently loaded with empty content

    [ https://issues.apache.org/jira/browse/AMBARI-6131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032777#comment-14032777 ] 

Yusaku Sako commented on AMBARI-6131:
-------------------------------------

+1 for the patch.

> Services page intermittently loaded with empty content
> ------------------------------------------------------
>
>                 Key: AMBARI-6131
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6131
>             Project: Ambari
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 1.6.1
>            Reporter: Jaimin D Jetly
>            Assignee: Jaimin D Jetly
>             Fix For: 1.6.1
>
>         Attachments: AMBARI-6131.patch
>
>
> *Cause of the Bug:*
> With some unknown prior actions on the cluster on host page load, [code|https://git-wip-us.apache.org/repos/asf/ambari/repo?p=ambari.git;a=blob;f=ambari-web/app/views/main/host.js;h=8a4d01e1548e4f29b601f2cafc827f7588e92896;hb=HEAD#l101] returns one of it's elements as plain ember object with no property set (not even iColumn key). This breaks the [code| https://git-wip-us.apache.org/repos/asf/ambari/repo?p=ambari.git;a=blob;f=ambari-web/app/views/main/host.js;h=8a4d01e1548e4f29b601f2cafc827f7588e92896;hb=HEAD#l107] ahead. Over here in one of the iteration we are trying to find an element in childviews array whose *column* value is undefined. There are many such elements in childviews array. So it picks up the first element {{App.HostTableMenuView}} and schedules to call showClearFilter function later because of Ember.run.next loop. When the run queue is dequeued to execute this callback methods, the very first callback method "showClearFilter function for App.HostTableMenuView class" fails with Js error and other pending callback methods are not executed nor flushed by Ember.
> When the next time ember.run.next is executed  in the code (normally this happens by routing to other page), stale callbacks with no data binding is invoked and again leads to JS error at [code|https://git-wip-us.apache.org/repos/asf/ambari/repo?p=ambari.git;a=blob;f=ambari-web/app/views/main/host.js;h=8a4d01e1548e4f29b601f2cafc827f7588e92896;hb=HEAD#l562].  



--
This message was sent by Atlassian JIRA
(v6.2#6252)