Bug #121434 information_schema.innodb_trx not queryable when utf8mb4 characters present

Submitted: 4 Oct 16:12
Reporter: Morgan Tocker Email Updates:
Status: Open Impact on me:
None 
Category:MySQL Server: Information schema Severity:S3 (Non-critical)
Version:9.7.2, 26.7.0 OS:Any
Assigned to: CPU Architecture:Any

[4 Oct 16:12] Morgan Tocker
Description:
In MySQL 8.4 querying information_schema.innodb_trx (which is a utf8bm3 table) substituted invalid characters with '?'.

In 9.7, it now returns an error:
ERROR 3854 (HY000) at line 1: Cannot convert string '\xF0\x9F\x98\x80',...' from utf8mb4 to utf8mb3

This is problematic because the presence of any utf8mb4 character in the processlist (not uncommon!) makes innodb_trx completely non-queryable in 9.7.

Tested in:

8.4.11 (not affected)
9.7.2 (affected)
26.7.0 (affected)
26.10.0-er (affected)

How to repeat:
./use -e "select version()"
./use -e "begin; select * from mysql.user where user = 'notfound' limit 1; select sleep(8), '😀','a';" &
sleep 2
./use -e "select trx_mysql_thread_id, trx_weight from information_schema.innodb_trx"
[25 Oct 5:53] Bradley Grainger
Ran into this today and opened a PR to fix it: https://github.com/mysql/mysql-server/pull/874

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.