Skip to content

Commit f22b9e8

Browse files
add more logs
1 parent 18a4e5b commit f22b9e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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
@@ -220,7 +220,10 @@ public void setUp() throws InterruptedException {
220220
if (spanner == null
221221
|| spanner.getOptions().getSessionPoolOptions().isFailIfSessionNotFound()
222222
!= failOnInvalidatedSession) {
223+
System.out.println("Recreating spanner instance");
223224
if (spanner != null) {
225+
System.out.printf("Closing the spanner instance %s %s",
226+
spanner.getOptions().getSessionPoolOptions().isFailIfSessionNotFound(), failOnInvalidatedSession);
224227
spanner.close();
225228
}
226229
SessionPoolOptions.Builder builder = SessionPoolOptions.newBuilder().setFailOnSessionLeak();

0 commit comments

Comments
 (0)