temporalio / temporalio/sdk-java

Test server timeouts improperly set to 10 years when not user set

Open
#1,426 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

test server
Dominant language
Java
Stars
433
Forks
249
Avg merge
5d 6h
Merged PRs (30d)
26

Description

Expected Behavior

Current server doesn't set WorkflowExecutionStartedEventAttributes.workflow_execution_timeout or PollActivityTaskQueueResponse.schedule_to_close_timeout if the user didn't

Actual Behavior

Test server sets these to 10 years when not set. While this may make sense internally to bound the timer, e.g. the API for https://www.javadoc.io/static/io.temporal/temporal-sdk/1.16.0/io/temporal/activity/ActivityInfo.html#getScheduleToCloseTimeout() should be accurate.

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.

Research direction

Start by tracing the test server's handling of WorkflowExecutionStartedEventAttributes.workflow_execution_timeout and PollActivityTaskQueueResponse.schedule_to_close_timeout. Verify the behavior when the user leaves each timeout unset, then confirm the exposed ActivityInfo API reports the unset value rather than a ten-year default.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.