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

[v23.3.x] rm_stm: do not hold producer lock for the duration of the barrier #17578

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #17472

The lock ensures that the concurrent idempotent requests do not reorder
at the raft layer, i.e if one of the requests within a concurrent batch
of dempotent requests fail to replicate, the subsequent ones fail too.

Upon hitting an OOOSN, we do not need to hold the lock as we are waiting
for the barrier as we know for a fact that request that acquired this
lock is of invalid sequence and does not affect the concurrently running
requests. Holding the lock while the barrier returns just delays legit
concurrent requests.

(cherry picked from commit 91cac71)
@vbotbuildovich vbotbuildovich added this to the v23.3.x-next milestone Apr 3, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Apr 3, 2024
@piyushredpanda
Copy link
Contributor

Known failures

@piyushredpanda piyushredpanda merged commit e6f31d7 into redpanda-data:v23.3.x Apr 3, 2024
13 of 17 checks passed
@piyushredpanda piyushredpanda modified the milestones: v23.3.x-next, v23.3.11 Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants