Skip to content

server: reduce flakiness of TestEnsureSQLStatsAreFlushedForTelemetry#68614

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
Azhng:fix-telemetry-flush-flake
Aug 10, 2021
Merged

server: reduce flakiness of TestEnsureSQLStatsAreFlushedForTelemetry#68614
craig[bot] merged 1 commit intocockroachdb:masterfrom
Azhng:fix-telemetry-flush-flake

Conversation

@Azhng
Copy link
Copy Markdown
Contributor

@Azhng Azhng commented Aug 9, 2021

Previously, this unit tests generates statements with the fingerprint
'INSERT INTO _ VALUES (_)'. However, this is a very common fingerprint
and can collide with actual statements issued by other subsystems, which
in turn cause test failure.
This commit change the test cases to use uncommon statements that should
not cause fingerprint collision

Resolves #66826

Release note: None

@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@Azhng Azhng marked this pull request as ready for review August 9, 2021 21:13
@Azhng Azhng requested a review from a team August 9, 2021 21:13
Copy link
Copy Markdown
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @Azhng)


-- commits, line 8 at r1 ([raw file](https://github.com/cockroachdb/cockroach/blob/d63db558b979e9e7d3846892b1995c6fa337651a/-- commits#L8)):
nit: the wording here is a little confusing. You mean the new cases should NOT cause collision?

@Azhng Azhng force-pushed the fix-telemetry-flush-flake branch from d63db55 to a53a8c1 Compare August 9, 2021 21:56
Copy link
Copy Markdown
Contributor Author

@Azhng Azhng left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @Azhng)


-- commits, line 8 at r1 ([raw file](https://github.com/cockroachdb/cockroach/blob/d63db558b979e9e7d3846892b1995c6fa337651a/-- commits#L8)):

Previously, maryliag (Marylia Gutierrez) wrote…

nit: the wording here is a little confusing. You mean the new cases should NOT cause collision?

Done.

Copy link
Copy Markdown
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @Azhng)


-- commits, line 8 at r1 ([raw file](https://github.com/cockroachdb/cockroach/blob/d63db558b979e9e7d3846892b1995c6fa337651a/-- commits#L8)):

Previously, Azhng (Archer Zhang) wrote…

Done.

Can you update on the PR description too?

Copy link
Copy Markdown
Contributor Author

@Azhng Azhng left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @Azhng)


-- commits, line 8 at r1 ([raw file](https://github.com/cockroachdb/cockroach/blob/d63db558b979e9e7d3846892b1995c6fa337651a/-- commits#L8)):

Previously, maryliag (Marylia Gutierrez) wrote…

Can you update on the PR description too?

Oops forgot to hit the "Update" button

Previously, this unit tests generates statements with the fingerprint
'INSERT INTO _ VALUES (_)'. However, this is a very common fingerprint
and can collide with actual statements issued by other subsystems, which
in turn cause test failure.
This commit change the test cases to use uncommon statements that should
not cause fingerprint collision

Resolves cockroachdb#66826

Release note: None
@Azhng Azhng force-pushed the fix-telemetry-flush-flake branch from a53a8c1 to f2bf9b3 Compare August 10, 2021 00:07
Copy link
Copy Markdown
Contributor

@maryliag maryliag left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @Azhng)

@Azhng
Copy link
Copy Markdown
Contributor Author

Azhng commented Aug 10, 2021

TFTR!

bors r+

@Azhng
Copy link
Copy Markdown
Contributor Author

Azhng commented Aug 10, 2021

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 10, 2021

Build succeeded:

@craig craig bot merged commit f28f98f into cockroachdb:master Aug 10, 2021
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.

server: TestEnsureSQLStatsAreFlushedForTelemetry failed

3 participants