[MDEV-12540] inconsistent behavior on error during index creation in CSV table Created: 2017-04-20 Updated: 2023-12-05 |
|
| Status: | Stalled |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - Connect |
| Affects Version/s: | 10.1.22 |
| Fix Version/s: | 10.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alice Sherepa | Assignee: | Olivier Bertrand |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
For table below I wanted to simulate an error during index file creation (e.g. permission issue). So folder with name ../t/qq1.dnx was created.
Problem 1: engine doesn't report an error, only warning:
Problem 2: Engine pretends that index exists (while no index file was created):
Not sure if this is expected behavior |
| Comments |
| Comment by Elena Stepanova [ 2017-04-21 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Olivier Bertrand [ 2017-05-09 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
This is depending on another issue I don't have the solution yet. I am making and droping indexes in the only function that I am sure to get called when doing any action on indexing; external_lock. See | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Alice Sherepa [ 2017-05-24 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I've met the similar problem with indexes in JSON type, so I paste it just for reference here.
And the same if I create table with an index, but no warnings
btw I can see that |