You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Jonathan Hurley <jh...@hortonworks.com> on 2015/11/10 17:15:09 UTC

Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

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

Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.


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


Repository: ambari


Description
-------

The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped

{code}
      <execute-stage title="Save Cluster State" service="" component="">
        <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
      </execute-stage>
{code} 

But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.

If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 

{code}
    <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
      <skippable>true</skippable>
      <supports-auto-skip-failure>false</supports-auto-skip-failure>
{code}


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
  ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
  ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
  ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
  ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
  ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
  ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
  ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
  ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
  ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
  ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
  ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
  ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
  ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
  ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
  ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
  ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
  ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
  ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 

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


Testing
-------

Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.

Unit tests in progress...


Thanks,

Jonathan Hurley


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Nate Cole <nc...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40140/#review105948
-----------------------------------------------------------

Ship it!


Ship It!

- Nate Cole


On Nov. 10, 2015, 2:23 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 2:23 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40140/#review105952
-----------------------------------------------------------

Ship it!


Ship It!

- Alejandro Fernandez


On Nov. 10, 2015, 7:23 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 7:23 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Jonathan Hurley <jh...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40140/
-----------------------------------------------------------

(Updated Nov. 10, 2015, 2:23 p.m.)


Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.


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


Repository: ambari


Description
-------

The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped

{code}
      <execute-stage title="Save Cluster State" service="" component="">
        <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
      </execute-stage>
{code} 

But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.

If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 

{code}
    <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
      <skippable>true</skippable>
      <supports-auto-skip-failure>false</supports-auto-skip-failure>
{code}


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
  ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
  ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
  ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
  ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
  ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
  ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
  ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
  ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
  ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
  ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
  ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
  ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
  ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
  ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
  ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
  ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
  ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
  ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
  ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
  ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
  ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
  ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
  ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 

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


Testing
-------

Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.

Unit tests in progress...


Thanks,

Jonathan Hurley


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Nate Cole <nc...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40140/#review105894
-----------------------------------------------------------

Ship it!



ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java (lines 824 - 825)
<https://reviews.apache.org/r/40140/#comment164592>

    At this point we may as well just start passing around the UpgradeGroupHolder (named "group") object to all these various methods.  Won't hold up the review for it.


- Nate Cole


On Nov. 10, 2015, 11:15 a.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 11:15 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Jonathan Hurley <jh...@hortonworks.com>.

> On Nov. 10, 2015, 1:11 p.m., Jayush Luniya wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml, line 161
> > <https://reviews.apache.org/r/40140/diff/1/?file=1121848#file1121848line161>
> >
> >     Why autoskip=false for Stop low level services and autoskip=true for Stop high level services?

That's a good point - I'm guessing it should be true for both. I think I felt that low level services were more important to get right. I'll make them both true.


- Jonathan


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


On Nov. 10, 2015, 11:15 a.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 11:15 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Jayush Luniya <jl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40140/#review105909
-----------------------------------------------------------



ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml (line 160)
<https://reviews.apache.org/r/40140/#comment164602>

    Why autoskip=false for Stop low level services and autoskip=true for Stop high level services?


- Jayush Luniya


On Nov. 10, 2015, 4:15 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 4:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Nate Cole <nc...@hortonworks.com>.

> On Nov. 10, 2015, 1:17 p.m., Jayush Luniya wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml, line 523
> > <https://reviews.apache.org/r/40140/diff/1/?file=1121847#file1121847line523>
> >
> >     I think we should still make "Save Cluster State" not skippable. If the user ends up skipping this step manually, will the cluster be on the new version or the old version. We dont want to get in a state where master restart with old version post upgrade.
> 
> Alejandro Fernandez wrote:
>     I agree. Being in that state is risky since they are allowed full control of the cluster but the version is not yet CURRENT.
>     I propose another feature to allow forcing the version to CURRENT so they can still run Save Cluster State.

We're already have a FINALIZE_PRE_CHECK to give users a chance to get things right.  I'm hesitant to allow them to force the version so easily since components are going to start returning the wrong version.  Let's push that feature out a bit (maybe 2.2, not 2.1.3).


- Nate


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


On Nov. 10, 2015, 11:15 a.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 11:15 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Alejandro Fernandez <af...@hortonworks.com>.

> On Nov. 10, 2015, 6:17 p.m., Jayush Luniya wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml, line 523
> > <https://reviews.apache.org/r/40140/diff/1/?file=1121847#file1121847line523>
> >
> >     I think we should still make "Save Cluster State" not skippable. If the user ends up skipping this step manually, will the cluster be on the new version or the old version. We dont want to get in a state where master restart with old version post upgrade.

I agree. Being in that state is risky since they are allowed full control of the cluster but the version is not yet CURRENT.
I propose another feature to allow forcing the version to CURRENT so they can still run Save Cluster State.


- Alejandro


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


On Nov. 10, 2015, 4:15 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 4:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Jonathan Hurley <jh...@hortonworks.com>.

> On Nov. 10, 2015, 1:17 p.m., Jayush Luniya wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml, line 523
> > <https://reviews.apache.org/r/40140/diff/1/?file=1121847#file1121847line523>
> >
> >     I think we should still make "Save Cluster State" not skippable. If the user ends up skipping this step manually, will the cluster be on the new version or the old version. We dont want to get in a state where master restart with old version post upgrade.
> 
> Alejandro Fernandez wrote:
>     I agree. Being in that state is risky since they are allowed full control of the cluster but the version is not yet CURRENT.
>     I propose another feature to allow forcing the version to CURRENT so they can still run Save Cluster State.
> 
> Nate Cole wrote:
>     We're already have a FINALIZE_PRE_CHECK to give users a chance to get things right.  I'm hesitant to allow them to force the version so easily since components are going to start returning the wrong version.  Let's push that feature out a bit (maybe 2.2, not 2.1.3).

I also don't think this should be skippable, but others do. It's the way it's always been. If we want to change this, we need to open a new Jira for it. The idea here was that there are definitely things that should not be skipped during an upgrade, so we introduced this behavior in the XML.


- Jonathan


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


On Nov. 10, 2015, 11:15 a.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 11:15 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Alejandro Fernandez <af...@hortonworks.com>.

> On Nov. 10, 2015, 6:17 p.m., Jayush Luniya wrote:
> > ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml, line 523
> > <https://reviews.apache.org/r/40140/diff/1/?file=1121847#file1121847line523>
> >
> >     I think we should still make "Save Cluster State" not skippable. If the user ends up skipping this step manually, will the cluster be on the new version or the old version. We dont want to get in a state where master restart with old version post upgrade.
> 
> Alejandro Fernandez wrote:
>     I agree. Being in that state is risky since they are allowed full control of the cluster but the version is not yet CURRENT.
>     I propose another feature to allow forcing the version to CURRENT so they can still run Save Cluster State.
> 
> Nate Cole wrote:
>     We're already have a FINALIZE_PRE_CHECK to give users a chance to get things right.  I'm hesitant to allow them to force the version so easily since components are going to start returning the wrong version.  Let's push that feature out a bit (maybe 2.2, not 2.1.3).
> 
> Jonathan Hurley wrote:
>     I also don't think this should be skippable, but others do. It's the way it's always been. If we want to change this, we need to open a new Jira for it. The idea here was that there are definitely things that should not be skipped during an upgrade, so we introduced this behavior in the XML.

I'm ok with a new Jira for that, perhaps in 2.2


- Alejandro


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


On Nov. 10, 2015, 7:23 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 7:23 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Re: Review Request 40140: Save Cluster State Should Not Be Automatically Skipped During Upgrade

Posted by Jayush Luniya <jl...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/40140/#review105914
-----------------------------------------------------------



ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml (line 522)
<https://reviews.apache.org/r/40140/#comment164606>

    I think we should still make "Save Cluster State" not skippable. If the user ends up skipping this step manually, will the cluster be on the new version or the old version. We dont want to get in a state where master restart with old version post upgrade.


- Jayush Luniya


On Nov. 10, 2015, 4:15 p.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/40140/
> -----------------------------------------------------------
> 
> (Updated Nov. 10, 2015, 4:15 p.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Nate Cole.
> 
> 
> Bugs: AMBARI-13816
>     https://issues.apache.org/jira/browse/AMBARI-13816
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> The easiest solution here is to make a new group for the finalize action and then make that group not skippable. However, that might not be a desirable  "feature" This step exists in a skippable group, which means it can be automatically skipped
> 
> {code}
>       <execute-stage title="Save Cluster State" service="" component="">
>         <task xsi:type="server_action" class="org.apache.ambari.server.serveraction.upgrades.FinalizeUpgradeAction"/>
>       </execute-stage>
> {code} 
> 
> But this task should never be auto skipped - I'd argue that it should never be skipped at all. Either abort the upgrade if this fails or downgrade or finalize later. However, it seems that the overall approach is to allow most upgrade items to be skipped.
> 
> If we say that, "No, finalize _must_ also be skippable because we always want them to 'finish' the upgrade", then I think we'd need to do some work here to introduce the notion of a non-auto-skip property in the XML. 
> 
> {code}
>     <group xsi:type="cluster" name="POST_CLUSTER" title="Finalize {{direction.text.proper}}">
>       <skippable>true</skippable>
>       <supports-auto-skip-failure>false</supports-auto-skip-failure>
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/actionmanager/Stage.java ef50963 
>   ambari-server/src/main/java/org/apache/ambari/server/controller/internal/UpgradeResourceProvider.java 915e431 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/dao/HostRoleCommandDAO.java 8b167ca 
>   ambari-server/src/main/java/org/apache/ambari/server/orm/entities/StageEntity.java e801233 
>   ambari-server/src/main/java/org/apache/ambari/server/serveraction/upgrades/AutoSkipFailedSummaryAction.java 80c1611 
>   ambari-server/src/main/java/org/apache/ambari/server/state/UpgradeHelper.java 1b59b94 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/Grouping.java 4ef14a6 
>   ambari-server/src/main/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilder.java 7497c23 
>   ambari-server/src/main/java/org/apache/ambari/server/topology/LogicalRequest.java f29e0f4 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog213.java ed4b22a 
>   ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql 62d8054 
>   ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql fe024ce 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql 3ae65ee 
>   ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql c014443 
>   ambari-server/src/main/resources/Ambari-DDL-SQLAnywhere-CREATE.sql bba17a5 
>   ambari-server/src/main/resources/Ambari-DDL-SQLServer-CREATE.sql 60938c3 
>   ambari-server/src/main/resources/stacks/HDP/2.1/upgrades/nonrolling-upgrade-2.3.xml fd28ce8 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.2.xml a22f24d 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/nonrolling-upgrade-2.3.xml b9ad6fe 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.2.xml 5248d7a 
>   ambari-server/src/main/resources/stacks/HDP/2.2/upgrades/upgrade-2.3.xml 6a1f62d 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/nonrolling-upgrade-2.3.xml b6c8498 
>   ambari-server/src/main/resources/stacks/HDP/2.3/upgrades/upgrade-2.3.xml 60723b7 
>   ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java 3cbf62b 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/UpgradePackTest.java f26ab23 
>   ambari-server/src/test/java/org/apache/ambari/server/state/stack/upgrade/StageWrapperBuilderTest.java 94a5336 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog213Test.java 4612587 
>   ambari-server/src/test/resources/stacks/HDP/2.2.0/upgrades/upgrade_test_skip_failures.xml 41c1123 
> 
> Diff: https://reviews.apache.org/r/40140/diff/
> 
> 
> Testing
> -------
> 
> Manually verified that certain upgrade groups will not be automatically skipped during an upgrade (observed the correct boolean on the underlying tasks). Switched the auto skip flag on and off during an upgrade.
> 
> Unit tests in progress...
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>