Commit 87043f9
committed
admin: refresh stale comment + add Retry-After assertion (Claude review)
Three follow-ups from Claude review on a8de663:
1) writeTablesError ErrTablesNotLeader comment said "follow-up PR" but
the forwarder is in this PR. The arm is now reached only when no
LeaderForwarder is wired (single-node / leader-only deployments);
when one is configured, tryForwardCreate / tryForwardDelete
intercept the error before writeTablesError is called. Refreshed
the comment to reflect that.
2) TestDynamoHandler_ForwarderTransportErrorReturns503 (CREATE-side)
was missing the Retry-After:1 assertion that its DELETE counterpart
already had. Added it for parity, guards against a future change
that drops Retry-After from writeForwardFailure on only one path.
3) TestDynamoHandler_ForwarderLeaderUnavailableReturns503_Delete and
TestDynamoHandler_ForwarderTransportErrorReturns503_Delete passed a
tables map into notLeaderSource, but notLeaderSource.AdminDeleteTable
unconditionally returns ErrTablesNotLeader without consulting it.
Dropped the no-op map init.1 parent a8de663 commit 87043f9
2 files changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | | - | |
533 | | - | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
534 | 535 | | |
535 | 536 | | |
536 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
| |||
238 | 239 | | |
239 | 240 | | |
240 | 241 | | |
241 | | - | |
242 | | - | |
243 | | - | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
244 | 246 | | |
245 | 247 | | |
246 | 248 | | |
| |||
261 | 263 | | |
262 | 264 | | |
263 | 265 | | |
264 | | - | |
265 | | - | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
0 commit comments