-
Notifications
You must be signed in to change notification settings - Fork 970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrupted resultsets in Monitor cause crash #1994
Comments
Closing |
Hello Im still having this issue on Proxysql 2.0.15 i reinstalled Proxysql and that didnt worked. 2020-12-29 00:20:57 MySQL_Monitor.cpp:1832:monitor_galera_thread(): [ERROR] mysql_fetch_fields returns NULL. Server 10.9.0.18:3306 . See bug #1994 |
Also having this issue with "ProxySQL version 2.0.10-27-g5b319972, codename Truls" : I have 3 galera clusters behind proxysql, and this error prevents proxysql from moving the sql servers to the correct galera hostgroups for one of the clusters. |
I Also have this issue 2021-01-06 20:30:50 MySQL_Monitor.cpp:1832:monitor_galera_thread(): [ERROR] mysql_fetch_fields returns NULL. Server 172.16.150.103:3306 . See bug #1994 I have one Percona Xtradb Cluster behind proxysql, and sql servers not moved to the correct hostgroups |
+1, same issue still. |
Hit the same error and solved it. If the following query return nothing, then the monitor function will raise the error. The definition of view sys.gr_member_routing_candidate_status (https://gist.github.com/lefred/77ddbde301c72535381ae7af9f968322): CREATE OR REPLACE VIEW sys.gr_member_routing_candidate_status AS In my case, the hostnames returned from the following 2 querys are different, then cause the issue. select * from performance_schema.global_variables where variable_name='hostname'; Solution: |
ran into these error logs on my end, which was preventing the galera hostgroups feature from working correctly. In my case, the query being run by proxysql to retrieve the wsrep status variables was failing due to a specific subquery
This was most likely caused by me starting the cluster off of an xtrabackup created off of an older version of percona. Running mysql_upgrade fixed it I'm not sure why proxysql couldn't see the sql error produced by my nodes, but was able to figure out the cause and wanted to share in case someone else runs into something similar. |
Thank you @zhaopinglu and @nickcFRU . Just to clarify: proxysql didn't crash, right? To give more context, it was expecting a resultset with a specific number of columns, instead it get something else: a different number of columns, an empty result, etc, that was bug 1994. |
@renecannao Correct proxysql did not crash, just produced the specified error in logs and kept running. |
@nickcFRU : thank you for confirming! |
ProxySQL version affected 2.0, at least up to 2.0.3
It randomly happens that MySQL resultsets in Monitor module get corrupted, leading to crash during its processing. Although it happens rarely, crashes are not good.
The reason is not clear yet.
In ProxySQL 2.0.4 a series of workarounds will be introduced to prevent the crashes, trying to gracefully handle the corruption.
This issue is a placeholder, until the bug is completely fixed.
The text was updated successfully, but these errors were encountered: