Commit 779775d
authored
Snapshots existing already are ok! (#1759)
Previously, the Downstairs would consider a snapshot existing already as
an error, and unfortunately the Upstairs would continuously retry in the
face of these errors, leading to an indefinite retry loop if any
previous flush (with snapshot) succeeded.
This commit removes the SnapshotExistsAlready error variant, and returns
Ok if the snapshot exists already. This is ok as long as:
- job dependency lists are honoured, meaning no writes can land that
would make each downstairs inconsistent
- snapshot names are random enough that collisions are rare, and
therefore an existing snapshot can be treated as the previous attempt
succeeding
Fixes #1758.1 parent a364c08 commit 779775d
File tree
6 files changed
+585
-175
lines changed- common/src
- downstairs/src
- integration_tests
- src
- upstairs/src
6 files changed
+585
-175
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 118 | | |
122 | 119 | | |
123 | 120 | | |
| |||
426 | 423 | | |
427 | 424 | | |
428 | 425 | | |
429 | | - | |
430 | 426 | | |
431 | 427 | | |
432 | 428 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
953 | 953 | | |
954 | 954 | | |
955 | 955 | | |
956 | | - | |
| 956 | + | |
| 957 | + | |
957 | 958 | | |
958 | 959 | | |
959 | 960 | | |
960 | 961 | | |
961 | 962 | | |
962 | 963 | | |
963 | 964 | | |
964 | | - | |
965 | | - | |
966 | | - | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
967 | 980 | | |
968 | 981 | | |
| 982 | + | |
| 983 | + | |
969 | 984 | | |
970 | 985 | | |
971 | 986 | | |
| |||
999 | 1014 | | |
1000 | 1015 | | |
1001 | 1016 | | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
1002 | 1024 | | |
1003 | 1025 | | |
1004 | 1026 | | |
| |||
1011 | 1033 | | |
1012 | 1034 | | |
1013 | 1035 | | |
| 1036 | + | |
1014 | 1037 | | |
1015 | 1038 | | |
1016 | 1039 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| |||
0 commit comments