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

auto analyze may get triggered out of specified time when new index is added #28698

Closed
time-and-fate opened this issue Oct 11, 2021 · 5 comments · Fixed by #28703
Closed

auto analyze may get triggered out of specified time when new index is added #28698

time-and-fate opened this issue Oct 11, 2021 · 5 comments · Fixed by #28703
Assignees
Labels
affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. component/statistics severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@time-and-fate
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

set global tidb_auto_analyze_start_time='01:00 +0000';
set global tidb_auto_analyze_end_time='01:00 +0000';
create table t(a int);

Insert into t more than 1000 rows data.

alter table t add index ia(a);

2. What did you expect to see? (Required)

Auto analyze is not triggered.

3. What did you see instead (Required)

Auto analyze is triggered.

4. What is your TiDB version? (Required)

It should affect all versions.

@time-and-fate time-and-fate added the type/bug The issue is confirmed as a bug. label Oct 11, 2021
@time-and-fate
Copy link
Member Author

/assign

@time-and-fate
Copy link
Member Author

/sig planner
/component statistics

@time-and-fate
Copy link
Member Author

/sig planner

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

@tiancaiamao
Copy link
Contributor

Rejected in 4.0.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-4.0 This bug affects 4.0.x versions. affects-5.0 This bug affects 5.0.x versions. affects-5.1 This bug affects 5.1.x versions. affects-5.2 This bug affects 5.2.x versions. component/statistics severity/moderate sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants