Skip to content

Unnecessary error logs when table statistics are locked and tidb_enable_historical_stats is on #57628

@0xPoe

Description

@0xPoe

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

  1. Create a TiDB cluster
  2. Enable tidb_enable_historical_stats
  3. Create a table and insert more than 1000 rows
  4. Analyze the table and lock the stats: lock stats table_name
  5. Continue to update the table's data
  6. Check the logs

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

There are no error logs.

3. What did you see instead (Required)

There are a lot of logs saying that the stats meta is missing.

4. What is your TiDB version? (Required)

master

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-7.5This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.affects-8.5This bug affects the 8.5.x(LTS) versions.component/statisticsreport/communityThe community has encountered this bug.severity/minorsig/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