Repository navigation
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
|
Windows CI follow-up for On Windows with Temurin 17, all ten parameter sets of that Harness test passed on the PR head and on base Could a maintainer rerun the failed Windows job? The contributor account has read access to the upstream repository. The PR head and test assertions are unchanged. |
|
The separate deadline executor fixes starvation from blocked status reads, but a blocked completion can still starve unrelated deadlines. The single deadline thread calls |
|
Thanks @juruoO-o. I reproduced the callback starvation on the previous PR head. A non-async callback held the only deadline thread on a latch, and the second await was still pending when its outer get timed out. The updated head a558cc4 merges current main (9cfeaad) and keeps the timer limited to dispatching timeout completions. Completions run on a Runtime-owned elastic executor, isolated from status reads and other timeout callbacks. Both executors are shut down by the Runtime. The new test verifies the second await times out while the first callback is still blocked, and the original blocked-read regression still passes. The Durable Runtime build passed all 50 tests on Windows/Java 17, and documentation validation passed. Fresh Linux and Windows CI is running on the updated branch, so the previous request to rerun the old head is superseded. |
juruoO-o
left a comment
There was a problem hiding this comment.
The timer now dispatches timeout completion to a separate elastic executor. The latch tests cover a blocked status read and a blocked synchronous completion callback while a second await expires. Both executors participate in runtime shutdown. Ubuntu and Windows CI passed.
AgentScope-Java Version
2.1.0-SNAPSHOT
Description
Fixes #4507. A blocked status read can occupy the observer pool and prevent DurableTurn.await(timeout) from settling. An inline timeout callback can also stall subsequent waits if it runs on the deadline scheduler.
Use a Runtime-owned deadline scheduler to dispatch timeout completions to a separate elastic executor. The elapsed wait completes exceptionally with a TimeoutException containing its Thread/Turn identity. Status polling stays on the observer pool. Runtime close shuts both new executors down. An admitted Turn can still be queried after the wait ends.
The two regressions cover a blocked backend poll and an earlier non-async completion callback held on a latch. In both scenarios the wait times out while the blockage is held.
Verification
mvn -B -T1C -pl agentscope-durable/durable-runtime -am clean verifyon the updated branch. All 50 tests passed without skips on Windows/Java 17.AI assistance was used for investigation, implementation, and verification.
Checklist
mvn spotless:applymvn test)