Ethan Rose created HDDS-11282:
---------------------------------

             Summary: Combine test setup for datanode upgrade unit tests
                 Key: HDDS-11282
                 URL: https://issues.apache.org/jira/browse/HDDS-11282
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Ethan Rose


{{TestDatanodeUpgradeToScmHA}} was the firstĀ unit test for handling of a 
specific datanode layout version. It works by starting just the minimal [SCM 
RPC 
server|https://github.com/apache/ozone/blob/6ed1e58dd598e4dbc8948e1c23ae67dd1e55104c/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/upgrade/TestDatanodeUpgradeToScmHA.java#L561]
 and running datanodes without their [heartbeat 
thread|https://github.com/apache/ozone/blob/0c47b0f3bfaf39f1625295a2631c21276c48b9f8/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/statemachine/DatanodeStateMachine.java#L331].
 This allows most fo the functionality that would be present in a 
MiniOzoneCluster integration test but runs at the speed of a unit test.

The framework has since been adopted for testing other layout features in 
{{TestDatanodeUpgradeToSchemaV3}} and {{TestDatanodeUpgradeToHBaseSupport}}, 
but the code has been copied each time. This Jira is to extract the common 
setup code so that it can be re-used to test datanode layout features in the 
future.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to