Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nexus][support-bundles] Avoid looking at expunged datasets, zones #7325

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Jan 8, 2025

This PR avoids accessing expunge zones and datasets from support bundle datastore methods. Instead,
it opts to read all valid {zones,datasets}, and consider everything not in that set as "in-need of replacement".

This means that expunged and pruned {zones,datasets} will both be treated the same. Added a test for this
behavior with a dataset that gets fully removed, skipping the expungement stage.

Fixes #7319

@@ -2447,7 +2447,7 @@ CREATE TABLE IF NOT EXISTS omicron.public.support_bundle (
-- for allocation changes to allocate more intelligently.
CREATE UNIQUE INDEX IF NOT EXISTS one_bundle_per_dataset ON omicron.public.support_bundle (
dataset_id
);
) WHERE dataset_id IS NOT NULL;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is necessary to avoid a full-table scan

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.

support_bundle_fail_expunged should not look at expunged datasets, zones
1 participant