Page MenuHomePhabricator

NHibernate doesn't handle lost MySQL connections well.
Closed, MigratedPublic

Description

2019-05-25 14:37:19,465 [Thread Pool Worker] DEBUG Helpmebot.Background.NotificationBackgroundService [(null)] - Retrieving items from notification queue...

2019-05-25 14:37:19,466 [10] WARN  NHibernate.Util.ADOExceptionReporter [(null)] - MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered during command execution. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Fatal error encountered attempting to read the resultset. ---> MySql.Data.MySqlClient.MySqlException (0x80004005): Reading from the stream has failed. ---> System.IO.IOException: Unable to read data from the transport connection: interrupted. ---> System.Net.Sockets.SocketException: interrupted
  at System.Net.Sockets.Socket.Receive (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags) [0x00016] in <e8eb3d7a311640f484845e45cbec8973>:0 
  at System.Net.Sockets.NetworkStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 size) [0x0009b] in <e8eb3d7a311640f484845e45cbec8973>:0 
   --- End of inner exception stack trace ---
  at MySql.Data.Common.MyNetworkStream.HandleOrRethrowException (System.Exception e) [0x0003d] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.Common.MyNetworkStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00014] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.TimedStream.Read (System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00026] in <8051f3898298485d9e8510b51445dcd7>:0 
  at System.IO.BufferedStream.Read (System.Byte[] array, System.Int32 offset, System.Int32 count) [0x000cd] in <6649516e5b3542319fb262b421af0adb>:0 
  at MySql.Data.MySqlClient.MySqlStream.ReadFully (System.IO.Stream stream, System.Byte[] buffer, System.Int32 offset, System.Int32 count) [0x00006] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.MySqlStream.LoadPacket () [0x0000e] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.MySqlStream.LoadPacket () [0x000a5] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.MySqlStream.ReadPacket () [0x00000] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.NativeDriver.GetResult (System.Int32& affectedRow, System.Int64& insertedId) [0x00026] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.Driver.GetResult (System.Int32 statementId, System.Int32& affectedRows, System.Int64& insertedId) [0x00000] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.Driver.NextResult (System.Int32 statementId, System.Boolean force) [0x00023] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.MySqlDataReader.NextResult () [0x000d5] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.MySqlDataReader.NextResult () [0x001f3] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00251] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x00314] in <8051f3898298485d9e8510b51445dcd7>:0 
  at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader (System.Data.CommandBehavior behavior) [0x00000] in <8051f3898298485d9e8510b51445dcd7>:0 
  at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader () [0x00000] in <dae9d897f85e430e83bbd1fe4277bb5b>:0 
  at NHibernate.AdoNet.AbstractBatcher.ExecuteReader (System.Data.IDbCommand cmd) [0x00065] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Loader.Loader.GetResultSet (System.Data.IDbCommand st, System.Boolean autoDiscoverTypes, System.Boolean callable, NHibernate.Engine.RowSelection selection, NHibernate.Engine.ISessionImplementor session) [0x00086] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Loader.Loader.DoQuery (NHibernate.Engine.ISessionImplementor session, NHibernate.Engine.QueryParameters queryParameters, System.Boolean returnProxies, NHibernate.Transform.IResultTransformer forcedResultTransformer) [0x0005d] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections (NHibernate.Engine.ISessionImplementor session, NHibernate.Engine.QueryParameters queryParameters, System.Boolean returnProxies, NHibernate.Transform.IResultTransformer forcedResultTransformer) [0x00036] in <8210282bc4024c02ab1c8fa84c45a21e>:0 
  at NHibernate.Loader.Loader.DoList (NHibernate.Engine.ISessionImplementor session, NHibernate.Engine.QueryParameters queryParameters, NHibernate.Transform.IResultTransformer forcedResultTransformer) [0x00020] in <8210282bc4024c02ab1c8fa84c45a21e>:0 

2019-05-25 14:37:19,469 [10] ERROR NHibernate.Util.ADOExceptionReporter [(null)] - Fatal error encountered during command execution.

Event Timeline

swalker triaged this task as Normal priority.May 27 2019, 10:55 AM
swalker created this task.
stwalkerster claimed this task.
stwalkerster added a subscriber: stwalkerster.

This issue has migrated to GitHub issues