-
Notifications
You must be signed in to change notification settings - Fork 97
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
adding visibility into current mirror state #657
Conversation
If protos are breaking, could also remove deprecated fields |
if err != nil { | ||
return nil, err | ||
} | ||
_, err = h.ShutdownFlow(ctx, &protos.ShutdownRequest{ |
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.
Calling ShutdownFlow doesn't seem related to visibility. Is the purpose of this call to reduce latency to start terminating?
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.
this is to preserve existing behavior that waits till the workflow terminates before returning, while also ensuring we go from STATUS_TERMINATING -> STATUS_TERMINATED
@@ -414,7 +414,7 @@ func (s *PeerFlowE2ETestSuiteSF) Test_Toast_SF(t *testing.T) { | |||
// in a separate goroutine, wait for PeerFlowStatusQuery to finish setup | |||
// and execute a transaction touching toast columns | |||
go func() { | |||
e2e.SetupCDCFlowStatusQuery(env, connectionGen) | |||
e2e.SetupCDCFlowStateQuery(env, connectionGen) |
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.
Moving renaming into a separate PR would make this easier to review
PR description should explain why cdc flow SetupComplete/SnapshotComplete bools are changed into Was there a correctness issue? Was it not allowing enough info for pausing/terminating to be shown while in progress? Is there future improvements which this change is considering? |
e6d5827
to
24821ef
Compare
24821ef
to
e720a67
Compare
breaks some protos and routes for clearer naming conventions, UI needs to be updated accordingly removes SetupComplete and SnapshotComplete booleans in CDCFlowState in favour of a CurrentFlowState that expresses all states of a CDC workflow in a single variable. rebase of PR: #657
breaks some protos and routes for clearer naming conventions, UI needs to be updated accordingly removes SetupComplete and SnapshotComplete booleans in CDCFlowState in favour of a CurrentFlowState that expresses all states of a CDC workflow in a single variable. rebase of PR: #657 --------- Co-authored-by: Kevin Biju <[email protected]>
breaks some protos and routes for clearer naming conventions, UI needs to be updated accordingly
removes
SetupComplete
andSnapshotComplete
booleans in CDCFlowState in favour of a CurrentFlowState that expresses all states of a CDC workflow in a single variable.