Commit Graph
3468 Commits
Author SHA1 Message Date
pingqiu cdcd8506e8 Merge #322 (explicit cut restarts the periodic timer) into train 5 2026-11-20 19:27:27 -08:00
pingqiu 0a3e9d345a Merge #317 (4.3 batch assign) into train 5 2026-11-20 19:27:27 -08:00
pingqiu 41c5fc2f26 Merge #323 (frozen detach budget + candidate tail + spans) into train 5 2026-11-20 19:27:27 -08:00
pingqiuandClaude Opus 5.5 ab0a8c783e authority: register the lost-range fault hook cleanup before the assertion
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:22:41 -08:00
pingqiu 5fb50607d9 fix: retain freeze reports and account for tail scan work 2026-11-20 19:16:48 -08:00
pingqiuandClaude Opus 5.5 4061d64b49 storage, durable: OnPublishSettled hook after each confirmed publication
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:15:01 -08:00
pingqiu d399404f67 Merge main after Train 4 2026-11-20 19:02:09 -08:00
pingqiuandClaude Opus 5.5 efc01c045f durable: timer test cleanup consumes once; ledger row in Part B
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 19:01:16 -08:00
pingqiu 0430ff4a33 test: qualify frozen detach budget and fixed phase attribution 2026-11-20 19:00:58 -08:00
Ping Qiu 2d345a3663 Merge pull request #321 from seaweedfs/train/20261121-4
Train 4: #319 + #316
2026-11-20 18:58:33 -08:00
pingqiuandClaude Opus 5.5 093fbc26f8 workspace: an uncertain forced-move issue write is an unknown outcome
A forced move whose issuing authority write may have reached the store
but reported an error (memory left unissued), or any move on a volume
whose workspace persistence is already uncertain, now fails with the
typed authority.ErrWorkspaceOutcomeUncertain. MoveWorkspace answers it
as Internal (UNKNOWN outcome: restart, then rerun with the same request
id) and logs it as unknown, never as a refusal; admission refusals and
failures before the issue stay FailedPrecondition.

FileAuthorityStore gets a test-only after-rename fault hook
(SetPutAfterRenameFaultForTest) for the durable-write-then-error control.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:57:05 -08:00
pingqiuandClaude Opus 5.5 91a9356ea4 durable: witness the stale periodic decision and the restarted interval; ledger row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:55:08 -08:00
pingqiu 361676c689 fix(storage): make final freeze override explicit in results 2026-11-20 18:50:51 -08:00
pingqiu 9c3cad238f feat(cli): expose frozen detach budget options 2026-11-20 18:49:25 -08:00
pingqiu 116c1688bc fix(storage): budget detach from the guest freeze origin 2026-11-20 18:47:48 -08:00
pingqiuandClaude Opus 5.5 7da3da0fe2 durable, storage: a periodic cut skips when another cut completed after its decision
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:38:32 -08:00
pingqiuandClaude Opus 5.5 aabbd7f012 test(durable): an explicit cut overlapping the timer deadline restarts it (red)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:38:32 -08:00
pingqiuandClaude Opus 5.5 4bd3c3b0ce test(chunkstore, storage): join every held worker in cleanup
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:38:12 -08:00
pingqiuandClaude Opus 5.5 a879fff64b workspace: fold codex01 review of #320
- S1: a failure after a forced move is issued (binding reconciliation,
  or a publisher error with the move already issued) is answered as
  Internal naming the move ISSUED, never FailedPrecondition; the client
  reports it as unknown with the same-request-id recovery; the issued
  forced grant is logged before anything after the issue can fail.
- S2: the client binds the grant to the request (request, volume,
  expected holder and epoch, target replica and host, higher epoch) and
  the range to the grant (volume, request, epochs, old replica, HEAD
  gen, frontier); lost-range answers must name the asked volume/request.
- S3: the exit-4 recovery command carries --master, shell-quoted.
- S4: HEAD time labelled "(publishing host clock as recorded in the
  filer, 1 s resolution)".
- T1: master test registers cleanup as soon as the master starts.
- Ledger: INV-WS-LOST-RANGE-READOUT-001 statement and tests, M2 issue row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:37:48 -08:00
pingqiuandClaude Opus 5.5 a89eb5c9cb chunkstore, storage: batch-assign second fold: authority check, failure-safe witnessed tests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:20:34 -08:00
pingqiu cc1747aa3a Merge #316 (plain-detach capability flag) into train 4 2026-11-20 18:19:14 -08:00
pingqiu 0e643206b5 Merge #319 (amendment 4: commit rule + fresh fixed window) into train 4 2026-11-20 18:19:14 -08:00
pingqiu 1ad83a4f5c fix(storage): compare only known pre-copy estimates 2026-11-20 18:10:25 -08:00
pingqiuandClaude Opus 5.5 c1af931b45 workspace: forced-move CLI and lost-range readout
sw-block ops workspace force-move (forced only, --confirm-forced
<volume>@<epoch>, --dry-run preview) and lost-range, over one shared
client package core/rpc/wsclient.

- WorkspaceGrant carries the stored lost range on issued forced grants
  (also on replay), or lost_range_error when the record is missing or
  fails its checks.
- New RPCs QueryWorkspaceLostRange (all stored ranges in issue order, or
  one; DataLoss when unproven) and PreviewWorkspaceMove (read-only
  forced admission; HEAD read only once admitted).
- The HEAD reader takes the HEAD entry's filer mtime from Last-Modified;
  the lost range stores it beside the v1 ranges with its own checksum
  (older binaries still verify the file; unknown when absent).
- The master logs every issued forced grant.
- Ledger: INV-WS-LOST-RANGE-READOUT-001, INV-WS-FORCED-CONFIRM-001; M2
  forced and issue rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 18:04:23 -08:00
pingqiuandClaude Opus 5.5 d0fc061a77 chunkstore, storage: batch-assign review fold
Discard a reservation reply that lost a race with a retirement; keep a
slot's fid while an upload to it is unresolved and read it back before
giving it up; send under the token's deadline; make a rejected token and
used-up replacements final through storage; count every reservation
attempt; validate key width, offset overflow and location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 17:58:35 -08:00
pingqiu 204334c776 test(storage): cover zero one and two fresh fixed samples 2026-11-20 17:58:15 -08:00
pingqiu 5eac7ebf88 test(storage): verify declared freeze overruns under disk load 2026-11-20 17:53:47 -08:00
pingqiu 96bb2c7f87 fix(storage): preserve warm rate-window reporting 2026-11-20 17:51:49 -08:00
pingqiu b6a3f5840c fix(storage): allow available fresh fixed-cost observations 2026-11-20 17:50:38 -08:00
pingqiu b3734dc2cb fix(storage): admit bounded pre-copy plateaus and age fixed samples 2026-11-20 17:48:14 -08:00
pingqiu 90aa567bc2 Merge remote-tracking branch 'origin/main' into feat/plain-detach-capability 2026-11-20 17:41:11 -08:00
pingqiu 9671321295 fix(maintenance): leave shared CLI admission to verification 2026-11-20 17:39:47 -08:00
Ping Qiu 2adf8c7d0b Merge pull request #315 from seaweedfs/train/20261121-3
Train 3: #311 + #312 + #313 + #314
2026-11-20 17:25:39 -08:00
pingqiu e04b2cf28e test(chunk): witness every scheduler stopper joining its worker 2026-11-20 17:25:19 -08:00
pingqiu 3deba72797 test(chunk): witness periodic no-op and foreign-fork protection 2026-11-20 17:20:00 -08:00
pingqiu 2928563c5a feat(chunk): schedule periodic HEAD capture and scoped maintenance 2026-11-20 17:15:23 -08:00
pingqiuandClaude Opus 5.5 7c4d08199f test: cuts upload through rounds; JWT integration for native offset fids
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 17:04:27 -08:00
pingqiuandClaude Opus 5.5 c32467824d chunkstore, storage: batch assign for upload rounds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:57:01 -08:00
pingqiuandClaude Opus 5.5 a82c37e6ac Merge #314 (plain detach) into train 3
Docs-only conflicts with #311 resolved as a union: invariants.md keeps the
INV-CUT-PLAIN-DETACH-001 row and #311's INV-CUT-PRECOPY-001 row; spec README
keeps both the PrecopyFixedAdmission and PlainDetach sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:54:22 -08:00
pingqiu 20dd88c0b4 Merge #313 into train 3 2026-11-20 16:54:14 -08:00
pingqiu e283124abc Merge #312 into train 3 2026-11-20 16:54:14 -08:00
pingqiu 965cb93e03 Merge #311 into train 3 2026-11-20 16:54:14 -08:00
pingqiu 92d2c3fa89 fix: expose cut timing fields and admit drain refusal in fixture 2026-11-20 16:48:21 -08:00
pingqiuandClaude Opus 5.5 6a89b14a85 test(chunkstore): batch-assign ranges and put rounds (red)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:47:32 -08:00
pingqiu 11227d158a feat: advertise plain chunk detach capability 2026-11-20 16:23:50 -08:00
pingqiu 33f6212e0b Merge main and retain bounded pre-copy admission controls 2026-11-20 16:16:17 -08:00
pingqiu a28f2b73b5 docs: restore pre-copy transition and place plain detach invariant 2026-11-20 16:13:44 -08:00
pingqiu ea38af0f9c test: isolate plain detach pre-copy bypass control 2026-11-20 16:04:25 -08:00
pingqiu 4f395e23f7 feat: allow idle frontend plain chunk detach 2026-11-20 16:02:38 -08:00
pingqiuandClaude Opus 5.5 45b3ec7c81 ci: post-merge-review: read an allow list's unterminated last line
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:43:02 -08:00