Skip to content

Commit 4afff99

Browse files
Add runner logs
1 parent bd3e451 commit 4afff99

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.kokoro/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ test)
7474
# If we rely on certain things only available in newer JVM than Java 8, this
7575
# tests detect the usage.
7676
echo "SUREFIRE_JVM_OPT: ${SUREFIRE_JVM_OPT}"
77-
mvn test -B -V \
77+
mvn test -B -V -Dtest=RetryOnInvalidatedSessionTest -Dsurefire.failIfNoSpecifiedTests=false \
7878
-Dclirr.skip=true \
7979
-Denforcer.skip=true \
8080
-Djava.net.preferIPv4Stack=true \

google-cloud-spanner/src/test/java/com/google/cloud/spanner/RetryOnInvalidatedSessionTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,13 +1750,16 @@ private void asyncTransactionManager_readRowFunction(
17501750
TransactionContextFuture context = manager.beginAsync();
17511751
while (true) {
17521752
try {
1753+
System.out.println("Inside while");
17531754
AsyncTransactionStep<Void, Struct> row =
17541755
context.then((transaction, ignored) -> fn.apply(transaction), executor);
17551756
CommitTimestampFuture ts = row.commitAsync();
17561757
assertThrowsSessionNotFoundIfShouldFail(() -> get(ts));
17571758
break;
17581759
} catch (AbortedException e) {
17591760
context = manager.resetForRetryAsync();
1761+
} catch (Exception e) {
1762+
System.out.println("Got exception " + e.getMessage());
17601763
}
17611764
}
17621765
} finally {

0 commit comments

Comments
 (0)