Commit bd9e2a6
committed
kv: gRPC Unavailable errors are ambiguous
This error code is used for fail-fast errors (which can be retried
unambiguously), but it is also used in other cases (such as a server
draining) in which we cannot assume that the previous attempt was not
completed. (It's unclear whether this assumption was once true and
changed or if it's always been incorrect. The specific source of
ambiguous Unavailable errors we're seeing is grpc/grpc-go#1147)
This is expected to increase prevalence of AmbiguousResultErrors; this
will be fixed in a follow-up change.
Fixes cockroachdb#174911 parent 361c35e commit bd9e2a6
1 file changed
+4
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
1162 | 1159 | | |
1163 | 1160 | | |
1164 | 1161 | | |
1165 | | - | |
1166 | | - | |
1167 | | - | |
1168 | | - | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
1169 | 1165 | | |
1170 | 1166 | | |
1171 | 1167 | | |
| |||
1176 | 1172 | | |
1177 | 1173 | | |
1178 | 1174 | | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
1183 | | - | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
| 1175 | + | |
1187 | 1176 | | |
1188 | 1177 | | |
1189 | 1178 | | |
| |||
0 commit comments