Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HDDS-8239. RATIS_DATASTREAM port compatibility issue #4500

Merged
merged 8 commits into from
Mar 31, 2023

Conversation

dombizita
Copy link
Contributor

What changes were proposed in this pull request?

Based on previous discussions we found out that the RATIS_DATASTREAM port in DatanodeDetails suffers from incompatibility problem and we decided to add a HDDS layout version as RATIS_DATASTREAM_PORT_IN_DATANODEDETAILS to handle that. I created a BelongsToHDDSLayoutVersion annotation and used it to annotate the RATIS_DATASTREAM port with it. In the getDatanodeDetailsYaml() when we are adding the ports I checked if the port has this annotation and checked if the current layout version is smaller than the layout version of the annotation. In that case I am not writing the ports in to the DatanodeDetails yaml file.

As not the DATANODE_SCHEMA_V3 is the latest HDDS layout version anymore I changed some tests to not require exact match with the versions in the TestDatanodeUpgradeToSchemaV3.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-8239

How was this patch tested?

CI on my fork: https://github.com/dombizita/ozone/actions/runs/4558939757

… DatanodeDetails.

Change-Id: Ie2e20f609b4cbc503eb005eb753d0f07a1707370
Change-Id: I4b5ee06f823764c99a4c4014829686bc3e69010c
Change-Id: Ie8af9aeb1a9f81fead4b6cc67890225eb04a0065
Change-Id: Ibdde6f40388f62642afa26d180d4b5f42aa0142d
Change-Id: Ifc91f2a5a2308778e125993d137a5684bacac47f
Change-Id: I86a065562f3cd1667904f7682514de9b8131a2da
Change-Id: I37f2f002ed44b2a182b6fa1c7aa24a5634249b63
Change-Id: I9429c1a22586d3ae9289f13f684dc8a9cb1eb4ba
Copy link
Contributor

@adoroszlai adoroszlai left a comment

Choose a reason for hiding this comment

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

Thanks @dombizita for the patch, and for the additional work for extracting it from HDDS-7817.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants