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

Vivek Ratnavel Subramanian updated AMBARI-19540:
------------------------------------------------
    Attachment: AMBARI-19540.v0.patch

> Possibly too frequent calls to stack advisor as user changes sliders
> --------------------------------------------------------------------
>
>                 Key: AMBARI-19540
>                 URL: https://issues.apache.org/jira/browse/AMBARI-19540
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.5.0
>            Reporter: Vivek Ratnavel Subramanian
>            Assignee: Vivek Ratnavel Subramanian
>             Fix For: 2.5.0
>
>         Attachments: AMBARI-19540.v0.patch
>
>
> As you can see 3 calls are made while changing from 1024 to 2048 and 
> similarly 3 calls when coming back to 1024. 
> Beyond performance concern, multiple calls have a functional issue. The call 
> includes previous value of the changed property - see the values. I would 
> have expected the old value to be the value that was the original/saved 
> value. However, it is wherever UI makes the stack advisor calls.
> [root@smq1-1 stack-recommendations]# find . -name services.json | xargs grep 
> -A 3 changed
> ./55/services.json:  "changed-configurations" : [ {
> ./55/services.json-    "type" : "yarn-site",
> ./55/services.json-    "name" : "yarn.scheduler.minimum-allocation-mb",
> ./55/services.json-    "old_value" : "1024"
> ./56/services.json:  "changed-configurations" : [ {
> ./56/services.json-    "type" : "yarn-site",
> ./56/services.json-    "name" : "yarn.scheduler.minimum-allocation-mb",
> ./56/services.json-    "old_value" : "1280"
> ./57/services.json:  "changed-configurations" : [ {
> ./57/services.json-    "type" : "yarn-site",
> ./57/services.json-    "name" : "yarn.scheduler.minimum-allocation-mb",
> ./57/services.json-    "old_value" : "1792"
> ./58/services.json:  "changed-configurations" : [ {
> ./58/services.json-    "type" : "yarn-site",
> ./58/services.json-    "name" : "yarn.scheduler.minimum-allocation-mb",
> ./58/services.json-    "old_value" : "2048"
> ./59/services.json:  "changed-configurations" : [ {
> ./59/services.json-    "type" : "yarn-site",
> ./59/services.json-    "name" : "yarn.scheduler.minimum-allocation-mb",
> ./59/services.json-    "old_value" : "1792"
> ./60/services.json:  "changed-configurations" : [ {
> ./60/services.json-    "type" : "yarn-site",
> ./60/services.json-    "name" : "yarn.scheduler.minimum-allocation-mb",
> ./60/services.json-    "old_value" : "1280"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to