[MDEV-8453] Alter table not returning engine errors Created: 2015-07-13 Updated: 2017-08-01 Resolved: 2015-11-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Plugins |
| Affects Version/s: | 10.1.6 |
| Fix Version/s: | 10.1.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michael Fitzmaurice | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
All |
||
| Sprint: | 10.1.9-3 |
| Description |
|
If HA_ERR_GENERIC error is returned from the storage engine during an alter table, I would expect that mariadb call into the storage engines error handler to get the error message.
However alter does not do that. When alter fails (in my case it is because i am running in a clustered environment with ScaleDB and the table is in use on another node) i am getting the following error
If mariadb called into the engine, a more accurate error would get returned "Table in use on another node" |
| Comments |
| Comment by Michael Fitzmaurice [ 2015-07-13 ] |
|
The error message is getting returned from the external_lock function, and getting handled by print_lock_error(..) function. if print_lock_error(..) supported generic/storage engine errors, then this would solve the problem. |