Skip to content

Comments

HDDS-11282. Combine test setup for datanode upgrade unit tests#7063

Merged
adoroszlai merged 5 commits intoapache:masterfrom
chungen0126:HDDS-11282
Aug 15, 2024
Merged

HDDS-11282. Combine test setup for datanode upgrade unit tests#7063
adoroszlai merged 5 commits intoapache:masterfrom
chungen0126:HDDS-11282

Conversation

@chungen0126
Copy link
Contributor

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 and running datanodes without their heartbeat thread. 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

How was this patch tested?

CI:
https://github.com/chungen0126/ozone/actions/runs/10351405194

Copy link
Contributor

@jojochuang jojochuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just a one line change suggestion otherwise all good.

…ozone/container/upgrade/TestDatanodeUpgradeToSchemaV3.java
Copy link
Contributor

@jojochuang jojochuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 pending CI

@adoroszlai adoroszlai merged commit 593337b into apache:master Aug 15, 2024
@adoroszlai
Copy link
Contributor

Thanks @chungen0126 for the patch, @jojochuang for the review.

@chungen0126 chungen0126 deleted the HDDS-11282 branch August 15, 2024 09:47
@chungen0126 chungen0126 restored the HDDS-11282 branch August 15, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants