chungen0126 opened a new pull request, #7063:
URL: https://github.com/apache/ozone/pull/7063

   ## What changes were proposed in this pull request?
   
   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.
   
   ## What is the link to the Apache JIRA
   
   [HDDS-11282](https://issues.apache.org/jira/browse/HDDS-11282)
   
   ## How was this patch tested?
   
   CI:
   https://github.com/chungen0126/ozone/actions/runs/10351405194
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to