You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "adoroszlai (via GitHub)" <gi...@apache.org> on 2025/03/31 11:24:48 UTC
[PR] HDDS-12493. Move container upgrade under repair [ozone]
adoroszlai opened a new pull request, #8205:
URL: https://github.com/apache/ozone/pull/8205
## What changes were proposed in this pull request?
Move `ozone admin container upgrade` to `ozone repair datanode upgrade-container-schema`, because it works offline on the DB.
It was introduced in HDDS-9245, which is first going to be released in 2.0.0. If we can get this into that release, we can simply make the move. Otherwise we should keep the original command either as "dummy", to print the name of the new one, or as "passthrough", to invoke the new command. (Let me know which one should be implemented.)
This change includes significant refactoring, mostly required for better fit with repair tools, including:
- print messages to stdout/stderr instead of log
- support the `--dry-run` option, remove interactive confirmation
- use common check for running process, and do not require DN to be `IN_MAINTENANCE`
https://issues.apache.org/jira/browse/HDDS-12493
## How was this patch tested?
Existing/updated unit (`TestUpgradeContainerSchema`) and integration (`TestOzoneContainerUpgradeShell`) tests.
CI:
https://github.com/adoroszlai/ozone/actions/runs/14169327549
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12493. Move container upgrade under repair [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #8205:
URL: https://github.com/apache/ozone/pull/8205#issuecomment-2806537373
Thanks @nandakumar131 for the review and resolving conflicts.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12493. Move container upgrade under repair [ozone]
Posted by "nandakumar131 (via GitHub)" <gi...@apache.org>.
nandakumar131 commented on PR #8205:
URL: https://github.com/apache/ozone/pull/8205#issuecomment-2787150640
>If we can get this into that release, we can simply make the move. Otherwise we should keep the original command either as "dummy", to print the name of the new one.
Since RC is out for 2.0.0, do we need to depreciate and retain the original command as well?
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12493. Move container upgrade under repair [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai merged PR #8205:
URL: https://github.com/apache/ozone/pull/8205
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-12493. Move container upgrade under repair [ozone]
Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #8205:
URL: https://github.com/apache/ozone/pull/8205#issuecomment-2776275253
Changes:
- Move `ozone admin container upgrade` (package `org.apache.hadoop.hdds.scm.cli.container.upgrade` in `hdds-tools`) to `ozone repair datanode upgrade-container-schema` (package `org.apache.hadoop.ozone.repair.datanode.schemaupgrade` in `ozone-tools`)
- `UpgradeSubcommand` was renamed to `UpgradeContainerSchema`
- `UpgradeManager.Result` was moved to top-level `VolumeUpgradeResult`
- `UpgradeTask.UpgradeContainerResult` was renamed to `ContainerUpgradeResult`
- Most of `UpgradeChecker` and `UpgradeManager` were merged into `UpgradeContainerSchema`, except utilities, which were moved into `UpgradeUtils`
- Replaced `out().println()` and logging with `info()` and `error()` as appropriate, and introduced `fatal()` (which is like `error()`, but also stops execution)
- Added dry-run mode.
- Changed test to run the tool via `OzoneRepair` instead of directly invoking `run()`. Get upgrade results via a method exposed for test.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org