Implement proper parallel flow of the rebalance execution#2243
Merged
whitehawk merged 13 commits intofeature/ADBDEV-6608from Feb 5, 2026
Merged
Implement proper parallel flow of the rebalance execution#2243whitehawk merged 13 commits intofeature/ADBDEV-6608from
whitehawk merged 13 commits intofeature/ADBDEV-6608from
Conversation
hilltracer
reviewed
Feb 3, 2026
bimboterminator1
approved these changes
Feb 4, 2026
hilltracer
approved these changes
Feb 4, 2026
hilltracer
left a comment
There was a problem hiding this comment.
LGTM. Finally, behave tests are passed
1 feature passed, 0 failed, 26 skipped
32 scenarios passed, 0 failed, 808 skipped
1274 steps passed, 0 failed, 13181 skipped, 0 undefined
Took 550m51.963s
make: Leaving directory '/home/gpadmin/gpdb_src/gpMgmt'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement proper parallel flow of the rebalance execution
Problem description:
Need to update rebalance execution flow in a way that it can support parallel
segment movement, and at the same time the flow must consider following
limitations:
storage so that failed steps may be retried, rollbacked or cancelled (rollback,
retry or cancel of particular movement will be implemented later in a separate
patch);
approval once we implement interactive mode (later in a separate patch);
primary-mirror swap scenario using 3rd intermediate, transitional host. It means
that the executor can't swap the order of mirror and primary movements.
Therefore, this patch:
with the movement definition. List of such steps is now saved to the rebalance
schema.
approval will be later requested from the user, are added. And the state machine
can switch between segment processing and approval request as many times as
required, till all steps are processed. Execution of the rebalance steps is
performed in batches. Each batch is comprised from the same type of rebalance
steps, without duplication of dbids.
'gpmovemirrors'/'gprecoverseg'.