ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaimin D Jetly (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-6131) Services page intermittently loaded with empty content
Date Mon, 16 Jun 2014 18:48:04 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-6131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jaimin D Jetly updated AMBARI-6131:
-----------------------------------

    Attachment:     (was: AMBARI-6131.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
>
>
> *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)

Mime
View raw message