Attila Doroszlai created HDDS-2693:
--------------------------------------

             Summary: HddsVolume mixes ChunkLayOutVersion and 
DataNodeLayoutVersion
                 Key: HDDS-2693
                 URL: https://issues.apache.org/jira/browse/HDDS-2693
             Project: Hadoop Distributed Data Store
          Issue Type: Bug
          Components: Ozone Datanode
            Reporter: Attila Doroszlai
            Assignee: Attila Doroszlai


{{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.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to