[MDEV-31409] Spider: ERROR 1100 (HY000): Table 't' was not locked with LOCK TABLES when TEMPORARY table is used Created: 2023-06-06 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Temporary, Locking, Storage Engine - Spider |
| Affects Version/s: | 10.4, 10.5, 10.6, 10.9, 10.10, 10.11, 11.0, 11.1 |
| Fix Version/s: | 10.4, 10.5, 10.6, 10.11, 11.0, 11.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Yuchen Pei |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | affects-tests, locking | ||
| Issue Links: |
|
||||
| Description |
|
This issue is seen very often in the test runs. There are likely various other paths to reproduce the same issue. It seems to be a locking vs temporary tables oversight.
Leads to:
Interestingly, when we remove only the KEY from col c in CREATE TABLE t1, the error shows at the command line,* but not in the error log*. This is an additional inconsistency (or bug). Bug (or feature/syntax) confirmed present in: |
| Comments |
| Comment by Roel Van de Paar [ 2023-06-06 ] | ||||||||||||||||||
|
Additional testcase:
With the same outcome. Removing PRIMARY KEY also has the same effect as described as above re: CLI vs error log output. | ||||||||||||||||||
| Comment by Roel Van de Paar [ 2023-06-06 ] | ||||||||||||||||||
|
This MTR version of the original testcase produces the error 1100 including in the error log
| ||||||||||||||||||
| Comment by Roel Van de Paar [ 2023-06-06 ] | ||||||||||||||||||
|
Further to the error log vs no error log, we can see something similar with:
Which work as expected, i.e. it produces the CLI error An infinite loop is detected when opening table test.t which is to be expected. Versus:
Which produces both the CLI and an error log 1429 error. |