Skip to content

IGNITE-28303 Clients: do not retry authentication errors#7955

Merged
ptupitsyn merged 12 commits intoapache:mainfrom
ptupitsyn:ignite-28303
Apr 14, 2026
Merged

IGNITE-28303 Clients: do not retry authentication errors#7955
ptupitsyn merged 12 commits intoapache:mainfrom
ptupitsyn:ignite-28303

Conversation

@ptupitsyn
Copy link
Copy Markdown
Contributor

@ptupitsyn ptupitsyn commented Apr 8, 2026

Fix authn error handing in .NET and Java clients:

  • Propagate authn exceptions correctly
  • Do not invoke RetryPolicy for those errors

https://issues.apache.org/jira/browse/IGNITE-28303

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses IGNITE-28303 by ensuring the Java thin client does not retry connection attempts when the server rejects authentication (e.g., invalid credentials), avoiding repeated rejected sessions and unnecessary load.

Changes:

  • Add a regression test asserting that invalid credentials result in a single rejected session (no retries even with a retry policy configured).
  • Adjust client channel handshake/response completion logic to propagate server-side TraceableExceptions (including auth failures) instead of re-wrapping them as connection/handshake errors that can trigger retries.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
modules/client/src/test/java/org/apache/ignite/client/ClientAuthenticationTest.java Adds a test verifying bad credentials are not retried (server sees exactly one rejected session).
modules/client/src/main/java/org/apache/ignite/internal/client/TcpClientChannel.java Propagates TraceableException from response completion/handshake to prevent retry logic from treating auth failures as retriable connection errors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ptupitsyn ptupitsyn requested a review from isapego April 14, 2026 11:25
@ptupitsyn ptupitsyn merged commit 4d034f4 into apache:main Apr 14, 2026
9 checks passed
@ptupitsyn ptupitsyn deleted the ignite-28303 branch April 14, 2026 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants