arnoldasgudas / Hangfire.MySqlStorage

MySql storage for Hangfire - fire-and-forget, delayed and recurring tasks runner
GNU Lesser General Public License v3.0
174 stars 115 forks source link

Mysql8.0(aws rds) Crash #74

Closed easycode closed 3 years ago

easycode commented 4 years ago

When I deployed to the AWS environment, An exception has been found to the control panel. No problem in my machine.(win10,mysql8.0,asp netcore3.1)

The exception as follows: MySqlConnector.MySqlException (0x80004005): Failed to read the result set. ---> System.IO.EndOfStreamException: Expected to read 4 header bytes but only received 0.

If the transaction is removed, then it is normal, do not know why ` private T UseConnection(Func<MySqlConnection, T> action) {

// return _storage.UseTransaction(action, IsolationLevel.ReadUncommitted); return _storage.UseConnection(action); } `

easycode commented 3 years ago

It has been proven to be a bug in MySQL 8.0 with XA transaction