Repository navigation
Commit 3230a64
committed
fix(run-store): let a resolved sub-redis-only run fall back to Postgres under a global redis-only
The read fallback gate refused Postgres whenever the global dial was redis-only,
before checking the run's own resolved mode. Postgres suppression is org-scoped,
so an org held at dual-write or redis-read while the global dial has advanced to
redis-only keeps its whole log in Postgres, yet every read of its runs threw and
the run hung with its data sitting readable in Postgres.
Check the resolved per-run mode first: a run resolved below redis-only falls
back to Postgres, a run resolved to redis-only still refuses, and only an
unresolved run is governed by the global short-circuit. Two tests cover both
directions and fail on the old ordering.1 parent 43da771 commit 3230a64
2 files changed
Lines changed: 41 additions & 9 deletions
File tree
- internal-packages/run-store/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
1133 | | - | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
1134 | 1133 | | |
1135 | 1134 | | |
1136 | 1135 | | |
1137 | 1136 | | |
1138 | 1137 | | |
1139 | 1138 | | |
1140 | | - | |
1141 | | - | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
1142 | 1144 | | |
1143 | 1145 | | |
1144 | 1146 | | |
| |||
0 commit comments