Commit fabc81e
committed
docs(design): address Claude bot round-5 review (2 MEDIUM, 2 LOW)
s3_admission_control.md — MEDIUM: §3.3.1 "Bootstrap reservation"
was ambiguous between peek and acquire. Pin it as a peek
(`peekHeadroom(s3RaftEntryByteBudget)`, no slot acquisition,
matching admission A's contract) and rename the heading to
"Bootstrap headroom check." Document why it must be a peek (an
acquire would multiply per-request slot hold by
`concurrent_chunked_PUTs × 4 MiB` of bootstrap-only credit with no
corresponding payload, reintroducing the head-of-line hazard the
design exists to prevent).
s3_admission_control.md — LOW: §3.3.1 "frame size up to 64 KiB"
was incoherent with the §3.3 semaphore's 1 MiB slot unit (a
channel-backed semaphore can't acquire fractional slots). Clarify
that the awsChunkedReader progress callback **buffers decoded
bytes until a full s3ChunkSize is accumulated, then calls
acquire(s3ChunkSize)**. Worst-case extra buffer per concurrent
chunked PUT is bounded by 1 MiB; on stream EOF the partial buffer
flushes via one final acquire rounded up to one slot. Also adds
`s3RaftEntryByteBudget` to §3.2's constant block (it was used
throughout §3.3.1 but never defined) with a comment showing
the derivation (s3ChunkSize × s3ChunkBatchOps).
s3_raft_blob_offload.md — MEDIUM: §3.2 degraded path floor of 2
chunkblob copies provides weaker-than-Raft durability for N > 3
clusters. On a 5-node cluster Raft tolerates 2 simultaneous
failures for the chunkref but the degraded chunkblob path
(leader + 1 follower) tolerates only 1. Add an explicit note
acknowledging the asymmetry, recommend `chunkBlobMinReplicas = N`
for operators who need the legacy "blob durability == Raft
durability" guarantee, and clarify that the default `(N/2)+1` is
sized for "match Raft quorum" not "match Raft fault tolerance" —
a distinction that is invisible at N=3 and material at N≥5.
s3_raft_blob_offload.md — LOW: §3.5 Phase (3b.i) needs to specify
that the queue-entry delete is **conditional** on (a) the entry
existing and (b) the RC counter still being 0 at the txn's read
timestamp. An unconditional delete would silently succeed on a
queue entry that a re-reference txn has just removed, then proceed
to phase (3b.ii) and local-delete a chunkblob whose RC has bounced
back to 1 — a correctness bug, not just a space leak. The
conditional form is what makes the sweeper safe against the
re-reference race.
No code changes; design docs only.1 parent 7475060 commit fabc81e
2 files changed
Lines changed: 102 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
135 | 147 | | |
136 | 148 | | |
137 | 149 | | |
| |||
225 | 237 | | |
226 | 238 | | |
227 | 239 | | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
233 | 249 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
241 | 262 | | |
242 | 263 | | |
243 | 264 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
251 | 286 | | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
256 | 292 | | |
257 | 293 | | |
258 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
200 | 223 | | |
201 | 224 | | |
202 | 225 | | |
| |||
331 | 354 | | |
332 | 355 | | |
333 | 356 | | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
339 | 373 | | |
340 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
341 | 379 | | |
342 | 380 | | |
343 | 381 | | |
| |||
0 commit comments