Fail to Get Stats Version for This Histogram

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: fail to get stats version for this histogram

| username: 我是咖啡哥

[TiDB Usage Environment] Production Environment
[Reproduction Path] What operations were performed when the issue occurred
[Encountered Issue: Issue Phenomenon and Impact]
The TiDB log keeps printing this log…

[2023/07/18 16:32:03.555 +08:00] [ERROR] [handle.go:1150] ["fail to get stats version for this histogram"] [table_id=233] [hist_id=2]

It seems to be related to the statistics histogram. What is the problem with this?

SHOW stats_buckets WHERE table_name='xxx';

I checked the histogram information, and it is present.