Skip to content

Commit

Permalink
add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
sakthivelmanii committed Jan 6, 2025
1 parent 18a4e5b commit f22b9e8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,10 @@ public void setUp() throws InterruptedException {
if (spanner == null
|| spanner.getOptions().getSessionPoolOptions().isFailIfSessionNotFound()
!= failOnInvalidatedSession) {
System.out.println("Recreating spanner instance");
if (spanner != null) {
System.out.printf("Closing the spanner instance %s %s",
spanner.getOptions().getSessionPoolOptions().isFailIfSessionNotFound(), failOnInvalidatedSession);
spanner.close();
}
SessionPoolOptions.Builder builder = SessionPoolOptions.newBuilder().setFailOnSessionLeak();
Expand Down

0 comments on commit f22b9e8

Please sign in to comment.