Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 778cb0c

Browse files
committed
Add setRequestIdCreator inside session tests
1 parent f33a0d9 commit 778cb0c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/DatabaseClientImpl.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,16 @@ public CommitResponse writeWithOptions(
216216
return session.writeWithOptions(mutations, withReqId(reqId, options));
217217
});
218218
} catch (RuntimeException e) {
219+
System.out.println("runtime.crashing out\033[31m");
220+
e.printStackTrace();
221+
System.out.println("\033[00m");
219222
span.setStatus(e);
220223
throw e;
224+
} catch (Exception e) {
225+
System.out.println("crashing out\033[31m");
226+
e.printStackTrace();
227+
System.out.println("\033[00m");
228+
throw e;
221229
} finally {
222230
span.end();
223231
}

0 commit comments

Comments
 (0)