Skip to content

Commit debee16

Browse files
committed
remove duplicate skipped_tablet_uid
1 parent 9c61660 commit debee16

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/KeyRangeCache.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,9 @@ && leader().distance <= MAX_LOCAL_REPLICA_DISTANCE) {
639639
}
640640
}
641641
for (int index = 0; index < tablets.size(); index++) {
642+
if (checkedLeader && index == leaderIndex) {
643+
continue;
644+
}
642645
CachedTablet tablet = tablets.get(index);
643646
if (!tablet.matches(directedReadOptions)) {
644647
continue;

java-spanner/google-cloud-spanner/src/test/resources/finder_test.textproto

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7283,10 +7283,6 @@ test_case {
72837283
tablet_uid: 195035137
72847284
incarnation: "\001\331"
72857285
}
7286-
skipped_tablet_uid {
7287-
tablet_uid: 195035137
7288-
incarnation: "\001\331"
7289-
}
72907286
}
72917287
}
72927288
event {
@@ -8372,10 +8368,6 @@ test_case {
83728368
tablet_uid: 72351745
83738369
incarnation: "\001H"
83748370
}
8375-
skipped_tablet_uid {
8376-
tablet_uid: 72351745
8377-
incarnation: "\001H"
8378-
}
83798371
}
83808372
}
83818373
event {

0 commit comments

Comments
 (0)