Skip to content

Commit 075e120

Browse files
lint(spanner): Fixes comments.
1 parent 4513358 commit 075e120

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,10 @@ ByteString getTransactionId() {
404404
}
405405
}
406406

407+
/**
408+
* Initializes the transaction with the timestamp specified within MultiUseReadOnlyTransaction.
409+
* This is used only for fallback of PartitionQueryRequest and PartitionReadRequest with Multiplexed Session.
410+
*/
407411
void initFallbackTransaction() {
408412
synchronized (txnLock) {
409413
span.addAnnotation("Creating Transaction");

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1573,8 +1573,9 @@ public void testPartitionedQuery_receivesUnimplemented_fallsBackToRegularSession
15731573
}
15741574

15751575
/**
1576-
* Tests the behavior of the server-side kill switch for partitioned query multiplexed sessions. 2
1577-
* PartitionQueryRequest should be received. First with Multiplexed session and second with
1576+
* Tests the behavior of the server-side kill switch for partitioned query multiplexed sessions.
1577+
* The BatchReadOnlyTransaction is initiated using BatchTransactionId.
1578+
* 2 PartitionQueryRequest should be received. First with Multiplexed session and second with
15781579
* regular session.
15791580
*/
15801581
@Test

0 commit comments

Comments
 (0)