Skip to content

Commit 65b3234

Browse files
committed
chore(spanner): debug flakiness
1 parent 9ec3a6c commit 65b3234

File tree

1 file changed

+4
-1
lines changed
  • google-cloud-spanner/src/main/java/com/google/cloud/spanner

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static com.google.spanner.v1.Mutation toProtoGetRandomMutation(
419419
com.google.spanner.v1.Mutation.Write.Builder write = null;
420420
com.google.spanner.v1.KeySet.Builder keySet = null;
421421

422-
// Store all the mutations exclusing INSERT.
422+
// Store all the mutations excluding INSERT.
423423
List<com.google.spanner.v1.Mutation> allMutationsExcludingInsert = new ArrayList<>();
424424
// Stores INSERT mutation with large number of values.
425425
com.google.spanner.v1.Mutation largeInsertMutation =
@@ -503,6 +503,9 @@ static com.google.spanner.v1.Mutation toProtoGetRandomMutation(
503503
}
504504
}
505505

506+
System.out.println("Printing");
507+
System.out.println(allMutationsExcludingInsert);
508+
System.out.println(largeInsertMutation);
506509
// Select a random mutation based on the heuristic.
507510
if (allMutationsExcludingInsert.size() > 0) {
508511
int randomIndex = ThreadLocalRandom.current().nextInt(allMutationsExcludingInsert.size());

0 commit comments

Comments
 (0)