-
Notifications
You must be signed in to change notification settings - Fork 22
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
issue-745: Set timeoutSeconds to 50sec #746
base: main
Are you sure you want to change the base?
Conversation
err = ss.DBOps[candidate].WaitForGTID(ctx, gtid, failOverTimeoutSeconds) | ||
err = ss.DBOps[candidate].WaitForGTID(ctx, gtid, timeoutSeconds) | ||
if err != nil { | ||
return err | ||
} |
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.
I think we can loop this if err
is dbop.ErrTimeout
.
https://github.com/cybozu-go/moco/blob/main/pkg/dbop/replication.go#L69
err = ss.DBOps[ss.Candidate].WaitForGTID(ctx, pst.GlobalVariables.ExecutedGTID, switchOverTimeoutSeconds) | ||
err = ss.DBOps[ss.Candidate].WaitForGTID(ctx, pst.GlobalVariables.ExecutedGTID, timeoutSeconds) | ||
if err != nil { | ||
return err | ||
} |
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.
ditto
err = ss.DBOps[candidate].WaitForGTID(ctx, gtid, timeoutSeconds) | ||
if err != nil { | ||
return err | ||
} |
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 = ss.DBOps[candidate].WaitForGTID(ctx, gtid, timeoutSeconds) | |
if err != nil { | |
return err | |
} | |
REDO: | |
err = ss.DBOps[candidate].WaitForGTID(ctx, gtid, timeoutSeconds) | |
switch err { | |
case dbop.ErrTimeout: | |
goto REDO | |
case nil: | |
// ok | |
default: | |
return err | |
} |
#745