Skip to content

Commit

Permalink
HHH-17800 Fix CockroachDB transaction error when forcing connection a…
Browse files Browse the repository at this point in the history
…cquisition
  • Loading branch information
mbladel committed Mar 4, 2024
1 parent 841e4be commit 2716202
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ public void testBulkOperationsWithDifferentConnections() throws Exception {

inTransaction( s1 -> {
// Force connection acquisition
s1.createQuery( "select 1" ).getResultList();
s1.getJdbcCoordinator().getLogicalConnection().getPhysicalConnection();

// Transaction used by s1 is already started.
// Assert that the Connection is already physically connected.
Expand All @@ -524,7 +524,7 @@ public void testBulkOperationsWithDifferentConnections() throws Exception {

inTransaction( s2 -> {
// Force connection acquisition
s2.createQuery( "select 1" ).getResultList();
s2.getJdbcCoordinator().getLogicalConnection().getPhysicalConnection();
// Check same assertions for s2 as was done for s1.
assertTrue( s2.getJdbcCoordinator().getLogicalConnection().isPhysicallyConnected() );
assertEquals(
Expand Down

0 comments on commit 2716202

Please sign in to comment.