duplicated views with the same name been created #58769
Labels
affects-5.4
This bug affects the 5.4.x(LTS) versions.
affects-6.1
This bug affects the 6.1.x(LTS) versions.
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/ddl
This issue is related to DDL of TiDB.
report/customer
Customers have encountered this bug.
severity/moderate
type/bug
The issue is confirmed as a bug.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
This is found in one of our customer's environment.
files contain sensitive information removedThey found that the result of select
INFORMATION_SCHEMA.TABLES
and select the specific table mismatch.Then they drop that view, but later found a view can not be dropped (select by table id can see that view, but select drop always fail)
After investigate their ddi history, the root cause is that we don't prevent create views twice with same name
2. What did you expect to see? (Required)
Try to reproduce it with unit test:
The test should pass
3. What did you see instead (Required)
Test failed.
4. What is your TiDB version? (Required)
v7.5.3
The text was updated successfully, but these errors were encountered: