Commit 3b69e2a
committed
policies: prevent retry downgrade from serial to non-serial consistency
Add a guard in the retry execution path that prevents any retry policy
from downgrading SERIAL/LOCAL_SERIAL to a non-serial consistency level,
which would break serial read (Paxos) guarantees.
Also add a unit test verifying DowngradingConsistencyRetryPolicy does
not downgrade serial consistency on read timeout or unavailable.1 parent c14edfa commit 3b69e2a
2 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5433 | 5433 | | |
5434 | 5434 | | |
5435 | 5435 | | |
5436 | | - | |
| 5436 | + | |
| 5437 | + | |
| 5438 | + | |
| 5439 | + | |
| 5440 | + | |
| 5441 | + | |
| 5442 | + | |
| 5443 | + | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
| 5447 | + | |
| 5448 | + | |
| 5449 | + | |
5437 | 5450 | | |
5438 | 5451 | | |
5439 | 5452 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1418 | 1418 | | |
1419 | 1419 | | |
1420 | 1420 | | |
| 1421 | + | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
1421 | 1450 | | |
1422 | 1451 | | |
1423 | 1452 | | |
| |||
0 commit comments