Skip to content

Complete partial results when a field fails with the cancellation - #4574

Merged
bbakerman merged 1 commit into
graphql-java:masterfrom
AlexandreCarlton:fix-wait-for-pending-cancel-hang
Dec 6, 2026
Merged

bbakerman merged 1 commit into
graphql-java:masterfrom
AlexandreCarlton:fix-wait-for-pending-cancel-hang

Conversation

@AlexandreCarlton

Copy link
Copy Markdown
Contributor

If a field fails with AbortExecutionException between when we cancel() and when we harvest partial results, join() throws inside the harvest and the execution never completes. We instead harvest this field a null, and complete the result exceptionally for any other failure.

For full transparency, this was drafted with Claude Code.

If a field fails with `AbortExecutionException` between when we
`cancel()` and when we harvest partial results, `join()` throws inside
the harvest and the execution never completes. We instead harvest this
field a `null`, and complete the result exceptionally for any other
failure.

For full transparency, this was drafted with Claude Code.
@github-actions

github-actions Bot commented Dec 6, 2026

Copy link
Copy Markdown
Contributor

Test Report

Test Results

Java Version Total Passed Failed Errors Skipped
Java 17 6393 (+7 🟢) 6338 (+7 🟢) 0 (±0) 0 (±0) 55 (±0)
Java 21 6393 (+7 🟢) 6338 (+7 🟢) 0 (±0) 0 (±0) 55 (±0)
Java 25 6393 (+7 🟢) 6338 (+7 🟢) 0 (±0) 0 (±0) 55 (±0)
jcstress 32 (±0) 32 (±0) 0 (±0) 0 (±0) 0 (±0)
Total 19211 (+21 🟢) 19046 (+21 🟢) 0 (±0) 0 (±0) 165 (±0)

Code Coverage (Java 25)

Metric Covered Missed Coverage vs Master
Lines 26850 2695 90.9% ±0.0%
Branches 7705 1170 86.8% ±0.0%
Methods 7435 1090 87.2% ±0.0%

Changed Class Coverage (3 classes)

Class Line Branch Method
g.e.Async +3.1% 🟢 +0.4% 🟢 +2.1% 🟢
g.e.Async
$Many
±0.0% ±0.0% +0.9% 🟢
g.e.Async
$Single
±0.0% ±0.0% +1.7% 🟢

Full HTML report: build artifact jacoco-html-report

Updated: 2026-12-06 11:43:33 UTC

@bbakerman
bbakerman merged commit d0233a5 into graphql-java:master Dec 6, 2026
9 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.

2 participants