nhibernate-core icon indicating copy to clipboard operation
nhibernate-core copied to clipboard

Update dependency MySql.Data to 8.4.0

Open renovate[bot] opened this issue 3 years ago • 2 comments

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
MySql.Data 8.0.30 -> 8.4.0 age adoption passing confidence

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] avatar Aug 02 '22 04:08 renovate[bot]

Looks like v8.0.30 is the latest working version.

bahusoid avatar Jul 02 '23 09:07 bahusoid

According to the github run log, failures start with a lock wait timeout on the third run QueryLock test.

Run order is:

=> NHibernate.Test.Linq.QueryLock.CanChangeLockModeForQuery
=> NHibernate.Test.Linq.QueryLock.CanLockBeforeSkipOnLinqOrderedPageQuery
=> NHibernate.Test.Linq.QueryLock.CanSetLockLinqQueries

And first failure is:

1) Error : NHibernate.Test.Linq.QueryLock.CanSetLockLinqQueries
NHibernate.Exceptions.GenericADOException : could not execute query
[ select customer0_.CustomerId as customerid1_0_, customer0_.CompanyName as companyname2_0_, customer0_.ContactName as contactname3_0_, customer0_.ContactTitle as contacttitle4_0_, customer0_.Address as address5_0_, customer0_.City as city6_0_, customer0_.Region as region7_0_, customer0_.PostalCode as postalcode8_0_, customer0_.Country as country9_0_, customer0_.Phone as phone10_0_, customer0_.Fax as fax11_0_ from Customers customer0_ for update ]
[SQL: select customer0_.CustomerId as customerid1_0_, customer0_.CompanyName as companyname2_0_, customer0_.ContactName as contactname3_0_, customer0_.ContactTitle as contacttitle4_0_, customer0_.Address as address5_0_, customer0_.City as city6_0_, customer0_.Region as region7_0_, customer0_.PostalCode as postalcode8_0_, customer0_.Country as country9_0_, customer0_.Phone as phone10_0_, customer0_.Fax as fax11_0_ from Customers customer0_ for update]
  ----> MySql.Data.MySqlClient.MySqlException : Fatal error encountered during data read.
Data:
  actual-sql-query: select customer0_.CustomerId as customerid1_0_, customer0_.CompanyName as companyname2_0_, customer0_.ContactName as contactname3_0_, customer0_.ContactTitle as contacttitle4_0_, customer0_.Address as address5_0_, customer0_.City as city6_0_, customer0_.Region as region7_0_, customer0_.PostalCode as postalcode8_0_, customer0_.Country as country9_0_, customer0_.Phone as phone10_0_, customer0_.Fax as fax11_0_ from Customers customer0_ for update
  ----> MySql.Data.MySqlClient.MySqlException : Lock wait timeout exceeded; try restarting transaction
Data:
  Server Error Code: 1205
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Loader/Loader.cs:line 2016
   at NHibernate.Loader.Loader.ListIgnoreQueryCache(ISessionImplementor session, QueryParameters queryParameters) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Loader/Loader.cs:line 1872
   at NHibernate.Hql.Ast.ANTLR.QueryTranslatorImpl.List(ISessionImplementor session, QueryParameters queryParameters) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Hql/Ast/ANTLR/QueryTranslatorImpl.cs:line 144
   at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Engine/Query/HQLQueryPlan.cs:line 113
   at NHibernate.Impl.SessionImpl.List(IQueryExpression queryExpression, QueryParameters queryParameters, IList results, Object filterConnection) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Impl/SessionImpl.cs:line 571
   at NHibernate.Impl.AbstractSessionImpl.List[T](IQueryExpression query, QueryParameters parameters) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Impl/AbstractSessionImpl.cs:line 185
   at NHibernate.Impl.AbstractQueryImpl2.List[T]() in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Impl/AbstractQueryImpl2.cs:line 117
   at NHibernate.Linq.DefaultQueryProvider.ExecuteList[TResult](Expression expression) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Linq/DefaultQueryProvider.cs:line 114
   at NHibernate.Linq.NhQueryable`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Linq/NhQueryable.cs:line 65
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at NHibernate.Test.Linq.QueryLock.CanSetLockLinqQueries() in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate.Test/Linq/QueryLock.cs:line 46
--MySqlException
   at MySql.Data.MySqlClient.MySqlDataReader.ReadAsync(Boolean execAsync, CancellationToken cancellationToken)
   at MySql.Data.MySqlClient.MySqlDataReader.Read()
   at NHibernate.Driver.NHybridDataReader.Read() in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Driver/NHybridDataReader.cs:line 128
   at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Loader/Loader.cs:line 532
   at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Boolean returnProxies, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Loader/Loader.cs:line 317
   at NHibernate.Loader.Loader.DoList(ISessionImplementor session, QueryParameters queryParameters, IResultTransformer forcedResultTransformer, QueryCacheResultBuilder queryCacheResultBuilder) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Loader/Loader.cs:line 2016
--MySqlException
   at MySql.Data.MySqlClient.MySqlStream.ReadPacketAsync(Boolean execAsync)
   at MySql.Data.MySqlClient.NativeDriver.FetchDataRowAsync(Int32 statementId, Int32 columns, Boolean execAsync)
   at MySql.Data.MySqlClient.Driver.FetchDataRowAsync(Int32 statementId, Int32 columns, Boolean execAsync)
   at MySql.Data.MySqlClient.ResultSet.GetNextRowAsync(Boolean execAsync)
   at MySql.Data.MySqlClient.ResultSet.NextRowAsync(CommandBehavior behavior, Boolean execAsync)
   at MySql.Data.MySqlClient.MySqlDataReader.ReadAsync(Boolean execAsync, CancellationToken cancellationToken)

Then all other QueryLock tests fail with similar errors excepted CanSetLockOnJoinOuterNotSupported, included their async counterparts and the async counterpart of CanLockBeforeSkipOnLinqOrderedPageQuery though its synchronous version did not fail. It sounds like the lock from the previous test was not released.

After that, there is a series of setup errors seemingly unrelated. (Many other tests are run between them.)

20) SetUp Error : NHibernate.Test.NHSpecificTest.NH1920.Fixture
NHibernate.HibernateException : Connection must be valid and open.
  ----> System.InvalidOperationException : Connection must be valid and open.
   at NHibernate.Tool.hbm2ddl.SchemaExport.InitConnectionAndExecute(Action`1 scriptAction, Boolean execute, Boolean justDrop, DbConnection connection, TextWriter exportOutput) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Tool/hbm2ddl/SchemaExport.cs:line 465
   at NHibernate.Test.TestCase.CreateSchema() in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate.Test/TestCase.cs:line 308
   at NHibernate.Test.TestCase.TestFixtureSetUp() in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate.Test/TestCase.cs:line 97
--InvalidOperationException
   at MySql.Data.MySqlClient.Interceptors.ExceptionInterceptor.Throw(Exception exception)
   at MySql.Data.MySqlClient.MySqlCommand.CheckState()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReaderAsync(CommandBehavior behavior, Boolean execAsync, CancellationToken cancellationToken)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQueryAsync(Boolean execAsync, CancellationToken cancellationToken)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
   at NHibernate.Tool.hbm2ddl.SchemaExport.ExecuteSql(DbCommand cmd, String sql) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Tool/hbm2ddl/SchemaExport.cs:line 310
   at NHibernate.Tool.hbm2ddl.SchemaExport.ExecuteInitialized(Action`1 scriptAction, Boolean execute, Boolean throwOnError, TextWriter exportOutput, DbCommand statement, String sql) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Tool/hbm2ddl/SchemaExport.cs:line 292
   at NHibernate.Tool.hbm2ddl.SchemaExport.Execute(Action`1 scriptAction, Boolean execute, Boolean justDrop, DbConnection connection, TextWriter exportOutput) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Tool/hbm2ddl/SchemaExport.cs:line 362
   at NHibernate.Tool.hbm2ddl.SchemaExport.InitConnectionAndExecute(Action`1 scriptAction, Boolean execute, Boolean justDrop, DbConnection connection, TextWriter exportOutput) in /home/runner/work/nhibernate-core/nhibernate-core/src/NHibernate/Tool/hbm2ddl/SchemaExport.cs:line 455

Same for its async counterpart and for NH2412.Fixture, NH3848.CriteriaTestFixture, NH3848.HqlTestFixture, NH3848.QueryOverTestFixture, QueryTranslator.CustomQueryLoaderFixture and their async counterparts.

fredericDelaporte avatar Jul 02 '23 15:07 fredericDelaporte