Skip to content

[Bug]: Composing completed SimpleFuture inputs never finishes #4550

Todo

Description

@sivakumar-mahalingam

What happened?

The compositions remain incomplete. Their join() waits on a completedFuture that has no remaining completion trigger.

Expected: A composition whose completion condition is already satisfied should immediately report isDone() as true. Empty allOf() should also be complete.

Affects Versions

master

What engines are you seeing the problem on?

AMS

How to reproduce

  1. Execute SimpleFuture input = new SimpleFuture(); input.complete();.
  2. Execute SimpleFuture combined = input.or(new SimpleFuture());.
  3. Observe that input.isDone() returns true but combined.isDone() returns false.
  4. Also evaluate SimpleFuture.allOf(Collections.emptyList()).isDone() and observe false.

Are you willing to submit a PR?

  • Yes, I am willing to submit a PR!

Code of Conduct

Activity

  1. sivakumar-mahalingam commented on Nov 26, 2026

    @sivakumar-mahalingam
    ContributorAuthor

    take

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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