From e22857ca9bab4c2dca31ecf43f029966336daf2d Mon Sep 17 00:00:00 2001 From: Szabolcs Rozsnyai Date: Mon, 7 Oct 2024 13:40:17 +0200 Subject: [PATCH] fix:Fixed transaction tagging and reset datafaker version --- samples/quickperf/pom.xml | 2 +- .../java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/quickperf/pom.xml b/samples/quickperf/pom.xml index 2f16ea14a..2bac2584a 100644 --- a/samples/quickperf/pom.xml +++ b/samples/quickperf/pom.xml @@ -38,7 +38,7 @@ net.datafaker datafaker - 2.3.1 + 1.7.0 com.google.cloud diff --git a/samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java b/samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java index 84e2bc9ac..6b91fa1c8 100644 --- a/samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java +++ b/samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java @@ -163,6 +163,9 @@ public void run() { boolean hasResults = statement.execute(); if (!connection.getAutoCommit()) { connection.commit(); + connection + .createStatement() + .execute(String.format("SET %sTRANSACTION_TAG = '%s'", tagPrefix, config.DEFAULT_TAG)); } long stop = System.nanoTime() - start;