Skip to content
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

Open
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

clemire
Copy link
Contributor

@clemire clemire commented Dec 17, 2024

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.

…his PR moves the sleep to the correct location at the end of the for loop.
Copy link

vercel bot commented Dec 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
river-sample-app ⬜️ Ignored (Inspect) Visit Preview Dec 20, 2024 8:15pm

return
}
}
// Wait 1s between db pings.
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@clemire clemire requested a review from texuf as a code owner December 19, 2024 20:21
@clemire clemire changed the title [BUGFIX] Move sleep to implement a 1s delay between pings for schema lock connection [DEPRECATED][BUGFIX] Move sleep to implement a 1s delay between pings for schema lock connection Dec 21, 2024
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.

2 participants