Skip to content

Conversation

@gaurav-narula
Copy link
Contributor

@gaurav-narula gaurav-narula commented Dec 12, 2025

The handler in RPCProducerIdManager doesn't handle authentication
exception and version mismatch exceptions gracefully.

This change ensures we retry on such failures and adds unit tests for
these scenarios.

@github-actions github-actions bot added triage PRs from the community transactions Transactions and EOS labels Dec 12, 2025
@gaurav-narula
Copy link
Contributor Author

gaurav-narula commented Dec 12, 2025

CC: @chia7712 @OmniaGM

Edit: I'll raise a separate PR to backport to 3.9 as that still uses Scala

@OmniaGM
Copy link
Contributor

OmniaGM commented Dec 12, 2025

Thanks @gaurav-narula for the fix, It looks okay for me let's wait for the pipeline to finish first

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@gaurav-narula thanks for this patch

…cerIdsResponse

The handler in `RPCProducerIdManager` doesn't handle authentication
exception and version mismatch exceptions gracefully.

This change ensures we retry on such failures and adds unit tests for
these scenarios.
@chia7712
Copy link
Member

@gaurav-narula could you please file the patch to 3.9 in addition to trunk?

@gaurav-narula
Copy link
Contributor Author

Thanks for the feedback @chia7712 . I've addressed your review comment and also raised #21138 for backporting to 3.9

@github-actions github-actions bot removed the triage PRs from the community label Dec 13, 2025

private final int brokerId;
private final Time time;
protected final Time time;
Copy link
Member

Choose a reason for hiding this comment

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

nit: package-private is sufficient here

}

protected void handleAllocateProducerIdsResponse(AllocateProducerIdsResponse response) {
protected void handleUnsuccessfulResponse() {
Copy link
Member

Choose a reason for hiding this comment

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

nit: private should suffice

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

Labels

ci-approved transactions Transactions and EOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants