Skip to content

Commit

Permalink
HDDS-11902. Remove upgrade tests for non-ha and om-ha (#7610)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiacyu authored Jan 3, 2025
1 parent fbb792d commit 69206e9
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 644 deletions.
18 changes: 2 additions & 16 deletions hadoop-ozone/dist/src/main/compose/upgrade/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ an older release of Ozone and a later release (which may be the local build).

## Supported Versions

Non-rolling upgrades and downgrades are supported from 1.1.0 to any later version. Note that 1.1.0 did not have the non-rolling upgrade framework, so things like preparing the OMs for upgrade and checking finalization status are not present in that version. Manual upgrade is the only supported upgrade option from 1.0.0 to 1.1.0.
Non-rolling upgrades and downgrades are supported from 1.1.0 to any later version. Note that 1.1.0 did not have the non-rolling upgrade framework, so things like preparing the OMs for upgrade and checking finalization status are not present in that version.

## Directory Layout

Expand Down Expand Up @@ -72,23 +72,9 @@ Each type of upgrade has a subdirectory under the *upgrades* directory.
4. `with_this_version_finalized`: Run after ozone is stopped in the old version after donwgrade, started again in the new version pre-finalized, and then finalized.
- The upgrade is complete when this callback runs.

#### manual-upgrade

- This is a legacy option that was used before the upgrade framework was introduced in 1.2.0. This option is left as an example in case it needs to be used for some reason in the future.

- Any necessary conversion of on disk structures from the old version to the new version must be done explicitly.

- This is primarily for testing upgrades from versions before the non-rolling upgrade framework was introduced.

- Supported Callbacks:
1. `setup_old_version`: Run before ozone is started in the old version.
3. `with_old_version`: Run while ozone is running in the old version.
3. `setup_this_version`: Run after ozone is stopped in the old version, but before it is restarted in the new version.
4. `with_this_version`: Run while ozone is running in the new version.

### compose

Docker compose cluster definitions to be used in upgrade testing are defined in the *compose* directory. A compose cluster can be selected by specifying the name of its subdirectory as the first argument to `run_test`. `run_test` will then source the `load.sh` script in the cluster's directory so it is used during the test. For manual testing, docker compose can be used normally from the compose cluster directory. Note that some clusters may not work with older versions. Ozone 1.1.0, for example, does not support SCM HA.
Docker compose cluster definitions to be used in upgrade testing are defined in the *compose* directory. A compose cluster can be selected by specifying the name of its subdirectory as the first argument to `run_test`. `run_test` will then source the `load.sh` script in the cluster's directory so it is used during the test.

## Persisting Data

Expand Down
22 changes: 0 additions & 22 deletions hadoop-ozone/dist/src/main/compose/upgrade/compose/non-ha/.env

This file was deleted.

This file was deleted.

This file was deleted.

29 changes: 0 additions & 29 deletions hadoop-ozone/dist/src/main/compose/upgrade/compose/non-ha/load.sh

This file was deleted.

27 changes: 0 additions & 27 deletions hadoop-ozone/dist/src/main/compose/upgrade/compose/om-ha/.env

This file was deleted.

Loading

0 comments on commit 69206e9

Please sign in to comment.