Skip to content

kvserver: don't allow cancellation of RemoveReplica call#155228

Draft
stevendanna wants to merge 1 commit intocockroachdb:masterfrom
stevendanna:ssd/no-cancel
Draft

kvserver: don't allow cancellation of RemoveReplica call#155228
stevendanna wants to merge 1 commit intocockroachdb:masterfrom
stevendanna:ssd/no-cancel

Conversation

@stevendanna
Copy link
Copy Markdown
Collaborator

It appears we can get a cancellation from Pebble during RemoveReplica. We've seen this before in #155121. Here, we construct a context that can't be cancelled.

TODO: Should we push this down into RemoveReplica, can we ever handle RemoveReplica failing?

TODO: Is there anywhere else that might be impacted by pebble being able to error from context cancellation.

Informs #140958
Fixes #155121

Release note: None

It appears we can get a cancellation from Pebble during RemoveReplica.
We've seen this before in cockroachdb#155121. Here, we construct a context that
can't be cancelled.

TODO: Should we push this down into RemoveReplica, can we ever handle
RemoveReplica failing?

TODO: Is there anywhere else that might be impacted by pebble being able
to error from context cancellation.

Informs cockroachdb#140958
Fixes cockroachdb#155121

Release note: None
@blathers-crl
Copy link
Copy Markdown

blathers-crl Bot commented Oct 10, 2025

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants