Skip to content

Only perform region replacement for r/w regions#7243

Merged
jmpesp merged 2 commits intooxidecomputer:mainfrom
jmpesp:region_replacement_read_write_only
Dec 18, 2024
Merged

Only perform region replacement for r/w regions#7243
jmpesp merged 2 commits intooxidecomputer:mainfrom
jmpesp:region_replacement_read_write_only

Conversation

@jmpesp
Copy link
Contributor

@jmpesp jmpesp commented Dec 12, 2024

Region replacement does not work for read-only regions (there is a check in the region_replacement_start saga that bails out if the supplied region is read-only) - this is tracked by #6172. The current plan to make read-only region replacement work is to use the same machinery as region snapshot replacements (as they're both read-only), so this commit changes the current query that finds expunged regions to replace to only return read/write regions. This can be changed back in the future if the plan for #6172 changes.

Region replacement does not work for read-only regions (there is a check
in the region_replacement_start saga that bails out if the supplied
region is read-only) - this is tracked by oxidecomputer#6172. The current plan to
make read-only region replacement work is to use the same machinery as
region snapshot replacements (as they're both read-only), so this commit
changes the current query that finds expunged regions to replace to only
return read/write regions. This can be changed back in the future if the
plan for oxidecomputer#6172 changes.
@jmpesp jmpesp requested a review from leftwo December 12, 2024 22:33
Copy link
Contributor

@leftwo leftwo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but we should wait till 12 rolls out before merging to main.

@jmpesp jmpesp enabled auto-merge (squash) December 17, 2024 19:03
@jmpesp jmpesp merged commit 7297d76 into oxidecomputer:main Dec 18, 2024
16 checks passed
@jmpesp jmpesp deleted the region_replacement_read_write_only branch December 18, 2024 18:33
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