Skip to content

Commit fa31c51

Browse files
committed
chore(spanner): add clirr
1 parent c11f3a2 commit fa31c51

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

google-cloud-spanner/clirr-ignored-differences.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -964,4 +964,16 @@
964964
<className>com/google/cloud/spanner/DatabaseClient</className>
965965
<method>com.google.cloud.spanner.Statement$StatementFactory getStatementFactory()</method>
966966
</difference>
967+
968+
<!-- Add method begin() with AbortedException in TransactionManager and AsyncTransactionManager -->
969+
<difference>
970+
<differenceType>7012</differenceType>
971+
<className>com/google/cloud/spanner/AsyncTransactionManager</className>
972+
<method>com.google.cloud.spanner.AsyncTransactionManager$TransactionContextFuture beginAsync(com.google.cloud.spanner.AbortedException)</method>
973+
</difference>
974+
<difference>
975+
<differenceType>7012</differenceType>
976+
<className>com/google/cloud/spanner/TransactionManager</className>
977+
<method>com.google.cloud.spanner.TransactionContext begin(com.google.cloud.spanner.AbortedException)</method>
978+
</difference>
967979
</differences>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ interface AsyncTransactionFunction<I, O> {
178178
* new transaction for retry attempts. If {@link #resetForRetryAsync()} is not used, you can pass
179179
* the {@link AbortedException} from a previous attempt here to preserve the transaction's
180180
* priority.
181+
*
182+
* <p>For regular sessions, this behaves the same as {@link #beginAsync()}.
181183
*/
182184
TransactionContextFuture beginAsync(AbortedException exception);
183185

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ enum TransactionState {
6868
* <p>This is especially useful in scenarios involving multiplexed sessions and when creating a
6969
* new transaction for retry attempts. If {@link #resetForRetry()} is not used, you can pass the
7070
* {@link AbortedException} from a previous attempt here to preserve the transaction's priority.
71+
*
72+
* <p>For regular sessions, this behaves the same as {@link #begin()}.
7173
*/
7274
TransactionContext begin(AbortedException exception);
7375

0 commit comments

Comments
 (0)