-
Notifications
You must be signed in to change notification settings - Fork 997
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
ProxySQL 2.0.2-1-g533442f4 'Incorrect number of fields, please report a bug' in 'monitor_galera_thread' #1978
Comments
One more thing, logs are actually containing this at the very beginning of the issue:
And after this ProxySQL start to move 143 and 142 back and forth to writer role, dropping all connections!
Why is it doing so? If deadlock found during Galera commit - application should just repeat the failed transaction, but it looks like this deadlock triggers ProxySQL to start moving backup writers into primary writer position and then demote it back, which shouldn't be happening. |
I also facing the same problem 'MySQL server has gone away' |
@Lt-Flash : can you please provide more of the error log? Several hours before the incident, if possible. What I can tell you already is:
This is clearly a bug in ProxySQL's Monitor module, because it seems it doesn't perform a correct error handling for failed requests. I am already working on implementing a better error handling. |
Hi @renecannao , I can also remove group 1 - test MySQL Galera cluster, if that would help, as that would remove checks of that cluster. |
Hi, |
We are facing the same issue:
|
+1 |
I also encountered the same problem. At first, I thought it was network delay, but after increasing the parameters later, it was still not solved. I hope who can give the solution. |
Hello,I did a performance manometry on proxysql, and the scene will be repeated soon. It is certain that proxysql made a mistake in judging the state of Galera nodes |
@sherlock04 , please note my previous comment #1978 (comment)
I am working in understanding why this happens and how to prevent it, but at the same time I am trying to implement a workaround (tracked in #1994). |
Can I avoid this problem by upgrading to 2.0.4? |
Unfortunately, not yet |
I also have a question about why I always make the following mistakes when I do manometry useing sysbench. |
My Proxy SQL has changed its status more than 30,000 times in the past three days. How long will it take to fix this bug? MySQL [(none)]> select * from runtime_checksums_values;
+-------------------+---------+------------+--------------------+
| name | version | epoch | checksum |
+-------------------+---------+------------+--------------------+
| admin_variables | 0 | 0 | |
| mysql_query_rules | 1 | 1556605873 | 0x0000000000000000 |
| mysql_servers | 29067 | 1557285794 | 0x2130FCF6BA9F77F0 |
| mysql_users | 2 | 1556607077 | 0xEF8800C8C26DD313 |
| mysql_variables | 0 | 0 | |
| proxysql_servers | 1 | 1556605873 | 0x0000000000000000 |
+-------------------+---------+------------+--------------------+ |
We had to switch to MaxScale, no way we can use ProxySQL with this bug. MaxScale doesn't allow to route based on query, but our product is using prepared statements anyway that are not supported by ProxySQL, so MaxScale works just fine for us. |
Hi all specially dear @Lt-Flash |
I can't change my back-end galera cluster to master-slave. After all, Galera is already in use and performs very well Indeed, we use maxsacle, but because of routing problems, we feel we need proxysql@Lt-Flash |
Thanks for your reply, but for us it's critical to have Galera monitoring, because Master may fail at any time and in dedicated master-slave mode you would need to switch over to new Master manually, unless you're doing Galera monitoring. I've increased all timeout parameters, but that didn't help. The problem we're facing is that Galer monitor suddenly reports 'Incorrect number of fields' and dropping all connections, 'MySQL server has gone away' seen in application logs - is the consequence of that, not the reason. Right now on MaxScale we don't have any issues with our DB/Application. |
For your information, ProxySQL 2.0.4 is now released, and this bug is solved. |
s/not/now/ |
Thank you very much. I have upgraded all proxysql to Proxy SQL version 2.0.4-116-g7d371cf. The basic environment used makes CentOS 7.2. If there are no problems in the future, it gives me great confidence to use proxysql. I will also introduce the surrounding teams to use proxysql and make sincere suggestions. |
Hello, do you have the problem of switching nodes frequently when you use maxscale?
|
Hi, [RW] Also, set galera monitor interval to 1000: [Galera Monitor] Hope this helps! |
Hi,
We're using latest ProxySQL in our production database, monitoring three Galera servers and having one of them as a writer, and three of them as readers (no read_only flag is set on any of the servers). From time to time we're getting a message in our application saying 'MySQL server has gone away'. At the same time in logs I can see that for some reason ProxySQL is closing all connections to active server and chooses another one as a master, then returning usual master back after next monitor cycle. I'm not sure how to reproduce this issue, but here are the logs.
Here's a definition of two groups of servers we're using. Primary cluster is hostgroups 10 and 20, that's the one we're having problems with. MySQL servers are physical ones running MariaDB with Galera Cluster based on Ubuntu Server 18.10.
Here's a normal working state:
Here's definition of Galera Hostrgoups:
errors.log
``
The text was updated successfully, but these errors were encountered: