errose28 commented on PR #3741:
URL: https://github.com/apache/ozone/pull/3741#issuecomment-1251531676
The cluster ID directory on the datanode has a complicated history, but it
is not related to schema V3. For a detailed look see HDDS-5432 and the design
document linked there. Basically before SCM HA the cluster ID directory on each
volume was actually using the SCM ID. This became a problem when SCM HA was
introduced since there are now 3 SCMs, but renaming the directory was an
incompatible change. At the end of it all the volume could be formatted in the
following ways:
- Only cluster ID directory
- The volume was formatted with Ozone 1.3.0
- SCM ID directory pointed to by a cluster ID symlink
- The volume was formatted with Ozone <= 1.2.0 and SCM HA was finalized.
- Only SCM ID
- The volume was formatted with Ozone <= 1.2.0 and SCM HA has not yet
been finalized.
- This would happen on the upgrade path from 1.1.0 to 1.3.0
In general you should not need to worry about this. Just call
`VersionedDatanodeFeatures#ScmHA#chooseContainerPathID` and use the result as
the parent directory.
--
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]