-
Notifications
You must be signed in to change notification settings - Fork 6
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
[DEPRECATED][BUGFIX] Move sleep to implement a 1s delay between pings for schema lock connection #1853
base: main
Are you sure you want to change the base?
Conversation
…his PR moves the sleep to the correct location at the end of the for loop.
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
core/node/storage/pg_stream_store.go
Outdated
return | ||
} | ||
} | ||
// Wait 1s between db pings. |
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.
Comment is incorrect? But anyway it's redundant: it's pretty obvious from the code that this is sleep between pings.
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'll take the comment out. In the meantime this PR is in a weird state because I'm trying to solicit more info about how the race condition bug is occurring and so it's regressing away from it's final state until I fix the issue causing the test flake.
Edit: This PR is built off of the schema lock feature, which has since been reverted. The replication bugs unearthed by this PR need to be fixed, then the schema lock reversion needs to be reverted again, and this can be applied on top of that PR.
The sleep was incorrectly placed previously, resulting in non-stop pings on the schema lock connection, which is unnecessary. This PR moves the sleep to the correct location so we ping once very second.