Ok, so probably it is a side effect of fixing a bug in multiplexing.
Could you please try this in your testing environment:
a) enable logging globally. From Admin:
SET mysql-eventslog_filename='events.log';
SET mysql-eventslog_filesize=10485760;
LOAD MYSQL VARIABLES TO RUNTIME;
b) enabled logging for all the queries from user proteion
This is done in mysql_query_rules. I suggest it to be the first rule, so you could increase all the rule_id first. Something like:
UPDATE mysql_query_rules SET rule_id=rule_id+1;
INSERT INTO mysql_query_rules (rule_id, active, username, log) VALUES (1,1,'proteion',1);
LOAD MYSQL QUERY RULES TO RUNTIME;
c) send me a copy of the query rules:
SELECT * FROM mysql_query_rules;
d) reproduce the issue
e) send me a copy of "SHOW FULL PROCESSLIST" executed in Admin.
Yes, Admin has SHOW FULL PROCESSLIST :)
This step is very important, because the queries are logged in the events log when they complete, not before. Therefore I will need to understand what is not able to execute when the lock issue happens, and in which connection: I will then be able to correlate with the rest of the queries in the log.
f) send me the file(s) generated in /var/lib/proxysql/ named events.log.0000000X .
Please note that all the queries from user proteion will be logged, so if there are sensitive information maybe is better not to send in the mailing list.
Thanks,
René