FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix and improve EngineRunning state by andimarek · Pull Request #3911 · graphql-java/graphql-java · GitHub

Fix and improve EngineRunning state - #3911

Merged
bbakerman merged 1 commit into
masterfrom
engine-run-fix-end-engine
Apr 14, 2025
Merged

Fix and improve EngineRunning state#3911
bbakerman merged 1 commit into
masterfrom
engine-run-fix-end-engine

Conversation

andimarek commented Apr 10, 2025
edited
Loading

Copy link
Copy Markdown
Member

Because the engine state updates are side effects, it can happen that the last "NOT_RUNNING" happens after the overall CompletableFuture<ExecutionResult> is completed.
As this is very counterintuitive this PR fixes that edge case with observing the CompletableFuture<ExecutionResult> explicitly.

It also make explicit states for Start and finish the engine.

fixes cases where the CF<ER> is finished before the observer is called for the last time

Copy link
Copy Markdown
Contributor

Test Results

  313 files    313 suites   53s ⏱️
3 588 tests 3 583 ✅ 5 💤 0 ❌
3 677 runs  3 672 ✅ 5 💤 0 ❌

Results for commit 71c8032.

bbakerman merged commit 04a359a into master Apr 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL