Skip to content

Conversation

@errose28
Copy link
Contributor

@errose28 errose28 commented Mar 23, 2021

What changes were proposed in this pull request?

Since older versions of the code did not have a VERSION file for datanodes, use the presence of the datanode.id file to determine whether the datanode is being started on a fresh install and should use the latest layout version, or being started as part of an upgrade and should use the initial layout version.

What is the link to the Apache JIRA

HDDS-5023

How was this patch tested?

Added fix to HDDS-4181 acceptance tests, and the MLV tests there verified that pre-finalize datanodes are using the correct MLV when pre-finalized.

@avijayanhwx avijayanhwx merged commit d55a714 into apache:HDDS-3698-nonrolling-upgrade Mar 25, 2021
errose28 added a commit to errose28/ozone that referenced this pull request Mar 25, 2021
* HDDS-3698-nonrolling-upgrade:
  HDDS-5023. Datanodes should always use MLV 0 when no VERSION file is present. (apache#2080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants