Commit 1ee3e86
authored
impl(spanner): heed any google.rpc.RetryInfo in transaction re-run loop (#13761)
If the service returned a `google.rpc.RetryInfo.retry_delay` in the
failing operation that caused `Commit()` to re-run the transaction,
use its value instead of the delay provided by the backoff policy.
Not tested as we do not (yet) have a mechanism to inject/mock the
"sleeper" behavior in the re-run loop.1 parent 0f71367 commit 1ee3e86
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
293 | 296 | | |
294 | 297 | | |
295 | 298 | | |
296 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
297 | 307 | | |
298 | 308 | | |
299 | 309 | | |
| |||
0 commit comments