dombizita opened a new pull request, #4500: URL: https://github.com/apache/ozone/pull/4500
## 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 -- 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]
