Skip to content

Commit cd417c6

Browse files
disable streaming thread
1 parent 13ff2db commit cd417c6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,7 @@ private ByteString generateTransactionName(String session) {
651651
counter = new AtomicLong();
652652
transactionCounters.put(session, counter);
653653
}
654+
System.out.printf("Generating session using Session ID %s\n", session);
654655
return ByteString.copyFromUtf8(
655656
String.format("%s/transactions/%d", session, counter.incrementAndGet()));
656657
}
@@ -1999,6 +2000,7 @@ private void ensureMostRecentTransaction(Session session, ByteString transaction
19992000
if (index > -1) {
20002001
long id = Long.parseLong(transactionId.toStringUtf8().substring(index + 1));
20012002
if (id != counter.get()) {
2003+
System.out.printf("Session ID %s TransactionId %s\n", session.getName(), transactionId.toStringUtf8());
20022004
throw Status.FAILED_PRECONDITION
20032005
.withDescription(
20042006
String.format(

0 commit comments

Comments
 (0)