Promise.get(timeout, unit) throws a misleading TimeoutException when the workflow is canceled
@Quinn-With-Two-Ns is already working on this.
Since Aug 25, 2026.
Assessment
This issue has not been assessed yet.
Description
Expected Behavior
Actual Behavior
cancelling a workflow that is blocked in Promise.get(timeout, unit) ends the wait immediately and reports it as a timeout
Steps to Reproduce the Problem
Attached you can find the reproduction
ExternalCancelRacingChildStartTest.java
Specifications
- Version: temporal sdk 1.38
- Platform:
- Dominant language
- Java
- Stars
- 433
- Forks
- 249
- Avg merge
- 5d 6h
- Merged PRs (30d)
- 26
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from temporalio/sdk-java
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
temporalio/sdk-java#2676 · 8 comments · 2 reactions ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
temporalio/sdk-java#1825 ·
-
test server
Difficulty 4/5 3-5 days Newbie friendliness 42/100
temporalio/sdk-java#3088 · 2 comments ·
-
temporalio/sdk-java#3059 · 1 assignee ·
-
enhancement
temporalio/sdk-java#3058 · 1 assignee ·
All issues in temporalio/sdk-java
Similar issues
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
1.0.0-alpha2 Type/Improvement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wso2/dpdp-accelerator#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficulty 2/5 1-3 hours Newbie friendliness 65/100