Skip to content

[bindings] map RpcError to NetworkException for Java parity#519

Merged
leekeiabstraction merged 1 commit into
apache:mainfrom
fresh-borzoni:fix/rpc-error-as-network-exception
May 3, 2026
Merged

[bindings] map RpcError to NetworkException for Java parity#519
leekeiabstraction merged 1 commit into
apache:mainfrom
fresh-borzoni:fix/rpc-error-as-network-exception

Conversation

@fresh-borzoni
Copy link
Copy Markdown
Member

@fresh-borzoni fresh-borzoni commented May 1, 2026

Summary

closes #520

Transport failures (Error::RpcError) were surfacing in Python / C++ / Elixir bindings as CLIENT_ERROR_CODE = -2, hiding their retriability.

Java wraps the same kind of failure into NetworkException (code 1, retriable). This PR does the same.

@fresh-borzoni
Copy link
Copy Markdown
Member Author

@leekeiabstraction @charlesdong1991 PTAL 🙏

Copy link
Copy Markdown
Contributor

@charlesdong1991 charlesdong1991 left a comment

Choose a reason for hiding this comment

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

Nice catch!!

Nit: Not sure about this Cargo.lock change, this code change doesn't have dependency changes, so shouldn't need?

@charlesdong1991
Copy link
Copy Markdown
Contributor

ohhhh, it's from that metrics PR!!

My bad, forgot to sync the lock 🤦 thanks for the fix!!

@fresh-borzoni
Copy link
Copy Markdown
Member Author

@charlesdong1991 Ty for the review, there is chore PR #518, we just need to merge and then I'll rebase 👍

@fresh-borzoni fresh-borzoni force-pushed the fix/rpc-error-as-network-exception branch 2 times, most recently from c024773 to cea2e22 Compare May 3, 2026 11:31
@fresh-borzoni fresh-borzoni force-pushed the fix/rpc-error-as-network-exception branch from cea2e22 to cc6de86 Compare May 3, 2026 11:32
@fresh-borzoni
Copy link
Copy Markdown
Member Author

rebased and updated elixir tests

Copy link
Copy Markdown
Contributor

@leekeiabstraction leekeiabstraction left a comment

Choose a reason for hiding this comment

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

TY for the PR. LGTM!

@leekeiabstraction leekeiabstraction merged commit a3a3a50 into apache:main May 3, 2026
7 checks passed
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.

[bindings] map RpcError to NetworkException for Java parity

3 participants