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

roachtest: fix maxWaitDuration in lease-preferences #124034

Merged
merged 1 commit into from May 13, 2024

Conversation

nvanbenschoten
Copy link
Member

Informs #123998.

The attempt to limit how long waitForLeasePreferences was broken.

Release note: None

Informs cockroachdb#123998.

The attempt to limit how long waitForLeasePreferences was broken.

Release note: None
@nvanbenschoten nvanbenschoten requested a review from kvoli May 13, 2024 13:00
@nvanbenschoten nvanbenschoten requested a review from a team as a code owner May 13, 2024 13:00
@nvanbenschoten nvanbenschoten requested review from nameisbhaskar and vidit-bhat and removed request for a team May 13, 2024 13:00
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@nvanbenschoten nvanbenschoten added the backport-24.1.x Flags PRs that need to be backported to 24.1. label May 13, 2024
Copy link
Collaborator

@kvoli kvoli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is case <-time.After(...): broken here? This is used in quite a few other places e.g.

case <-time.After(10 * time.Second):

@nvanbenschoten
Copy link
Member Author

It's broken because case <-time.After(...): is used in a for loop where the checkTimer fires every 10 seconds. So the time.After is reset every 10 seconds.

@kvoli
Copy link
Collaborator

kvoli commented May 13, 2024

It's broken because case <-time.After(...): is used in a for loop where the checkTimer fires every 10 seconds. So the time.After is reset every 10 seconds.

Ahh, my bad. Thanks for the explanation.

@nvanbenschoten
Copy link
Member Author

TFTR!

bors r=kvoli

@craig craig bot merged commit 264a264 into cockroachdb:master May 13, 2024
22 checks passed
@nvanbenschoten nvanbenschoten deleted the nvanbenschoten/maxWait branch May 20, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-24.1.x Flags PRs that need to be backported to 24.1.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants