temporalio / temporalio/temporal

GetMutableStateRequest is used in poll mutable state

Open
#4,958 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Is your feature request related to a problem? Please describe.
GetMutableStateRequest is used in poll mutable state.
code: https://github.com/temporalio/temporal/blob/747b30b454fedeb55fdbc52ce8ad9bfe43e99adb/service/history/api/get_workflow_util.go#L48

Describe the solution you'd like
GetMutableState should just return the current version of mutable state, no branch token nor version related data is required in the request.
PollMutableState contains a token which may include the version history item data and the corresponding branch token

Describe alternatives you've considered

Additional context

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 in service/history/api/get_workflow_util.go at the linked GetMutableStateRequest usage. Compare the request data with the PollMutableState token described in the issue, then trace the affected callers and request handling. Done means GetMutableState returns only the current mutable-state version while PollMutableState retains its version-history and branch-token data.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend, distributed-systems
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.