You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Chung En Lee (Jira)" <ji...@apache.org> on 2024/08/09 04:45:00 UTC
[jira] [Assigned] (HDDS-11282) Combine test setup for datanode upgrade unit tests
[ https://issues.apache.org/jira/browse/HDDS-11282?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chung En Lee reassigned HDDS-11282:
-----------------------------------
Assignee: Chung En Lee
> 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
> Assignee: Chung En Lee
> Priority: Major
>
> {{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-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org