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

release-19.1: stats: fix flaky test TestDefaultColumns #44664

Merged
merged 1 commit into from
Feb 4, 2020

Conversation

rytaft
Copy link
Collaborator

@rytaft rytaft commented Feb 3, 2020

Backport 1/1 commits from #44560.

/cc @cockroachdb/release


TestDefaultColumns creates statistics on a table with 110 columns
using the command CREATE STATISTICS s FROM t.a. It then checks
that there are exactly 101 column statistics on table t.a with
statistics_name = 's' (one stat for the primary index, plus 100
other column stats). However, this test may be flaky if automatic
statistics are running, since each new automatic stat will cause
other stats to be deleted.

This commit fixes the problem by disabling automatic stats for this
test, ensuring that the 101 column stats are not deleted after they
have been created.

Fixes #44208

Release note: None

TestDefaultColumns creates statistics on a table with 110 columns
using the command `CREATE STATISTICS s FROM t.a`. It then checks
that there are exactly 101 column statistics on table t.a with
statistics_name = 's' (one stat for the primary index, plus 100
other column stats). However, this test may be flaky if automatic
statistics are running, since each new automatic stat will cause
other stats to be deleted.

This commit fixes the problem by disabling automatic stats for this
test, ensuring that the 101 column stats are not deleted after they
have been created.

Fixes cockroachdb#44208

Release note: None
@rytaft rytaft requested a review from RaduBerinde February 3, 2020 23:12
@rytaft rytaft requested a review from a team as a code owner February 3, 2020 23:12
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde 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 @RaduBerinde)

@rytaft rytaft merged commit dae56c0 into cockroachdb:release-19.1 Feb 4, 2020
@rytaft rytaft deleted the backport19.1-44560 branch February 4, 2020 02:40
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.

3 participants