You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Sid Wagle <sw...@hortonworks.com> on 2014/03/27 01:43:18 UTC

Review Request 19707: Add new Maintenance States to support different operation levels.

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

Review request for Ambari, Dmitro Lisnichenko and Sumit Mohanty.


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


Repository: ambari


Description
-------

1. The API calls to perform all backend operations needs to provide a “source” element in the “RequestInfo” properties to identify the logical level at which the operation is executed.

Possible levels:
{CLUSTER, SERVICE, HOST_COMPONENT, HOST}

Note: Service component is analogous to Service, no level specification needed at the moment.

2. The current states for Maintenance mode will be modified to add more context to the IMPLIED state.


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariActionExecutionHelper.java d392167 
  ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java 7f63a41 
  ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java 951a619 
  ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java 690b83a 
  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java 6a45da9 
  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ServiceResourceProvider.java ec96627 
  ambari-server/src/main/java/org/apache/ambari/server/state/MaintenanceState.java 36fea40 
  ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java 9bdbd29 
  ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java b3e7c8d 
  ambari-server/src/test/java/org/apache/ambari/server/controller/MaintenanceStateHelperTest.java 489499a 

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


Testing
-------

Results :

Tests run: 1513, Failures: 0, Errors: 0, Skipped: 10


Thanks,

Sid Wagle


Re: Review Request 19707: Add new Maintenance States to support different operation levels.

Posted by Sid Wagle <sw...@hortonworks.com>.

> On March 27, 2014, 3:07 p.m., Dmitro Lisnichenko wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java, line 213
> > <https://reviews.apache.org/r/19707/diff/1/?file=538144#file538144line213>
> >
> >     Sid, can you please explain of usecase of this code? I could not find usages in production and can't get a point of it.

Modifications needed for different implications of Maintenance mode based on what level a operation is triggered.

HDFS (non-MM).
Had one DN (non-MM) and one DN (MM).
HDFS Start and Stop operations skip the DN in MM (as designed), but Restart All does not.


- Sid


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


On March 27, 2014, 12:43 a.m., Sid Wagle wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/19707/
> -----------------------------------------------------------
> 
> (Updated March 27, 2014, 12:43 a.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-5234
>     https://issues.apache.org/jira/browse/AMBARI-5234
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> 1. The API calls to perform all backend operations needs to provide a “source” element in the “RequestInfo” properties to identify the logical level at which the operation is executed.
> 
> Possible levels:
> {CLUSTER, SERVICE, HOST_COMPONENT, HOST}
> 
> Note: Service component is analogous to Service, no level specification needed at the moment.
> 
> 2. The current states for Maintenance mode will be modified to add more context to the IMPLIED state.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariActionExecutionHelper.java d392167 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java 7f63a41 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java 951a619 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java 690b83a 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java 6a45da9 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ServiceResourceProvider.java ec96627 
>   ambari-server/src/main/java/org/apache/ambari/server/state/MaintenanceState.java 36fea40 
>   ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java 9bdbd29 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java b3e7c8d 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/MaintenanceStateHelperTest.java 489499a 
> 
> Diff: https://reviews.apache.org/r/19707/diff/
> 
> 
> Testing
> -------
> 
> Results :
> 
> Tests run: 1513, Failures: 0, Errors: 0, Skipped: 10
> 
> 
> Thanks,
> 
> Sid Wagle
> 
>


Re: Review Request 19707: Add new Maintenance States to support different operation levels.

Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.

> On March 27, 2014, 3:07 p.m., Dmitro Lisnichenko wrote:
> > ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java, line 213
> > <https://reviews.apache.org/r/19707/diff/1/?file=538144#file538144line213>
> >
> >     Sid, can you please explain of usecase of this code? I could not find usages in production and can't get a point of it.
> 
> Sid Wagle wrote:
>     Modifications needed for different implications of Maintenance mode based on what level a operation is triggered.
>     
>     HDFS (non-MM).
>     Had one DN (non-MM) and one DN (MM).
>     HDFS Start and Stop operations skip the DN in MM (as designed), but Restart All does not.

Thanks, got it.


- Dmitro


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


On March 27, 2014, 12:43 a.m., Sid Wagle wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/19707/
> -----------------------------------------------------------
> 
> (Updated March 27, 2014, 12:43 a.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-5234
>     https://issues.apache.org/jira/browse/AMBARI-5234
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> 1. The API calls to perform all backend operations needs to provide a “source” element in the “RequestInfo” properties to identify the logical level at which the operation is executed.
> 
> Possible levels:
> {CLUSTER, SERVICE, HOST_COMPONENT, HOST}
> 
> Note: Service component is analogous to Service, no level specification needed at the moment.
> 
> 2. The current states for Maintenance mode will be modified to add more context to the IMPLIED state.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariActionExecutionHelper.java d392167 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java 7f63a41 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java 951a619 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java 690b83a 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java 6a45da9 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ServiceResourceProvider.java ec96627 
>   ambari-server/src/main/java/org/apache/ambari/server/state/MaintenanceState.java 36fea40 
>   ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java 9bdbd29 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java b3e7c8d 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/MaintenanceStateHelperTest.java 489499a 
> 
> Diff: https://reviews.apache.org/r/19707/diff/
> 
> 
> Testing
> -------
> 
> Results :
> 
> Tests run: 1513, Failures: 0, Errors: 0, Skipped: 10
> 
> 
> Thanks,
> 
> Sid Wagle
> 
>


Re: Review Request 19707: Add new Maintenance States to support different operation levels.

Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/19707/#review38736
-----------------------------------------------------------



ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java
<https://reviews.apache.org/r/19707/#comment71017>

    Sid, can you please explain of usecase of this code? I could not find usages in production and can't get a point of it.


- Dmitro Lisnichenko


On March 27, 2014, 12:43 a.m., Sid Wagle wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/19707/
> -----------------------------------------------------------
> 
> (Updated March 27, 2014, 12:43 a.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-5234
>     https://issues.apache.org/jira/browse/AMBARI-5234
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> 1. The API calls to perform all backend operations needs to provide a “source” element in the “RequestInfo” properties to identify the logical level at which the operation is executed.
> 
> Possible levels:
> {CLUSTER, SERVICE, HOST_COMPONENT, HOST}
> 
> Note: Service component is analogous to Service, no level specification needed at the moment.
> 
> 2. The current states for Maintenance mode will be modified to add more context to the IMPLIED state.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariActionExecutionHelper.java d392167 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java 7f63a41 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java 951a619 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java 690b83a 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java 6a45da9 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ServiceResourceProvider.java ec96627 
>   ambari-server/src/main/java/org/apache/ambari/server/state/MaintenanceState.java 36fea40 
>   ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java 9bdbd29 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java b3e7c8d 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/MaintenanceStateHelperTest.java 489499a 
> 
> Diff: https://reviews.apache.org/r/19707/diff/
> 
> 
> Testing
> -------
> 
> Results :
> 
> Tests run: 1513, Failures: 0, Errors: 0, Skipped: 10
> 
> 
> Thanks,
> 
> Sid Wagle
> 
>


Re: Review Request 19707: Add new Maintenance States to support different operation levels.

Posted by Dmitro Lisnichenko <dl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/19707/#review38767
-----------------------------------------------------------

Ship it!


Ship It!

- Dmitro Lisnichenko


On March 27, 2014, 12:43 a.m., Sid Wagle wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/19707/
> -----------------------------------------------------------
> 
> (Updated March 27, 2014, 12:43 a.m.)
> 
> 
> Review request for Ambari, Dmitro Lisnichenko and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-5234
>     https://issues.apache.org/jira/browse/AMBARI-5234
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> 1. The API calls to perform all backend operations needs to provide a “source” element in the “RequestInfo” properties to identify the logical level at which the operation is executed.
> 
> Possible levels:
> {CLUSTER, SERVICE, HOST_COMPONENT, HOST}
> 
> Note: Service component is analogous to Service, no level specification needed at the moment.
> 
> 2. The current states for Maintenance mode will be modified to add more context to the IMPLIED state.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariActionExecutionHelper.java d392167 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariCustomCommandExecutionHelper.java 7f63a41 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java 951a619 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/MaintenanceStateHelper.java 690b83a 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/HostResourceProvider.java 6a45da9 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ServiceResourceProvider.java ec96627 
>   ambari-server/src/main/java/org/apache/ambari/server/state/MaintenanceState.java 36fea40 
>   ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java 9bdbd29 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java b3e7c8d 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/MaintenanceStateHelperTest.java 489499a 
> 
> Diff: https://reviews.apache.org/r/19707/diff/
> 
> 
> Testing
> -------
> 
> Results :
> 
> Tests run: 1513, Failures: 0, Errors: 0, Skipped: 10
> 
> 
> Thanks,
> 
> Sid Wagle
> 
>