From 2d1353e9417502d0f63be5c6c4db2507a78ba736 Mon Sep 17 00:00:00 2001 From: Davide D'Alto Date: Fri, 19 Dec 2025 18:16:58 +0100 Subject: [PATCH] [#2932] Disable current context assertions The Quarkus test suite fails because of them. We will reapply them when we have an alternative solution. --- .../org/hibernate/reactive/pool/impl/SqlClientConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/SqlClientConnection.java b/hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/SqlClientConnection.java index 6b6e9b113..a45984344 100644 --- a/hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/SqlClientConnection.java +++ b/hibernate-reactive-core/src/main/java/org/hibernate/reactive/pool/impl/SqlClientConnection.java @@ -17,7 +17,6 @@ import org.hibernate.engine.jdbc.spi.SqlStatementLogger; import org.hibernate.reactive.adaptor.impl.JdbcNull; import org.hibernate.reactive.adaptor.impl.ResultSetAdaptor; -import org.hibernate.reactive.common.InternalStateAssertions; import org.hibernate.reactive.logging.impl.Log; import org.hibernate.reactive.logging.impl.LoggerFactory; import org.hibernate.reactive.pool.BatchingConnection; @@ -351,7 +350,8 @@ public CompletionStage> preparedQueryOutsideTransaction(String sql) } private void feedback(String sql) { - InternalStateAssertions.assertCurrentContextMatches( this, connectionContext ); + // Disable assertions for now. See https://github.com/hibernate/hibernate-reactive/issues/2932 + // InternalStateAssertions.assertCurrentContextMatches( this, connectionContext ); Objects.requireNonNull( sql, "SQL query cannot be null" ); // DDL already gets formatted by the client, so don't reformat it FormatStyle formatStyle = sqlStatementLogger.isFormat() && !sql.contains( System.lineSeparator() )