Commit b403073
committed
import: do not revert data if cancel called after success
Currently, it is possible that canceling an import after the job marked
the descriptor as online could cause the non-mvcc compliant rollback
code to run on an online range. Note, this fix is still slightly
incomplete. If there is a zombie import job revert logic, that zombie
may revert changes its not supposed to, but the liveness subsystem makes
zombie jobs unlikely.
Release note: Fixes an unlikely bug where import rollback could revert
writes in an online descriptor. This is not a silent failure. It would
only occur if the job entered a failed or cancelled state after the
actual import succeeded and marked the descriptor as on line.
Fixes: #1596031 parent a3467f5 commit b403073
2 files changed
+69
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1479 | 1479 | | |
1480 | 1480 | | |
1481 | 1481 | | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
1482 | 1489 | | |
1483 | 1490 | | |
1484 | 1491 | | |
1485 | 1492 | | |
1486 | 1493 | | |
1487 | 1494 | | |
1488 | | - | |
1489 | 1495 | | |
1490 | 1496 | | |
1491 | 1497 | | |
| |||
1500 | 1506 | | |
1501 | 1507 | | |
1502 | 1508 | | |
1503 | | - | |
1504 | 1509 | | |
1505 | 1510 | | |
1506 | 1511 | | |
| |||
1630 | 1635 | | |
1631 | 1636 | | |
1632 | 1637 | | |
1633 | | - | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1634 | 1657 | | |
1635 | 1658 | | |
1636 | 1659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2169 | 2169 | | |
2170 | 2170 | | |
2171 | 2171 | | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
| 2196 | + | |
| 2197 | + | |
| 2198 | + | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
| 2206 | + | |
| 2207 | + | |
| 2208 | + | |
| 2209 | + | |
| 2210 | + | |
| 2211 | + | |
| 2212 | + | |
| 2213 | + | |
| 2214 | + | |
2172 | 2215 | | |
2173 | 2216 | | |
2174 | 2217 | | |
| |||
0 commit comments