[MDEV-18065] Server reports "Fatal error" in the error log on an ordinary query failure Created: 2018-12-23  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Admin statements, Server
Affects Version/s: 5.5, 10.0, 10.1, 10.2, 10.3, 10.4
Fix Version/s: 10.4

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Unresolved Votes: 0
Labels: None


 Description   

CREATE TABLE t1 (a INT);
LOCK TABLE t1 WRITE;
FLUSH PRIVILEGES;
 
# Cleanup
DROP TABLE t1;

FLUSH PRIVILEGES fails with an error

mysqltest: At line 3: query 'FLUSH PRIVILEGES' failed: 1100: Table 'db' was not locked with LOCK TABLES

however the error log reports the problem twice: once as a normal error, and once as a Fatal error:

2018-12-23  4:23:27 4 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'db' was not locked with LOCK TABLES
2018-12-23  4:23:27 4 [ERROR] Can't open and lock privilege tables: Table 'db' was not locked with LOCK TABLES

Naturally, no crash or abort occurs, the "Fatal error" is bogus.


Generated at Thu Feb 08 08:41:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.