Skip to content

Table not found when TiDB has a lots of tables in a DB #623

@TrafalgarRicardoLu

Description

@TrafalgarRicardoLu

Bug Report

1. Describe the bug

This bug is from TiSpark. Issue2368
If we read a table after create a lots of table, it may throw table not find exception.

2. Minimal reproduce step (Required)

  1. run a script that create 10000 tables with complex schema.
  2. try to read a table when running the script, like select count(*) from tbl5000.
  3. read the last table after finishing the script, like select count(*) from tbl10000.

3. What did you see instead (Required)

The second query throws a table not find exception.

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

A normal answer like:
+--------+
| count(1)|
+--------+
| 0 |
+--------+

5. What are your Java Client and TiKV versions? (Required)

  • Client Java: we test it in TiSpark.
  • TiKV: 5.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions