Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Specific task queue partition name exposed in event history #4557

Closed
tsurdilo opened this issue Jun 28, 2023 · 0 comments · Fixed by #4565
Closed

Specific task queue partition name exposed in event history #4557

tsurdilo opened this issue Jun 28, 2023 · 0 comments · Fixed by #4565

Comments

@tsurdilo
Copy link
Contributor

In some cases service does not write the task queue name but the specific task queue partition into event history, for example:

    "taskQueue": {
       "name": "/_sys/myTaskQueueName/2",
       "kind": "Normal"
    },

Server team pointed to possible cause:

_, workflowTask, err = mutableState.AddWorkflowTaskStartedEvent(
scheduledEventID,
requestID,
req.PollRequest.TaskQueue,
req.PollRequest.Identity,
)

and
https://github.com/temporalio/temporal/blob/f51b96d9248701dbb3f7c64bbb984404558b6d3c/service/history/workflow/workflow_task_state_machine.go#L4[…]67

Note this does not fail the workflow task, workers are still able to pick it up, but it is confusing when looking at event history and also user can think its a bug or issue with service

@dnr dnr closed this as completed in #4565 Aug 8, 2023
dnr added a commit that referenced this issue Aug 8, 2023
…eduledEvent (#4565)

**What changed?**
In some cases we write a new WorkflowTaskScheduledEvent right before a
WorkflowTaskStartedEvent in RecordWorkflowTaskStarted. In that case, the
task queue name comes from RecordWorkflowTaskStarted, but that name
comes from matching and may be a specific task queue partition, not the
base name. We should write only the base name.

**Why?**
Fixes #4557

**How did you test it?**
Unit test
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant