Skip to content

KAFKA-19476: Correcting max delivery on write state failure and lock timeout#20310

Merged
apoorvmittal10 merged 3 commits into
apache:trunkfrom
apoorvmittal10:KAFKA-19476-lock-timeout
Aug 7, 2025
Merged

KAFKA-19476: Correcting max delivery on write state failure and lock timeout#20310
apoorvmittal10 merged 3 commits into
apache:trunkfrom
apoorvmittal10:KAFKA-19476-lock-timeout

Conversation

@apoorvmittal10

@apoorvmittal10 apoorvmittal10 commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

Fixing max delivery check on acquisition lock timeout and write state
RPC failure.

When acquisition lock is already timed out and write state RPC failure
occurs then we need to check if records need to be archived. However
with the fix we do not persist the information, which is relevant as
some records may be archived or delivery count is bumped. The
information will be persisted eventually.

The persister call has failed already hence issuing another persister
call due to a failed persister call earlier is not correct. Rather let
the data persist in future persister calls.

Reviewers: Manikumar Reddy manikumar.reddy@gmail.com, Abhinav Dixit
adixit@confluent.io

@github-actions github-actions Bot added triage PRs from the community core Kafka Broker KIP-932 Queues for Kafka labels Aug 5, 2025
@apoorvmittal10 apoorvmittal10 added ci-approved and removed triage PRs from the community labels Aug 5, 2025
Comment thread core/src/test/java/kafka/server/share/SharePartitionTest.java Outdated

@adixitconfluent adixitconfluent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overall LGTM, Just a minor comment

@apoorvmittal10 apoorvmittal10 merged commit dc96e29 into apache:trunk Aug 7, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved core Kafka Broker KIP-932 Queues for Kafka

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants