errose28 commented on PR #3983: URL: https://github.com/apache/ozone/pull/3983#issuecomment-1325629845
> I think it might be related to the implementation that Ozone will always choose and compare based on the largest value in LayoutFeature, IMHO, the meaning of "SoftwareVersion" is kind of mixed with "targetVersion" The software layout version is the version of the largest layout feature. You cannot make a component run on a lower software layout version, because the changes represented by that layout version are still in the software. You can only make it run with a lower metadata layout version so that the new code respects the old disk layout. > I mean, even users are using a SLV:3 software, they can still run their cluster on MLV:2 The cluster can run with SLV 3 and MLV 2, it will just be pre-finalized. This is expected behavior to allow downgrades. > One thing I'm concerning is there is not a obvious difference between normal patches and those with changes of LayoutFeature. Anyone cherry-picking changes directly on to their cluster should read through the patches to fully understand the changes and their dependencies or they risk breaking things. Layout feature changes would show up in this diff. Changes with layout features indicate major changes to the way Ozone functions, and would not usually be something cherry-picked on as they can have 10s or 100s of commits behind them to make the feature work. Layout features are not bug fixes. Datanodes and SCM use the `HDDSLayoutFeature` class to get their software layout version. I am not sure exactly what was done to encounter this error, but it looks like a patch with a layout feature change (in hdds-common) was applied to the datanodes and not the SCM. When cherry picking changes, the patch should be applied to all jars in the cluster since common classes between components may have been changed, even if it is just a "datanode" change. This ensures the components can communicate smoothly since we do not yet have rolling upgrade support. -- 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]
