-
Notifications
You must be signed in to change notification settings - Fork 882
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
Switch force-replication to scan over visibility #2386
Conversation
service/worker/migration/workflow.go
Outdated
for i := startIndex; i < len(request.Executions); i++ { | ||
rateLimiter.Wait(ctx) | ||
we := request.Executions[i] | ||
err := a.genReplicationTaskForOneWorkflow(ctx, definition.NewWorkflowKey(request.NamespaceID, we.WorkflowId, we.RunId)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
err := a.genReplicationTaskForOneWorkflow(ctx, definition.NewWorkflowKey(request.NamespaceID, we.WorkflowId, we.RunId)) | |
err := a.generateWorkflowReplicationTask(ctx, definition.NewWorkflowKey(request.NamespaceID, we.WorkflowId, we.RunId)) |
please...
|
||
defaultListWorkflowsPageSize = 1000 | ||
defaultPageCountPerExecution = 200 | ||
maxPageCountPerExecution = 1000 | ||
|
||
minimumAllowedLaggingSeconds = 5 | ||
minimumHandoverTimeoutSeconds = 30 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a part of this PR, but why not time.Duration
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is easier to write in JSON format just a number than time.Duration. But yes, it can be updated to use time.Duration.
What changed?
Scan visibility instead of core execution table.
Why?
Scan table API on SQL persistence is not implemented and also to avoid tombstone issue on Cassandra.
How did you test it?
Manual test. Also integration test (will be in follow up PR).
Potential risks
No
Is hotfix candidate?
No