Skip to content

[hotfix] Propagate action task Errors from mailbox#880

Merged
wenjin272 merged 1 commit into
apache:mainfrom
wenjin272:throw-error
Jul 8, 2026
Merged

[hotfix] Propagate action task Errors from mailbox#880
wenjin272 merged 1 commit into
apache:mainfrom
wenjin272:throw-error

Conversation

@wenjin272

@wenjin272 wenjin272 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Catch Throwable in mailbox-submitted action task processing so Errors are rethrown through the mailbox and fail the task visibly instead of remaining in a Future while processing keys stay in-flight.

Purpose of change

Catch Throwable in mailbox-submitted action task processing so Errors are rethrown through the mailbox and fail the task visibly instead of remaining in a Future while processing keys stay in-flight.

Tests

ut

API

no

Documentation

  • doc-needed
  • doc-not-needed
  • doc-included

@github-actions github-actions Bot added doc-not-needed Your PR changes do not impact docs fixVersion/0.4.0 priority/major Default priority of the PR or issue. and removed doc-not-needed Your PR changes do not impact docs labels Jul 7, 2026

@weiqingy weiqingy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the PR — one optional note on the test fixture inline.


public static class LinkageErrorAction {
static {
if (System.nanoTime() >= 0) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could we make this linkage-error fixture deterministic? System.nanoTime() is permitted to return a negative value, so on a JVM where that happens the static initializer would complete normally and this regression test would fail for environmental reasons instead of exercising the intended Error-propagation path. A deterministic guard like if (true) (or an alwaysTrue() helper) keeps the fixture focused on the LinkageError path.

Catch Throwable in mailbox-submitted action task processing so Errors are rethrown through the mailbox and fail the task visibly instead of remaining in a Future while processing keys stay in-flight.

Co-authored-by: Codex <codex@openai.com>

@weiqingy weiqingy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for resolving the comment. LGTM!

@wenjin272 wenjin272 merged commit 5880161 into apache:main Jul 8, 2026
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc-not-needed Your PR changes do not impact docs fixVersion/0.4.0 priority/major Default priority of the PR or issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants