[
https://issues.apache.org/jira/browse/HDDS-2693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Attila Doroszlai updated HDDS-2693:
-----------------------------------
Fix Version/s: 0.5.0
> HddsVolume mixes ChunkLayOutVersion and DataNodeLayoutVersion
> -------------------------------------------------------------
>
> Key: HDDS-2693
> URL: https://issues.apache.org/jira/browse/HDDS-2693
> Project: Apache Ozone
> Issue Type: Bug
> Components: Ozone Datanode
> Reporter: Attila Doroszlai
> Assignee: Attila Doroszlai
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.5.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {{HddsVolume}} [initializes {{layoutVersion}} using latest
> {{ChunkLayOutVersion}}|https://github.com/apache/hadoop-ozone/blob/1d56bc244995e857b842f62d3d1e544ee100bbc1/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/HddsVolume.java#L268].
> But when writing the same info to file, it [verifies {{layoutVersion}}
> matches the latest
> {{DataNodeLayoutVersion}}|https://github.com/apache/hadoop-ozone/blob/1d56bc244995e857b842f62d3d1e544ee100bbc1/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/HddsVolume.java#L292-L293].
> To satisfy the condition {{ChunkLayOutVersion}} and
> {{DataNodeLayoutVersion}} have to be in sync, which means only one of them is
> necessary. I think the intention was to use {{DataNodeLayoutVersion}} in
> both cases, as {{ChunkLayOutVersion}} is for key-value container internal
> structure.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]