You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@ambari.apache.org by Attila Doroszlai <ad...@hortonworks.com> on 2017/06/13 16:22:18 UTC
Review Request 60050: AMBARI-21240. Some topology request data
retained after host removed
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60050/
-----------------------------------------------------------
Review request for Ambari, Sandor Magyari, Sumit Mohanty, and Sebastian Toader.
Bugs: AMBARI-21240
https://issues.apache.org/jira/browse/AMBARI-21240
Repository: ambari
Description
-------
Remove orphaned `topology_logical_request` and `topology_request`.
Diffs
-----
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java e0a496509e9256d5ca550e7dd79ae0cd0fb5882b
ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedStateImpl.java a8b202e31b390f483d6ed1aee470179f519388a8
Diff: https://reviews.apache.org/r/60050/diff/1/
Testing
-------
Functional test:
* up/downscale by 1 host (verify topology request is removed)
* upscale by 2 hosts, downscale by 1 host (verify topology request is retained)
* upscale by 2 hosts with 1 pending, downscale by 1 host (verify topology request is retained)
* upscale by 3 hosts with 1 pending, remove pending host assignments (verify topology request is retained)
* upscale by 3 hosts with 3 pending, remove pending host assignments (verify topology request is removed)
* restart Ambari Server (verify no database error reported)
Unit tests:
```
Tests run: 4982, Failures: 0, Errors: 0, Skipped: 39
```
Thanks,
Attila Doroszlai
Re: Review Request 60050: AMBARI-21240. Some topology request data
retained after host removed
Posted by Sebastian Toader <st...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60050/#review177866
-----------------------------------------------------------
ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedStateImpl.java
Lines 133-140 (patched)
<https://reviews.apache.org/r/60050/#comment251576>
This bit should be factored out into a separate method which than can commonly used from ClustersImpl as well.
- Sebastian Toader
On June 13, 2017, 6:22 p.m., Attila Doroszlai wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60050/
> -----------------------------------------------------------
>
> (Updated June 13, 2017, 6:22 p.m.)
>
>
> Review request for Ambari, Sandor Magyari, Sumit Mohanty, and Sebastian Toader.
>
>
> Bugs: AMBARI-21240
> https://issues.apache.org/jira/browse/AMBARI-21240
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Remove orphaned `topology_logical_request` and `topology_request`.
>
>
> Diffs
> -----
>
> ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java e0a496509e9256d5ca550e7dd79ae0cd0fb5882b
> ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedStateImpl.java a8b202e31b390f483d6ed1aee470179f519388a8
>
>
> Diff: https://reviews.apache.org/r/60050/diff/1/
>
>
> Testing
> -------
>
> Functional test:
>
> * up/downscale by 1 host (verify topology request is removed)
> * upscale by 2 hosts, downscale by 1 host (verify topology request is retained)
> * upscale by 2 hosts with 1 pending, downscale by 1 host (verify topology request is retained)
> * upscale by 3 hosts with 1 pending, remove pending host assignments (verify topology request is retained)
> * upscale by 3 hosts with 3 pending, remove pending host assignments (verify topology request is removed)
> * restart Ambari Server (verify no database error reported)
>
> Unit tests:
>
> ```
> Tests run: 4982, Failures: 0, Errors: 0, Skipped: 39
> ```
>
>
> Thanks,
>
> Attila Doroszlai
>
>
Re: Review Request 60050: AMBARI-21240. Some topology request data
retained after host removed
Posted by Sebastian Toader <st...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60050/#review178110
-----------------------------------------------------------
Ship it!
Ship It!
- Sebastian Toader
On June 16, 2017, 5:03 p.m., Attila Doroszlai wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60050/
> -----------------------------------------------------------
>
> (Updated June 16, 2017, 5:03 p.m.)
>
>
> Review request for Ambari, Sandor Magyari, Sumit Mohanty, and Sebastian Toader.
>
>
> Bugs: AMBARI-21240
> https://issues.apache.org/jira/browse/AMBARI-21240
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Remove orphaned `topology_logical_request` and `topology_request`.
>
>
> Diffs
> -----
>
> ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java e0a496509e9256d5ca550e7dd79ae0cd0fb5882b
> ambari-server/src/main/java/org/apache/ambari/server/topology/HostRequest.java 9152fd2fa4b2ff092abc53d636c2d429eda9e035
> ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java eb1c3436db1055a798de69973ecc1ed5f967c5fa
> ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedState.java 2989de64514a35c5db74a87d1b647f72f85a8c97
> ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedStateImpl.java a8b202e31b390f483d6ed1aee470179f519388a8
> ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java 8a22e53a7341b4ec6c8ec8b054319c2f4e3b27a8
> ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClustersTest.java 1ca6a724782d9a38421ee9adcdcec2d956af7e92
> ambari-server/src/test/java/org/apache/ambari/server/topology/LogicalRequestTest.java 2dd45b73ad2d1047650f3b426df3cec54aed35a1
>
>
> Diff: https://reviews.apache.org/r/60050/diff/2/
>
>
> Testing
> -------
>
> Functional test:
>
> * up/downscale by 1 host (verify topology request is removed)
> * upscale by 2 hosts, downscale by 1 host (verify topology request is retained)
> * upscale by 2 hosts with 1 pending, downscale by 1 host (verify topology request is retained)
> * upscale by 3 hosts with 1 pending, remove pending host assignments (verify topology request is retained)
> * upscale by 3 hosts with 3 pending, remove pending host assignments (verify topology request is removed)
> * restart Ambari Server (verify no database error reported)
>
> Unit tests:
>
> ```
> Tests run: 4982, Failures: 0, Errors: 0, Skipped: 39
> ```
>
>
> Thanks,
>
> Attila Doroszlai
>
>
Re: Review Request 60050: AMBARI-21240. Some topology request data
retained after host removed
Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60050/#review178131
-----------------------------------------------------------
Fix it, then Ship it!
ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java
Lines 540 (patched)
<https://reviews.apache.org/r/60050/#comment251963>
Please add javadoc
- Alejandro Fernandez
On June 16, 2017, 3:03 p.m., Attila Doroszlai wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/60050/
> -----------------------------------------------------------
>
> (Updated June 16, 2017, 3:03 p.m.)
>
>
> Review request for Ambari, Sandor Magyari, Sumit Mohanty, and Sebastian Toader.
>
>
> Bugs: AMBARI-21240
> https://issues.apache.org/jira/browse/AMBARI-21240
>
>
> Repository: ambari
>
>
> Description
> -------
>
> Remove orphaned `topology_logical_request` and `topology_request`.
>
>
> Diffs
> -----
>
> ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java e0a496509e9256d5ca550e7dd79ae0cd0fb5882b
> ambari-server/src/main/java/org/apache/ambari/server/topology/HostRequest.java 9152fd2fa4b2ff092abc53d636c2d429eda9e035
> ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java eb1c3436db1055a798de69973ecc1ed5f967c5fa
> ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedState.java 2989de64514a35c5db74a87d1b647f72f85a8c97
> ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedStateImpl.java a8b202e31b390f483d6ed1aee470179f519388a8
> ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java 8a22e53a7341b4ec6c8ec8b054319c2f4e3b27a8
> ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClustersTest.java 1ca6a724782d9a38421ee9adcdcec2d956af7e92
> ambari-server/src/test/java/org/apache/ambari/server/topology/LogicalRequestTest.java 2dd45b73ad2d1047650f3b426df3cec54aed35a1
>
>
> Diff: https://reviews.apache.org/r/60050/diff/2/
>
>
> Testing
> -------
>
> Functional test:
>
> * up/downscale by 1 host (verify topology request is removed)
> * upscale by 2 hosts, downscale by 1 host (verify topology request is retained)
> * upscale by 2 hosts with 1 pending, downscale by 1 host (verify topology request is retained)
> * upscale by 3 hosts with 1 pending, remove pending host assignments (verify topology request is retained)
> * upscale by 3 hosts with 3 pending, remove pending host assignments (verify topology request is removed)
> * restart Ambari Server (verify no database error reported)
>
> Unit tests:
>
> ```
> Tests run: 4982, Failures: 0, Errors: 0, Skipped: 39
> ```
>
>
> Thanks,
>
> Attila Doroszlai
>
>
Re: Review Request 60050: AMBARI-21240. Some topology request data
retained after host removed
Posted by Attila Doroszlai <ad...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/60050/
-----------------------------------------------------------
(Updated June 16, 2017, 5:03 p.m.)
Review request for Ambari, Sandor Magyari, Sumit Mohanty, and Sebastian Toader.
Bugs: AMBARI-21240
https://issues.apache.org/jira/browse/AMBARI-21240
Repository: ambari
Description
-------
Remove orphaned `topology_logical_request` and `topology_request`.
Diffs (updated)
-----
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClustersImpl.java e0a496509e9256d5ca550e7dd79ae0cd0fb5882b
ambari-server/src/main/java/org/apache/ambari/server/topology/HostRequest.java 9152fd2fa4b2ff092abc53d636c2d429eda9e035
ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java eb1c3436db1055a798de69973ecc1ed5f967c5fa
ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedState.java 2989de64514a35c5db74a87d1b647f72f85a8c97
ambari-server/src/main/java/org/apache/ambari/server/topology/PersistedStateImpl.java a8b202e31b390f483d6ed1aee470179f519388a8
ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java 8a22e53a7341b4ec6c8ec8b054319c2f4e3b27a8
ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClustersTest.java 1ca6a724782d9a38421ee9adcdcec2d956af7e92
ambari-server/src/test/java/org/apache/ambari/server/topology/LogicalRequestTest.java 2dd45b73ad2d1047650f3b426df3cec54aed35a1
Diff: https://reviews.apache.org/r/60050/diff/2/
Changes: https://reviews.apache.org/r/60050/diff/1-2/
Testing
-------
Functional test:
* up/downscale by 1 host (verify topology request is removed)
* upscale by 2 hosts, downscale by 1 host (verify topology request is retained)
* upscale by 2 hosts with 1 pending, downscale by 1 host (verify topology request is retained)
* upscale by 3 hosts with 1 pending, remove pending host assignments (verify topology request is retained)
* upscale by 3 hosts with 3 pending, remove pending host assignments (verify topology request is removed)
* restart Ambari Server (verify no database error reported)
Unit tests:
```
Tests run: 4982, Failures: 0, Errors: 0, Skipped: 39
```
Thanks,
Attila Doroszlai