Repository navigation
[PR] Fix: False-positive warnings and true conflict visibility for multi-lane shared storage (automatic dead-process cleanup | 修复:多车道共用存储的误报警告与真冲突可见性(死进程自动清除/跨车道降级/脑裂横幅+一键关闭) - #4434
Merged
Conversation
…ismissable split-brain banner (#3923/#3959) D1: the 'second process' web warning no longer freezes — a foreign pid that has exited is cleared at the status read and logged once. D2: a live foreign pid that maps to a known bili instance of a DIFFERENT lane is the deliberate shared-topology: informational log + banner, wire carries {pid, lane, instanceId, benign:true}. Same lane / unknown process keep the loud corruption warning. G1: a real split-brain contest now surfaces with identity on the web wire (session id + title, both sides' pid/lane/version) and the [split-brain] log line names title + lanes. Writer markers gain an optional lane field (additive; old markers stay valid). G2: POST /__bili/storage/split-brain/ack dismisses the surfaced entry; the same contest (same peer + servedAt) stays quiet, a new one re-surfaces, an unknown session answers 400. Web panel renders the banner (error styling) with a dismiss button (zh+en copy).
This was referenced Oct 23, 2026
ranxianglei
pushed a commit
that referenced
this pull request
Oct 23, 2026
…e passes #4434 (split-brain surface, merged at master tip) left three type exports with no cross-module consumers, red on pristine master. Drop the leading 'export' per the checker's INTERNAL_ONLY prescription — the types stay module-local. Complements in-flight #4419 (which covers the corrupt-index-child exports + lock-sync); different files, no overlap.
ranxianglei
pushed a commit
that referenced
this pull request
Oct 23, 2026
ranxianglei
pushed a commit
that referenced
this pull request
Oct 23, 2026
…n start #4434 (split-brain surface, merged at master tip) added a process-spawning suite without registering it in scripts/live-files.mjs, so the SPAWN_RE tripwire in scripts/run-ci-tests.mjs hard-fails every test shard on any tree built from current master (reproduced locally on pristine master). Concurrency review per the #1248 rule before registering: the file spawns only a portless sleep child plus one port-0 proxy (makeOpts port 0), isolates dirs/env per test via mkdtemp, and restores everything in finally — safe under --test-concurrency 4. Appended at the end of LIVE_FILES per its append-only slot convention (slot = index drives the zone port band); standalone run of the suite passes 5/5.
broduer
pushed a commit
to AvernicAI/billion-context
that referenced
this pull request
Oct 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
什么东西坏了
同时开着多个 bili 车道(如 pi + dsh)共用同一个 sessions 目录时:
修复思路
/__bili/storage/split-brain/ack)——只清横幅不动数据;同一冲突(同 peer 同时间戳)不再弹,新冲突会重新弹出。影响面 / 风险
tests/storage-durability.test.ts原本钉住「死 pid 警告永久保留」的旧 bug 行为,按 D1 新语义更新(活 pid 保留/死 pid 清除,两个方向都断言)。测试
新增
tests/issue-split-brain-surface.test.ts5 项(活/死双方向、benign/非 benign 双方向、真冲突/无冲突双方向、ack 清除/同冲突不弹/新冲突重弹、Web wire+端点 200/400×2);相邻 6 套件(storage-durability/served-markers/web-storage-banner/web-i18n/storage-full-flip/issue4323-drift-escalation)全绿;npm run typecheck干净。config surface
无新增配置项。