[MDEV-25099] Inconsistent error upon updating read-only table with ROW_FORMAT=COMPRESSED Created: 2021-03-09 Updated: 2022-06-06 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Insert, Storage Engine - InnoDB |
| Affects Version/s: | 10.6 |
| Fix Version/s: | 10.6 |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Elena Stepanova | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
MTR test is at the end of the description.
Note that for INSERT 4047 is an error, while for DELETE it's a warning.
|
| Comments |
| Comment by Marko Mäkelä [ 2021-07-23 ] | ||||
|
InnoDB is issuing the error code ER_UNSUPPORTED_COMPRESSED_TABLE using my_error() on DDL, and everywhere else via the following:
Also, every DML member function of ha_innobase is returning the same value:
The error/warning mismatch between INSERT and DELETE ought to be due to something outside InnoDB. | ||||
| Comment by Norio Akagi [ 2022-06-06 ] | ||||
|
I have debugged this issue and summarizing the observation so far: The difference between INSERT and DELETE is caused by this line Here is my assumption and to be validated, but only in sql_insert.cc we have this code and this would be TRUE in the test case. Can anyone from MariaDB help me to suggest a proper way to fix this ? The line above has the comment
which makes me think that we don't want to specifically overwrite with ERROR in this test case. Is my understanding correct ? |