-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/55527/
-----------------------------------------------------------

(Updated Jan. 14, 2017, 12:41 a.m.)


Review request for Ambari, Jaimin Jetly, Xi Wang, and Yusaku Sako.


Bugs: AMBARI-19540
    https://issues.apache.org/jira/browse/AMBARI-19540


Repository: ambari


Description
-------

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"


Diffs (updated)
-----

  ambari-web/app/views/common/controls_view.js dc91f36 

Diff: https://reviews.apache.org/r/55527/diff/


Testing
-------

Verified Mannually in the latest version of Google Chrome, Mozilla Firefox and 
Safari browsers.

Ambari-web unit tests pass
30298 passing (19s)
157 pending


Thanks,

Vivek Ratnavel Subramanian

Reply via email to