Skip to content

RPC - Don't close process.getInputStream() on failure#6541

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-dont-close-rpc-streams
Jan 15, 2026
Merged

RPC - Don't close process.getInputStream() on failure#6541
greg-at-moderne merged 1 commit intomainfrom
greg-dont-close-rpc-streams

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Jan 15, 2026

What's changed?

Slightly changing the handling of unhappy path in the RPC framework.
Namely, when printing out stdout and stderr in case of errors, don't close the input streams.
Also adding slightly more defensive reporting of errors.

What's your motivation?

Make a step towards understanding the random failures of RPC in tests manifesting themselves as:

java.lang.IllegalStateException: JavaScript RPC process shut down early with exit code 217

@greg-at-moderne greg-at-moderne self-assigned this Jan 15, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Jan 15, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review January 15, 2026 11:55
@greg-at-moderne greg-at-moderne merged commit 5087896 into main Jan 15, 2026
2 checks passed
@greg-at-moderne greg-at-moderne deleted the greg-dont-close-rpc-streams branch January 15, 2026 11:55
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Jan 15, 2026
greg-at-moderne added a commit that referenced this pull request Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant