Promise.get(timeout, unit) throws a misleading TimeoutException when the workflow is canceled

Open
#3,026 1 comment 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from temporalio/sdk-java

All issues in temporalio/sdk-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.