Skip to content

Conversation

@michaely520
Copy link
Contributor

@michaely520 michaely520 commented Oct 20, 2025

What changed?

No-oping close transfer tasks for SyncWorkflowState tasks

Why?

We need non state based replication to be eligible for this optimization.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

go test -v -tags test_dep ./tests/xdc -run TestStreamBasedReplicationTestSuite/DisableTransitionHistory/TestCloseTransferTaskAckedReplication -timeout 10m -count=1

shows

2025-10-20T08:15:08.290-0700 info Skipping close transfer task generation - already acked on active cluster {"cluster-name": "standby_aadnd", "host": "127.0.0.1:57179", "shard-id": 1, "address": "127.0.0.1:57179", "wf-namespace-id": "e550305e-0b43-4bcd-a490-8e3223f51ce1", "wf-id": "test-replication-e2c094d3-c34f-42d9-a166-a967d4e7f602", "wf-run-id": "019a0230-299a-74ba-a31f-ac247c05f2b9", "logging-call-at": "/Users/michaely520/projects/temporal/service/history/workflow/task_generator.go:206"} stream_based_replication_test.go:975: Verified IsCloseTransferTaskAcked and IsForceReplication flags in SyncWorkflowStateTask

@michaely520 michaely520 requested review from a team as code owners October 20, 2025 15:18
@michaely520 michaely520 changed the title No-op close transfer for SyncWorkflowState No-op close transfer task for SyncWorkflowState Oct 20, 2025
@michaely520 michaely520 merged commit 70dcf17 into main Oct 28, 2025
57 checks passed
@michaely520 michaely520 deleted the workflow-state-replication branch October 28, 2025 18:55
chaptersix pushed a commit that referenced this pull request Oct 30, 2025
## What changed?
No-oping close transfer tasks for SyncWorkflowState tasks


## Why?
We need non state based replication to be eligible for this
optimization.


## How did you test it?
- [x] built
- [x] run locally and tested manually
- [x] covered by existing tests
- [ ] added new unit test(s)
- [x] added new functional test(s)

`go test -v -tags test_dep ./tests/xdc -run
TestStreamBasedReplicationTestSuite/DisableTransitionHistory/TestCloseTransferTaskAckedReplication
-timeout 10m -count=1`

shows

`2025-10-20T08:15:08.290-0700 info Skipping close transfer task
generation - already acked on active cluster {"cluster-name":
"standby_aadnd", "host": "127.0.0.1:57179", "shard-id": 1, "address":
"127.0.0.1:57179", "wf-namespace-id":
"e550305e-0b43-4bcd-a490-8e3223f51ce1", "wf-id":
"test-replication-e2c094d3-c34f-42d9-a166-a967d4e7f602", "wf-run-id":
"019a0230-299a-74ba-a31f-ac247c05f2b9", "logging-call-at":
"/Users/michaely520/projects/temporal/service/history/workflow/task_generator.go:206"}
stream_based_replication_test.go:975: Verified IsCloseTransferTaskAcked
and IsForceReplication flags in SyncWorkflowStateTask`
@chaptersix chaptersix mentioned this pull request Nov 19, 2025
5 tasks
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.

3 participants