Commit 2a4be79
Merge cockroachdb#153182
153182: cloud: fix usage of CombineErrors r=jeffswenson a=jeffswenson
Previously, nodelocal and cloud contained CombineErrors calls that were passing the secondary error as the first argument. This is undesirable because only the first argument to CombineErrors is part of the causal error chain.
The instance of this in WriteFile was uncovered by a fault injection test. An injected error was being unexpectedly retried because Close was failing with a context cancelled error.
Release note: none
Epic: CRDB-53946
Co-authored-by: Jeff Swenson <[email protected]>2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | | - | |
| 458 | + | |
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
0 commit comments