Skip to content

Conversation

@wenyihu6
Copy link
Contributor

@wenyihu6 wenyihu6 commented Aug 26, 2025

Previously, we called bq.replicaCanBeProcessed with acquireLeaseIfNeeded = false
before invoking bq.processReplica, which itself calls replicaCanBeProcessed with
acquireLeaseIfNeeded = true. This looks incorrect and did not exist prior to
c9cf068. It’s unclear how often lease renewal is actually going to be helpful
here, but I removed these two calls since they were newly introduced and seem
unintentional.

Informs: #151292
Release note: none

@blathers-crl
Copy link

blathers-crl bot commented Aug 26, 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
Member

This change is Reviewable

Previously, we called bq.replicaCanBeProcessed with acquireLeaseIfNeeded = false
before invoking bq.processReplica, which itself calls replicaCanBeProcessed with
acquireLeaseIfNeeded = true. This looks incorrect and did not exist prior to
cockroachdb@c9cf068. It’s unclear how often lease renewal is actually going to be helpful
here, but I removed these two calls since they were newly introduced and seem
unintentional.

Informs: cockroachdb#151292
Release note: none
@wenyihu6 wenyihu6 force-pushed the removereplicacanberepro branch from 72773d3 to adb3040 Compare August 28, 2025 15:08
@wenyihu6 wenyihu6 changed the title kvserver: remove replica can be processed kvserver: remove bq.replicaCanBeProcessed right before bq.processReplica Aug 28, 2025
@wenyihu6 wenyihu6 marked this pull request as ready for review August 28, 2025 15:08
@wenyihu6 wenyihu6 requested a review from a team as a code owner August 28, 2025 15:08
@wenyihu6 wenyihu6 requested review from arulajmani, pav-kv and tbg August 28, 2025 15:08
Copy link
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

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

Good catch!

@tbg reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @arulajmani and @pav-kv)

@wenyihu6
Copy link
Contributor Author

TFTR!

bors r=tbg

@craig
Copy link
Contributor

craig bot commented Aug 28, 2025

@craig craig bot merged commit 38a982a into cockroachdb:master Aug 28, 2025
24 checks passed
@wenyihu6 wenyihu6 deleted the removereplicacanberepro branch August 28, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants