Commit 9c185e7
committed
admin: drop dup RoleStore + Retry-After in forward 503 (Codex P2)
Two changes on the AdminForward leader-side dispatcher:
- Codex P2 on PR #635: forwarded 503 leader_unavailable lost
the Retry-After: 1 header that the leader-direct HTTP path
emits. Add retry_after_seconds to AdminForwardResponse so the
follower's bridge can rebuild the same HTTP header (the bridge
side wires it in the next PR; the proto + leader populate it
here). Direct HTTP path is unaffected — the proto field is
only consumed during forwarding.
- Drop the duplicate RoleStore/MapRoleStore declarations from
forward_server.go. They now live in role_store.go (added on
PR #634 for HTTP-side role revalidation) so both surfaces
share one definition.
Tests: extend TestForwardServer_CreateTable_LeaderSteppedDownReturns503
to pin the retry_after_seconds=1 hint.1 parent 55731ff commit 9c185e7
4 files changed
Lines changed: 47 additions & 30 deletions
File tree
- internal/admin
- proto
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | 45 | | |
70 | 46 | | |
71 | 47 | | |
| |||
237 | 213 | | |
238 | 214 | | |
239 | 215 | | |
240 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
241 | 224 | | |
242 | 225 | | |
243 | 226 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
337 | 343 | | |
338 | 344 | | |
339 | 345 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
77 | 87 | | |
0 commit comments