HHH-14867 Forcefully acquire a JDBC connection in a JFR test

This commit is contained in:
Christian Beikov 2024-02-22 14:08:47 +01:00
parent 8a65536c4c
commit 2c8665029d
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,8 @@ public class JdbcConnectionEventTests {
// starting a transaction should trigger the acquisition of the connection
String expectedSessionId = scope.fromTransaction(
session -> {
// Force connection acquisition
session.getJdbcCoordinator().getLogicalConnection().getPhysicalConnection();
final List<RecordedEvent> events = jfrEvents.events()
.filter(
recordedEvent ->