[MDEV-16162] Unexplained sql error logging behavior Created: 2018-05-14  Updated: 2018-06-01  Resolved: 2018-06-01

Status: Closed
Project: MariaDB Server
Component/s: Plugin - SQL_ERROR_LOG
Affects Version/s: None
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Lori Patrick Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

I posted this last week to open questions and have not gotten a reply, so I am opening a ticket in the hopes someone can point me in the right direction. Any assistance so I can resolve this is greatly appreciated.

I have three servers. One master and two are slaves. I have a process that does an insert ignore the master and then does it again 5 seconds later to ensure the row has been written.

The servers are MariaDB 5.5.50 (CentOS 7.3) and 5.5.34 (CentOS 6.5).

A few weeks ago after making no changes what so ever, one of the slaves started logging the 1062 error(s) to the sql_errrors.log and I can not figure out why.

If I check the binary log on all three servers, I can find the insert ignore and the second one 5 seconds later on all three servers, so I know it is being executed everywhere.

I have diffed the server configs to make sure they are all the same.

Compared the mysql database between the servers for any differences.

I have logged in as the replication account and checked:

show variables like 'sql_error%';
show variables like '%mode%'; all settings return the same.

Can someone point me at anything else I can check to understand why the behavior for the one slave changed?



 Comments   
Comment by Elena Stepanova [ 2018-06-01 ]

If it's only happening on one of two identical slaves, it's possible that somebody or something attempts to run INSERTs on that server directly, and getting the error.

  • double-check the contents of the sql_errors.log, it shows username, host and data, see if they match those in the master binary log;
  • enable the general log on the faulty slave, see what actually comes in there.

You can also ask for help on public mailing lists.

Feel free to re-open the issue if you believe you have encountered a MariaDB bug (in which case please provide the relevant data and steps to reproduce).

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