Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add sync workflow state task #2853

Merged
merged 8 commits into from
May 25, 2022
Merged

Conversation

yux0
Copy link
Contributor

@yux0 yux0 commented May 16, 2022

What changed?
Add sync workflow state task

Why?
To replicate workflow state

How did you test it?
TODO: Integration test

Potential risks

Is hotfix candidate?

@yux0 yux0 marked this pull request as ready for review May 20, 2022 18:59
@yux0 yux0 requested a review from a team as a code owner May 20, 2022 18:59
common/persistence/serialization/task_serializer.go Outdated Show resolved Hide resolved
SyncShardStatusTaskAttributes sync_shard_status_task_attributes = 5;
SyncActivityTaskAttributes sync_activity_task_attributes = 6;
// TODO: deprecate once kafka deprecation is done.
HistoryMetadataTaskAttributes history_metadata_task_attributes = 7;
HistoryTaskV2Attributes history_task_v2_attributes = 8;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it possible to rename this field?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. We can do it. I will do it in a separate PR.

workflowID := taskInfo.WorkflowID
runID := taskInfo.RunID
taskID := taskInfo.TaskID
return p.processReplication(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not relevant to this PR, but I think we also need to handle namespace not found error inside processReplication(). Probably also in replication executor on receiver end.

service/history/workflow/task_generator.go Outdated Show resolved Hide resolved
@yux0 yux0 merged commit df78a57 into temporalio:master May 25, 2022
@yux0 yux0 deleted the sync-wf-state-task branch May 25, 2022 05:43
Sushisource pushed a commit to Sushisource/temporal that referenced this pull request Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants