Bug #86056 | MySqlException (0x80004005): Reading from the stream has failed. | ||
---|---|---|---|
Submitted: | 24 Apr 2017 14:32 | Modified: | 21 Jul 2017 11:24 |
Reporter: | Natan Vivo | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / NET | Severity: | S1 (Critical) |
Version: | 6.9.9 | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | bug, exception, stream |
[24 Apr 2017 14:32]
Natan Vivo
[28 Apr 2017 0:41]
Bradley Grainger
This code doesn't look incorrect to me (on its face). From the Stream.Read docs (https://msdn.microsoft.com/en-us/library/system.io.stream.read(v=vs.110).aspx): > Return Value > ... zero (0) if the end of the stream has been reached. > > The implementation will block until at least one byte of data can be read, in the event that no data is available. Read returns 0 only when there is no more data in the stream and no more is expected (such as a closed socket or end of file). An implementation is free to return fewer bytes than requested even if the end of the stream has not been reached.
[28 Apr 2017 19:26]
Natan Vivo
Good call Bradley Grainger. Still, the problem happens specifically when the server is slower than normal without any changes to the code. Since I use the same image for multiple servers, I can see the problem appear and disappear over time without any change to the server. I'm not sure if your driver will show the same problem, but I intend to find out as soon as we get rid of EF.
[4 May 2017 22:24]
Bradley Grainger
Natan Vivo, We were infrequently (but consistently) getting this exception in our app pools when using Connector/NET. Our projects that have switched to https://github.com/mysql-net/MySqlConnector are no longer seeing the issue. I'm keen to hear your experience of switching.
[30 May 2017 13:13]
Chiranjeevi Battula
Hello Natan Vivo, Thank you for the bug report. Could you please provide repeatable test case (exact steps/sample project,my.cnf/ini, create tables statements/database etc. - please make it as private if you prefer) to confirm this issue at our end? Thanks, Chiranjeevi.
[1 Jul 2017 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".
[21 Jul 2017 9:37]
Justin Farrugia
We have been able to replicate this error by blocking the eMule torrent program on the SonicWall firewall P2P by application control. Any help regarding this?
[21 Jul 2017 11:24]
Natan Vivo
Hi, sorry for the lack of feedback. After a long time, I finally found out this was caused by AWS throttling disk IO on RDS. Once IOPS limit was reached, disk latency increased and processes started to accumulate on the server, causing mysql to stop responding and these weird errors to appear. This is very specific to how AWS EBS works. The solution was to increase disk size in order to increase IOPS on EBS, then these problems disappeared.
[23 Jun 2021 7:01]
YAKUP ULUTAŞ
this problem still persists , details explained here mysql version 5.6.28 , connector versions 8.0.23 https://stackoverflow.com/questions/68085943/mysql-reading-from-the-stream-has-failed