Skip to content

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

Description

@antmendoza

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:

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions