[
https://issues.apache.org/jira/browse/HDFS-8593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chris Nauroth updated HDFS-8593:
--------------------------------
Attachment: HDFS-8593.001.patch
I'm attaching a patch to flip the comparison. This is the correct logic when
we consider that layout versions grow in the negative direction. Thank you to
[~jingzhao] for reviewing the HDFS-8432 code and finding this bug.
> Calculation of effective layout version mishandles comparison to current
> layout version in storage.
> ---------------------------------------------------------------------------------------------------
>
> Key: HDFS-8593
> URL: https://issues.apache.org/jira/browse/HDFS-8593
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: namenode
> Reporter: Chris Nauroth
> Assignee: Chris Nauroth
> Attachments: HDFS-8593.001.patch
>
>
> HDFS-8432 introduced the concept of a minimum compatible layout version so
> that downgrade is applicable in a wider set of circumstances. This includes
> logic for determining if the current layout version in storage is within the
> bounds of the minimum compatible layout version. There is an inverted
> comparison in this logic, which can result in an incorrect calculation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)