You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2021/09/06 22:00:43 UTC
[GitHub] [ozone] sodonnel opened a new pull request #2617: HDDS-5719. Reduce number of mini-clusters needed for decommission tests
sodonnel opened a new pull request #2617:
URL: https://github.com/apache/ozone/pull/2617
## What changes were proposed in this pull request?
There are a few scenarios in the decommission and maintenance integration tests that can be combined into the same test, reducing the number of mini-clusters needed. There changes reduce the number of tests (and clusters) by 3.
The last runtime for the decommission tests was:
```
[INFO] Running org.apache.hadoop.ozone.scm.node.TestDecommissionAndMaintenance
[INFO] Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 389.226 s - in org.apache.hadoop.ozone.scm.node.TestDecommissionAndMaintenance
```
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5719
## How was this patch tested?
Existing tests
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sodonnel commented on a change in pull request #2617: HDDS-5719. Reduce number of mini-clusters needed for decommission tests
Posted by GitBox <gi...@apache.org>.
sodonnel commented on a change in pull request #2617:
URL: https://github.com/apache/ozone/pull/2617#discussion_r703080481
##########
File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestDecommissionAndMaintenance.java
##########
@@ -343,21 +324,8 @@ public void testSingleNodeWithOpenPipelineCanGotoMaintenance()
DatanodeDetails newDN = nm.getNodeByUuid(dn.getUuid().toString());
waitForDnToReachHealthState(newDN, HEALTHY);
waitForDnToReachPersistedOpState(newDN, IN_MAINTENANCE);
- }
-
- @Test
- // After a node enters maintenance and is stopped, it can be recommissioned in
- // SCM. Then when it is restarted, it should go back to IN_SERVICE and have
- // that persisted on the DN.
- public void testStoppedMaintenanceNodeTakesScmStateOnRestart()
Review comment:
This test is merged into `testSingleNodeWithOpenPipelineCanGotoMaintenance` by recommissioning after maintenance is complete.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sodonnel commented on pull request #2617: HDDS-5719. Reduce number of mini-clusters needed for decommission tests
Posted by GitBox <gi...@apache.org>.
sodonnel commented on pull request #2617:
URL: https://github.com/apache/ozone/pull/2617#issuecomment-914062433
The new code ran in:
```
[INFO] Running org.apache.hadoop.ozone.scm.node.TestDecommissionAndMaintenance
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 371.798 s - in org.apache.hadoop.ozone.scm.node.TestDecommissionAndMaintenance
```
Saving about 18 seconds. This is only a small gain, but the cluster in these tests are created in the background, so it does save some parallel CPU overhead.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sodonnel commented on a change in pull request #2617: HDDS-5719. Reduce number of mini-clusters needed for decommission tests
Posted by GitBox <gi...@apache.org>.
sodonnel commented on a change in pull request #2617:
URL: https://github.com/apache/ozone/pull/2617#discussion_r703081610
##########
File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestDecommissionAndMaintenance.java
##########
@@ -185,43 +186,26 @@ public void testNodeWithOpenPipelineCanBeDecommissioned()
waitForContainerReplicas(container, 4);
// Stop the decommissioned DN
+ int dnIndex = cluster.getHddsDatanodeIndex(toDecommission);
cluster.shutdownHddsDatanode(toDecommission);
waitForDnToReachHealthState(toDecommission, DEAD);
// Now the decommissioned node is dead, we should have
// 3 replicas for the tracked container.
waitForContainerReplicas(container, 3);
- }
- @Test
- // After a SCM restart, it will have forgotten all the Operational states.
- // However the state will have been persisted on the DNs. Therefore on initial
- // registration, the DN operationalState is the source of truth and SCM should
- // be updated to reflect that.
- public void testDecommissionedStateReinstatedAfterSCMRestart()
Review comment:
Merged into `testDecommissioningNodesCompleteDecommissionOnSCMRestart`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sodonnel merged pull request #2617: HDDS-5719. Reduce number of mini-clusters needed for decommission tests
Posted by GitBox <gi...@apache.org>.
sodonnel merged pull request #2617:
URL: https://github.com/apache/ozone/pull/2617
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sodonnel commented on a change in pull request #2617: HDDS-5719. Reduce number of mini-clusters needed for decommission tests
Posted by GitBox <gi...@apache.org>.
sodonnel commented on a change in pull request #2617:
URL: https://github.com/apache/ozone/pull/2617#discussion_r703080202
##########
File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestDecommissionAndMaintenance.java
##########
@@ -283,28 +279,13 @@ public void testStoppedDecommissionedNodeTakesSCMStateOnRestart()
waitForDnToReachPersistedOpState(dn, IN_SERVICE);
}
- @Test
- // A node which is decommissioning or decommissioned can be move back to
- // IN_SERVICE.
- public void testDecommissionedNodeCanBeRecommissioned() throws Exception {
Review comment:
This test has been effectively merged into `testNodeWithOpenPipelineCanBeDecommissioned()` by recommissioning the node after it completes decommission.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sodonnel commented on a change in pull request #2617: HDDS-5719. Reduce number of mini-clusters needed for decommission tests
Posted by GitBox <gi...@apache.org>.
sodonnel commented on a change in pull request #2617:
URL: https://github.com/apache/ozone/pull/2617#discussion_r703080202
##########
File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestDecommissionAndMaintenance.java
##########
@@ -283,28 +279,13 @@ public void testStoppedDecommissionedNodeTakesSCMStateOnRestart()
waitForDnToReachPersistedOpState(dn, IN_SERVICE);
}
- @Test
- // A node which is decommissioning or decommissioned can be move back to
- // IN_SERVICE.
- public void testDecommissionedNodeCanBeRecommissioned() throws Exception {
Review comment:
This test has been effectively merged into `testNodeWithOpenPipelineCanBeDecommissionedAndRecommissioned()` by recommissioning the node after it completes decommission.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
[GitHub] [ozone] sodonnel commented on a change in pull request #2617: HDDS-5719. Reduce number of mini-clusters needed for decommission tests
Posted by GitBox <gi...@apache.org>.
sodonnel commented on a change in pull request #2617:
URL: https://github.com/apache/ozone/pull/2617#discussion_r703080202
##########
File path: hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/scm/node/TestDecommissionAndMaintenance.java
##########
@@ -283,28 +279,13 @@ public void testStoppedDecommissionedNodeTakesSCMStateOnRestart()
waitForDnToReachPersistedOpState(dn, IN_SERVICE);
}
- @Test
- // A node which is decommissioning or decommissioned can be move back to
- // IN_SERVICE.
- public void testDecommissionedNodeCanBeRecommissioned() throws Exception {
Review comment:
This test has been effectively merged into testNodeWithOpenPipelineCanBeDecommissioned by recommissioning the node after it completes decommission.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org