Skip to content

Potential bugs -- Workflow.currentTimeMillis() shouldn't change during replay  #669

Open
@longquanzheng

Description

@longquanzheng

See
https://github.com/uber/cadence-java-client/blob/cb5d6ecaeb206044213d9ab2cf45bd74d6f8b654/src/main/java/com/uber/cadence/internal/replay/ClockDecisionContext.java#L185

During replay, the value passed in timer(by Workfllow.sleep() ) can impact Workflow.currentTimeMillis()` if the firing time value is later than current time.

This could cause issue for replay because the value is different from non-replay mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions