jojochuang opened a new pull request, #11915:
URL: https://github.com/apache/ozone/pull/11915

   ## What changes were proposed in this pull request?
   
   On `ozone-2.2`, Recon accepts metadata with a layout version newer than its 
software supports. An actual 2.2.2-to-2.0.0 downgrade without restoring Recon's 
backup started successfully but returned empty namespace results for existing 
keys.
   
   Reject a newer metadata layout version with an error naming both versions 
and the recovery options. Construct the layout manager before starting Recon 
services. Add a regression test for rejection before upgrade-action 
registration or database writes, plus a matching-version control.
   
   This PR targets `ozone-2.2`. Current master already rejects unknown 
persisted versions through `ReconVersionManager`. Historical unpatched binaries 
still require the documented backup/restore procedure.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-17681
   
   ## How was this patch tested?
   
   - The new rejection test failed before the fix because initialization threw 
no exception.
   - `TestReconLayoutVersionManager` and `TestSchemaVersionTableDefinition`: 16 
tests passed with JDK 21.
   - `hadoop-ozone/dev-support/checks/checkstyle.sh`: passed with zero 
violations.
   
   Generated-by: Codex (GPT-6)
   


-- 
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]

Reply via email to