Skip to content

Register before re-checking the count to fix missed futures - #635

Merged
dmlloyd merged 1 commit into
smallrye:mainfrom
holly-cummins:fix-high-load-process-hang
Nov 24, 2026
Merged

dmlloyd merged 1 commit into
smallrye:mainfrom
holly-cummins:fix-high-load-process-hang

Conversation

@holly-cummins

@holly-cummins holly-cummins commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #633

Concurrency is hard, so I put this fix forward with caution; it's my agent's code. I know my agent is better at concurrent programming than me, which is why I'm submitting it, but do check it carefully (sorry!).

It does fix the reproducer attached to #633; at the end of the run, 0 jobs are left un-closed. I wondered about including it as a test but decided it might be an annoying kind of thing to run since it's so non-deterministic.

@dmlloyd dmlloyd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks! I think the fix correctly resolves a real race.

@dmlloyd

dmlloyd commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Could you please sign the commit?

@holly-cummins
holly-cummins force-pushed the fix-high-load-process-hang branch from 2fe69c4 to a7115a4 Compare November 24, 2026 16:47
@holly-cummins

Copy link
Copy Markdown
Contributor Author

Could you please sign the commit?

Done!

@dmlloyd
dmlloyd merged commit eaafa8f into smallrye:main Nov 24, 2026
6 of 8 checks passed
@github-actions github-actions Bot added this to the 2.22.0 milestone Nov 24, 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.

ProcessRunner: run() and runAsync() can wait forever when a process exits quickly

2 participants