Commit Graph
3468 Commits
Author SHA1 Message Date
pingqiu 7ef3d584f9 Drop retired migration-only import 2026-11-20 00:28:14 -08:00
pingqiu 3c6eab810e Retire migration fixture and adapt native cursor assertions 2026-11-20 00:27:30 -08:00
pingqiu 558ddefffd Preserve native cut guards while removing retired branches 2026-11-20 00:26:14 -08:00
pingqiuandClaude Opus 5.5 a5785ff688 blockvolume: refuse to start unless the chunk filer is the only filer
Block metadata needs exactly one filer behind --chunk-filer. At startup
the chunk wiring asks that filer for its masters and filer group
(filer_pb.SeaweedFiler/GetFilerConfiguration), then the masters for the
filers of that group (master_pb.Seaweed/ListClusterNodes). It refuses
unless a master lists exactly one, and when it cannot get that answer
within 15 s. The filer subset gains GetFilerConfiguration and a master
subset carries ListClusterNodes, generated with the committed plugin
versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:20:10 -08:00
Ping Qiu b42815eb3b Merge pull request #282 from seaweedfs/feat/blockvolume-pprof-fsync-hist
blockvolume: opt-in CPU profile toggled by SIGUSR1
2026-11-20 00:18:03 -08:00
pingqiu 44777514cd test: bound subprocess startup separately from guest I/O budgets 2026-11-20 00:16:42 -08:00
pingqiu 0454c6927b refactor(storage): remove the retired local WAL engine and migration dispatch 2026-11-20 00:16:19 -08:00
pingqiu 586be4a6b4 test: model atomic pool initialization and interrupted publishers 2026-11-20 00:09:40 -08:00
pingqiu 22793c7dbb fix: publish host pool configuration atomically across initializer crashes 2026-11-20 00:07:37 -08:00
pingqiuandClaude Opus 5.5 26e34b6b9a test: expect the profile dir refused where SIGUSR1 is missing
On platforms without SIGUSR1 a set --cpu-profile-dir is refused in flag
parsing; the default (off) stays common to all platforms.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 23:57:18 -08:00
pingqiu 97b1b0bb40 test: verify complete guest block after host budget abort 2026-11-19 23:53:47 -08:00
pingqiu c624695981 test(storage): retain native attached-sync and guarded-frontier contracts 2026-11-19 23:50:52 -08:00
pingqiu 7b65323f54 test(storage): persist reconstructed native bounds before ring reuse 2026-11-19 23:47:44 -08:00
pingqiuandClaude Opus 5.5 fb939adb8a blockvolume: validate the profile dir before startup; stop joins the worker
parseFlags refuses an unusable --cpu-profile-dir (and a platform without
SIGUSR1) before run() activates anything; the handler is installed at
the top of run(). stop removes the handler, stops and joins the signal
worker, then writes out a running profile, so a buffered SIGUSR1 cannot
start a profile after it. Tests decompress the whole profile and check
that no profile runs after stop.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 23:47:25 -08:00
pingqiu 66f0413946 fix: keep the initial cut phase within its configured period 2026-11-19 23:45:55 -08:00
pingqiu f2043f3fb9 test(storage): cover native range-zero image and unsupported replay refusal 2026-11-19 23:45:42 -08:00
pingqiu 559c067f6f test(storage): refuse native committed holes across a torn physical wrap 2026-11-19 23:44:37 -08:00
pingqiu 44e5207d2a test(storage): refuse a native replicated apply queued behind failed append 2026-11-19 23:42:49 -08:00
pingqiu 7899cd9240 fix: expose incompatible pool configuration refusals 2026-11-19 23:40:13 -08:00
pingqiu 07263fa64d test(storage): cover native apply-order default-batch and held-failure contracts 2026-11-19 23:39:59 -08:00
pingqiu fa984cf97f test(storage): retain native ACK suffix across checkpoint crash and torn wrap schedules 2026-11-19 23:39:21 -08:00
pingqiuandClaude Opus 5.5 39f011555a blockvolume: opt-in CPU profile toggled by SIGUSR1
--cpu-profile-dir (default $SWBLOCK_CPU_PROFILE_DIR) names an existing
directory; SIGUSR1 then starts a CPU profile written there as
blockvolume-<pid>-<n>.pprof and the next SIGUSR1 stops it. Shutdown
writes out a running profile. Unset (the default), nothing is installed
and blockvolume is unchanged. No port is opened, so a harness can
profile any running volume with kill -USR1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 23:36:05 -08:00
pingqiu 8bf7cfd663 fix: stagger first cuts without hiding later explicit success 2026-11-19 23:35:48 -08:00
pingqiu 90d9853042 test(storage): refuse native checkpoint publication after concurrent data fsync faults 2026-11-19 23:35:35 -08:00
pingqiu 0e1d8fe911 test(storage): cover native callback purity and malformed batch recovery 2026-11-19 23:33:51 -08:00
pingqiu ebe8fce96b fix: retain degraded sharing while any fallback cut is active 2026-11-19 23:32:54 -08:00
pingqiu aa3f0cc642 test(storage): preserve later ACK through two crashes after a failed native batch 2026-11-19 23:31:23 -08:00
pingqiu 25e18e94ce test(storage): serialize actual native WAL and extent fsync callers 2026-11-19 23:30:22 -08:00
pingqiu 598cf267e2 test(storage): settle retained wrap pressure before the next append 2026-11-19 23:28:52 -08:00
pingqiu 7918d50cfb test(storage): bind native flusher BASE replacement and direct-write refusal 2026-11-19 23:28:43 -08:00
pingqiu 82fbd92af0 test(storage): recover a retained native batch across physical wrap 2026-11-19 23:26:56 -08:00
pingqiu 9d26e96a0f test(storage): cover native checkpoint publication with real process crashes 2026-11-19 23:23:42 -08:00
pingqiu 48bbae1f9f test(storage): preserve native queued-writer refusal and checkpoint failure accounting 2026-11-19 23:21:09 -08:00
pingqiu f39ab212aa test(storage): verify native invalid-record refusal and final-close checkpoint 2026-11-19 23:18:40 -08:00
pingqiu 832f2b8c20 test: settle unexpected permits in host COW integration control 2026-11-19 23:16:46 -08:00
pingqiu 0162ef57b8 test(storage): assert native Sync durability without legacy return-order assumptions 2026-11-19 23:16:21 -08:00
pingqiu 1805e9ba54 test: bind host COW refusal to actual guest writes and worker joins 2026-11-19 23:16:02 -08:00
pingqiu 0714b9a0a5 test(storage): exercise Sync caller publication ordering on native v3 2026-11-19 23:15:11 -08:00
pingqiu 10cae8f855 test(storage): cover native flusher ordering faults and engine-free legacy refusal 2026-11-19 23:14:14 -08:00
pingqiu acb35d15aa test: hold fallback logging while probing COW accounting progress 2026-11-19 23:11:37 -08:00
pingqiu e6178da9dd fix: log degraded host admission outside the COW accounting lock 2026-11-19 23:10:32 -08:00
pingqiu a9bd557a6c test: close the subprocess admission handshake pipe 2026-11-19 23:09:27 -08:00
pingqiu 67266cf8b5 test(storage): retain native applied dirt and invalidate stages on recovery 2026-11-19 23:07:56 -08:00
pingqiu 66ce87fef6 fix: bound each host slot class before adding counts 2026-11-19 23:06:55 -08:00
pingqiu c0982699ee feat: report host slot admission and hold costs 2026-11-19 23:06:14 -08:00
pingqiu 76445f968e fix: reject ignored or invalid host limiter configuration 2026-11-19 23:04:56 -08:00
pingqiu d16f393b71 test(storage): assert batch refusal preserves ring bytes and recovery frontier 2026-11-19 23:03:53 -08:00
pingqiu fc0d75c07c test: settle unexpected limiter admissions on assertion failure 2026-11-19 23:03:53 -08:00
pingqiu b1a03a9183 test(storage): exercise native seed checkpoint and recovery publication faults 2026-11-19 23:01:14 -08:00
pingqiu 7ba1172b9a feat: isolate background fill and idle admission pools 2026-11-19 22:59:13 -08:00