Skip to content

sync load cannot load common column when to concurrently init stats #57544

@hawkingrei

Description

@hawkingrei

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

we need to set the tidb config as following.

[performance]
lite-init-stats = false

force-init-stats = true

concurrently-init-stats = true

operate as following

tiup Playground: Start a 7.5.4 cluster, remember to add --tag.


create table t(a int, b int);
insert into t value(1,1),(2,2),(3,3);

Stop the cluster, then start it again.

analyze table t;
create table tt(a int, b int);
insert into tt value(1,1),(2,2),(3,3);

Stop the cluster again, then start it again.
Wait for 15 seconds.

analyze table tt;

Stop the cluster again, then start it again.

explain select * from t where a = 1;

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

we cannot see any pseudo stats

3. What did you see instead (Required)

we can see a pseudo stats

4. What is your TiDB version? (Required)

only for v7.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-7.5This bug affects the 7.5.x(LTS) versions.report/customerCustomers have encountered this bug.severity/majorsig/plannerSIG: Plannertype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions