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

Achieving eventual consistency for statistics synchronization is unattainable. #54552

Open
hawkingrei opened this issue Jul 10, 2024 · 2 comments
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. component/statistics report/community The community has encountered this bug. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.

Comments

@hawkingrei
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

When you have two tidb instance, if you run analyze on the one tidb.

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

both of tidb can see this stats.

3. What did you see instead (Required)

the other tidb instance can be unable to see these stats.

4. What is your TiDB version? (Required)

@hawkingrei hawkingrei added the type/bug The issue is confirmed as a bug. label Jul 10, 2024
@jebter jebter added the sig/planner SIG: Planner label Jul 12, 2024
@ti-chi-bot ti-chi-bot bot added the affects-7.5 This bug affects the 7.5.x(LTS) versions. label Aug 30, 2024
@seiya-annie
Copy link

/report community

@ti-chi-bot ti-chi-bot bot added the report/community The community has encountered this bug. label Aug 30, 2024
@hawkingrei hawkingrei added affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. and removed may-affects-5.4 This bug maybe affects 5.4.x versions. may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-8.1 labels Sep 9, 2024
@hawkingrei
Copy link
Member Author

#56538

This somewhat aids in resolving synchronization inconsistencies.

It effectively accelerates the update of stats metadata. If that table is continuously updated, it will refresh every 5 minutes. Any inconsistency will be resolved within that interval, so waiting an additional 5 minutes should suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-6.5 This bug affects the 6.5.x(LTS) versions. affects-7.1 This bug affects the 7.1.x(LTS) versions. affects-7.5 This bug affects the 7.5.x(LTS) versions. affects-8.1 This bug affects the 8.1.x(LTS) versions. affects-8.5 This bug affects the 8.5.x(LTS) versions. component/statistics report/community The community has encountered this bug. severity/major sig/planner SIG: Planner type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

4 participants