Bug #69654 | Federated: MySQL Database Error: Got an error writing communication packets | ||
---|---|---|---|
Submitted: | 3 Jul 2013 7:16 | Modified: | 21 Aug 2014 18:13 |
Reporter: | nelson mendaros | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server: Federated storage engine | Severity: | S2 (Serious) |
Version: | 5.6.11 | OS: | Linux (RHEL 6) |
Assigned to: | CPU Architecture: | Any | |
Tags: | Insert statement on Federated tables |
[3 Jul 2013 7:16]
nelson mendaros
[19 Aug 2013 12:57]
Anandakumar S
Hello Nelson, May I ask you to try in the latest release 5.6.13 ? Thanks Anand
[20 Aug 2013 11:13]
Ángel OR
Hello Nelson, It happens to me also, or at least I think it could be the same problem; my scenario is as follows: Original tables in a MySQL 5.5.32 server (it is an slave from another server). Federated tables in a MySQL 5.6.12 server. I'm not sure it is the same case since I get the error randomly, almost everytime I get it and I try again and it works, and not only in inserts, sometimes connecting to the database from Toad or even with the web application that works over the database. Is there any known workaround? Regards, Ángel
[20 Aug 2013 11:41]
Ángel OR
I forgot to comment that I have the same environment as the 5.6.12 one that connects to the same tables in the slave using federated tables but it version is 5.5.16 and it works perfectly. Regards, Ángel
[22 Aug 2013 5:19]
nelson mendaros
We'll try 5.6.13 @@Ángel OR, yeah it's the same thing with us. TOAD and other applications.
[11 Feb 2014 8:55]
Ángel OR
Hello everyone, It seems there is a workaround and, as far as we checked, it worked. As the documentation says, the Federated engine creates a connection with the remote database using the MySQL C Client API, it is posible that the errors come because this connection expires and closes, so maybe increasing the timeout should fix this. In our case, the wait_timeout parameter was increased from 3600 (1 hour) to 28800 (8 hours) both in the origin and in the slave databases. BR, Ángel
[17 Apr 2014 13:19]
Sergio Gatto
Hi, I've the same problem. I created 2 federated tables. Both servers have the same mysql version: 5.6.10-enterprise-commercial-advanced. After a few hours the connections of the fedetered tables to the real tables are lost. I have to drop and re-create the federated tables to solve the problem. Sometimes, this solution won't work and the problem returns. I've tried to solve the problem increasing the following global system variables "net_write_timeout" and "wait_timeout" on both servers but the bug persists. Thanks in advance Enrico Messina
[17 Apr 2014 13:21]
Sergio Gatto
Sorry, I forgotten to indicate that the servers are both RedHat Enterprise 6.
[21 Apr 2014 12:56]
Ángel OR
That's right, our solution increasing the wait parameter didn't work either.
[7 May 2014 18:06]
Sergio Gatto
Anybody found the solution? I'm stuck with this issue. Anybody tried with a newer version? Best regards,
[21 Jul 2014 18:13]
Sveta Smirnova
Thank you for the report. Strictly saying this is not good practice to mix major versions of MySQL server for source and target tables of federated storage engine. But anyway please turn option --log-warnings=2 on the source server and after you see same error again send us full error log files from both source and target servers.
[22 Aug 2014 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".