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

ccl/sqlproxyccl/acl: fix TestParsingErrorHandling flake #99050

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

pjtatlow
Copy link
Contributor

TestParsingErrorHandling asserts that the error count metric is updated
correctly when reading a file fails or succeeds, and the files are checked
at a regular interval. For the tests that interval is set to 100ms, and we waited
200ms to ensure the metric would be updated, but that seems to not be reliable.
This change increases the wait to 500ms which should ensure the file is
re-read before we check the value of the error metics.

Fixes #98839

TestParsingErrorHandling asserts that the error count metric is updated
correctly when reading a file fails or succeeds, and the files are checked
at a regular interval. For the tests that interval is set to 100ms, and we waited
200ms to ensure the metric would be updated, but that seems to not be reliable.
This change increases the wait to 500ms which should ensure the file is
re-read before we check the value of the error metics.
@pjtatlow pjtatlow requested review from a team as code owners March 20, 2023 19:32
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@adityamaru adityamaru left a comment

Choose a reason for hiding this comment

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

@pjtatlow
Copy link
Contributor Author

TFTR!

bors r+

@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set.

@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

Build failed (retrying...):

@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

Build failed:

@knz
Copy link
Contributor

knz commented Mar 21, 2023

bors r=adityamaru,jaylim-crl

@craig
Copy link
Contributor

craig bot commented Mar 21, 2023

Build succeeded:

@craig craig bot merged commit bef8794 into cockroachdb:master Mar 21, 2023
@pjtatlow pjtatlow deleted the fix-acl-test-flake branch March 21, 2023 15:27
@pjtatlow pjtatlow restored the fix-acl-test-flake branch March 21, 2023 15:27
@pjtatlow pjtatlow deleted the fix-acl-test-flake branch March 21, 2023 15:27
@pjtatlow pjtatlow restored the fix-acl-test-flake branch March 21, 2023 15:29
@mikeCRL
Copy link
Contributor

mikeCRL commented Mar 30, 2023

Regarding the release note, the details here seem to only apply to internal audiences, unless we want to slim this down and include a user-facing mention of the impact, e.g. performance/reliability. What do you think @pjtatlow? Will leave it out of release notes for now but can add back with edits if needed.

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.

ccl/sqlproxyccl/acl: TestParsingErrorHandling failed
6 participants