-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
statusccl: fix flaky TestTenantStatusAPI txn_id_resolution #100817
Conversation
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.
Reviewed all commit messages.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @j82w)
pkg/ccl/serverccl/statusccl/tenant_status_test.go
line 1231 at r1 (raw file):
} return nil }, 1*time.Minute)
Is there a concern this wait time could increase too much the time of the test and it could cause issue under stress? Should this test be skipped under stress?
Previously, maryliag (Marylia Gutierrez) wrote…
It's already skipped.
|
Previously, j82w (Jake) wrote…
The extended time is probably not necessary now that it actually retries on default fingerprint, but I made the change to be on the safe side. |
The txn resolution add a txn id to the cache, and then in a separate call updates the txn id with the fingerprint. The test previously assumed if there was a record it would always have a valid fingerprint, but that is not true. The test is modified to add retry logic to wait for the fingerprint to be updated. The retry time was set to always be 1 minute, because SucceedsSoon only waits 5 seconds for race scenario which is not enough time for the resolution to complete. Epic: none part of: #99770 Release note: none
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.
Reviewed 1 of 1 files at r1.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @j82w)
bors r+ |
Build failed: |
bors r+ |
Build succeeded: |
The txn resolution add a txn id to the cache, and
then in a separate call updates the txn id with the
fingerprint. The test previously assumed if there
was a record it would always have a valid fingerprint,
but that is not true. The test is modified to add retry
logic to wait for the fingerprint to be updated. The
retry time was set to always be 1 minute, because
SucceedsSoon only waits 5 seconds for race scenario
which is not enough time for the resolution to complete.
Epic: none
part of: #99770
Release note: none
Epic: CRDB-25476