----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62943/#review188067 -----------------------------------------------------------
Ship it! Ship It! - Di Li On Oct. 13, 2017, 6:40 p.m., Tim Thorpe wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62943/ > ----------------------------------------------------------- > > (Updated Oct. 13, 2017, 6:40 p.m.) > > > Review request for Ambari, Di Li, Jonathan Hurley, Jayush Luniya, and Sid > Wagle. > > > Bugs: AMBARI-22220 > https://issues.apache.org/jira/browse/AMBARI-22220 > > > Repository: ambari > > > Description > ------- > > Currently the only way to switch the extension version to which a stack > version is linked is to perform the following actions: > > Stop the extension services > Reregister (delete) the extension services > Unlink the old extension version > Link the new extension version > Add the extension services back > > The REST API should allow us to do an update action on the extension link. In > this manner, if we were running an upgrade from HDP 2.6.1 to 2.6.3 (or > something similar) which both use the HDP 2.6 stack version then we could > perform the extension link switch as a manual step during the upgrade process. > > > Diffs > ----- > > > ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementController.java > f0f13e1 > > ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementControllerImpl.java > b0eb8ac > > ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementHelper.java > 0c8edfe > > ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ExtensionLinkResourceProvider.java > 9b894ff > > ambari-server/src/main/java/org/apache/ambari/server/stack/ExtensionHelper.java > 91dc870 > > ambari-server/src/test/java/org/apache/ambari/server/stack/StackManagerExtensionTest.java > cef30b5 > ambari-server/src/test/resources/extensions/EXT/0.2/metainfo.xml c95a20f > ambari-server/src/test/resources/extensions/EXT/0.4/metainfo.xml > PRE-CREATION > > ambari-server/src/test/resources/extensions/EXT/0.4/services/OOZIE2/metainfo.xml > PRE-CREATION > > ambari-server/src/test/resources/extensions/EXT/0.4/services/OOZIE2/themes/broken_theme.json > PRE-CREATION > > > Diff: https://reviews.apache.org/r/62943/diff/1/ > > > Testing > ------- > > mvn test > -Dtest=StackManagerCommonServicesTest,StackManagerTest,StackManagerMiscTest,StackManagerExtensionTest > > Manual testing both valid and invalid extension version updates > > > Thanks, > > Tim Thorpe > >
