Skip to content

[java] Isolate batch peer decoding failures - #1586

Merged
brandur merged 2 commits into
masterfrom
brandur-java-batch-decode
Nov 6, 2026
Merged

brandur merged 2 commits into
masterfrom
brandur-java-batch-decode

Conversation

@brandur

@brandur brandur commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🤖 A malformed batch peer currently aborts the whole Java batch. Retain each peer's decoding error separately so valid peers reach the handler and the failed peer keeps its own error through handler failures and completion retries. Return the total claim count alongside usable peers so Pro can enforce its batch limit.

This changes the internal companion-attempt API consumed by River Pro #406. Existing peer cancellation and timeout behavior is preserved. Go, Rust, JavaScript, and Ruby already isolate their corresponding peer decoding failures.

Validated with make test/java/sqlite, RIVER_TEST_DATABASE_URL=postgres://localhost/postgres make test/java/postgres, and make lint/java on JDK 21. Regression coverage includes argument, row, pilot, and resumable metadata failures, later handler failures, retried durable completion, and the existing cancellation tests.

@brandur

brandur commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-06T14:58:18.200904Z 25d21d7 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 25d21d7233

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brandur
brandur merged commit 1b26d3b into master Nov 6, 2026
30 checks passed
@brandur
brandur deleted the brandur-java-batch-decode branch November 6, 2026 15:01
@brandur brandur mentioned this pull request Nov 6, 2026
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.

1 participant