Skip to content

Commit e92ec41

Browse files
authored
chore: increase retry limit on emulator (#3373)
1 parent d5b5ca0 commit e92ec41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ReadWriteTransaction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ private ReadWriteTransaction(Builder builder) {
284284
// emulator is fast, so increasing the limit is reasonable.
285285
this.maxInternalRetries =
286286
builder.usesEmulator && builder.retryAbortsInternally
287-
? DEFAULT_MAX_INTERNAL_RETRIES * 10
287+
? DEFAULT_MAX_INTERNAL_RETRIES * 50
288288
: DEFAULT_MAX_INTERNAL_RETRIES;
289289
this.dbClient = builder.dbClient;
290290
this.delayTransactionStartUntilFirstWrite = builder.delayTransactionStartUntilFirstWrite;

0 commit comments

Comments
 (0)