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

persist-cli: Add force_downgrade_since and force_downgrade_upper options to finalize shard #27031

Merged

Conversation

ParkMyCar
Copy link
Member

This PR adds two new options to the persistcli admin finalize subcommand, --force-downgrade-since and --force-downgrade-upper. This will allow us to forcibly finalize shards.

I tested this manually by starting environmentd locally, creating a table, then CTRL+C the process and waiting for the leased readers to expire. I was then able to successfully tombstone the related shard.

Motivation

Cleanup unnecessary shards

Checklist

@ParkMyCar ParkMyCar requested a review from bkirwi May 10, 2024 14:53
@ParkMyCar ParkMyCar requested a review from a team as a code owner May 10, 2024 14:53
@ParkMyCar ParkMyCar force-pushed the persist-cli/force-finalize-shards branch from 44d6a15 to c1d1e8b Compare May 10, 2024 14:54
Copy link
Contributor

@bkirwi bkirwi left a comment

Choose a reason for hiding this comment

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

Nice! Hopefully we don't need it again, but if we do this will be very handy!

"opaque changed, expected: {expected_opaque:?}, actual: {actual_opaque:?}"
)
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd be kind of interested why it was easier to use the high-level interfaces for the writer and the low-level ones for the reader, but it's definitely not a problem!

@ParkMyCar ParkMyCar merged commit 66237fd into MaterializeInc:main May 20, 2024
73 checks passed
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.

None yet

2 participants