候选归档 79 版 / 56MB blob 上,overview、storage、snapshots 三个只读接口 都在 10s 请求期限后返回 503。分段计时定位到唯一瓶颈是按版本重读全部 blob: Open 0ms、LoadManifest×79 11~22ms、ContentUsage 15~25ms、 Usage(逐版 Load 验字节)13.75~14.11s;单版 Load 261~290ms。 - Usage 拆成 Usage(逐版复核字节,同步/恢复与运维 CLI 用)与 UsageFromManifests(同一份去重实现,只做清单级校验),列举路径改用后者; - library_storage.go 每版两次 Load、snapshots 每版一次 Load 改为一次清单读取; - wiki/文档差异只读所需部件,被读部件仍由 OpenPart 复核摘要; - LoadManifest 与 Load 共用同一套清单判据(严格解码 + 重新编码校验); - 列举响应带 verification=manifest / verified=false,详情整版复核后才是 content, 避免把"清单可读"读成"完整性已验证"; - libraryWithDeadline 去掉超时后再写已结束响应的 goroutine 写法 (候选环境实测 http: superfluous response.WriteHeader call)。 回归:多版本共享大 blob 时枚举不读 blob 字节(篡改后枚举仍成功), 而 Load/OpenPart/Usage 仍拒绝坏 blob;坏清单两条路径都整条报错。 make verify 15 项全绿(local 档案)。
This commit is contained in:
@@ -234,7 +234,7 @@ describe('ReleaseTargetsView(确认稿布局)', () => {
|
||||
const html = render()
|
||||
expect(html).toContain('依据 10/28 11:34 封存的测试库全库快照,不代表实时测试库已就绪')
|
||||
expect(html).toContain('同一份封存快照,不是实时 Wiki 队列状态')
|
||||
expect(html).toContain('封存时的逐项校验和,重新封存才会更新')
|
||||
expect(html).toContain('列表只校验清单自身,字节级复核在同步/恢复执行前进行')
|
||||
})
|
||||
|
||||
it('版本与快照抽屉按 scope 列出全部历史并区分测试封存/不可直接恢复', () => {
|
||||
|
||||
@@ -1012,8 +1012,10 @@ export function ReleaseTargetsView(props: ViewProps) {
|
||||
{target ? <em className="rel-scope">同一份封存快照,不是实时 Wiki 队列状态</em> : null}
|
||||
</li>
|
||||
<li className={target ? 'ok' : 'unknown'}>
|
||||
{target ? `✓ 数据完整性:${target.parts.length} 项摘要逐项一致` : '○ 数据完整性:尚无封存可核验'}
|
||||
{target ? <em className="rel-scope">封存时的逐项校验和,重新封存才会更新</em> : null}
|
||||
{target ? `✓ 清单与摘要登记:${target.parts.length} 项部件摘要已记录` : '○ 数据完整性:尚无封存可核验'}
|
||||
{target ? (
|
||||
<em className="rel-scope">封存时逐项哈希登记;列表只校验清单自身,字节级复核在同步/恢复执行前进行</em>
|
||||
) : null}
|
||||
</li>
|
||||
</ul>
|
||||
{gate.reasons.length > 0 ? (
|
||||
|
||||
Reference in New Issue
Block a user