两条陷阱都是这次真作业里查出来的,且都被"只测内层/只喂裸 key"的用例盖住过: 包装层丢掉可选接口导致写集合静默跳过;对象存储四个入口吃不同定位符形状。 docs/evidence/2026-10-30-real-sync-restore 只放脱敏结果:作业/阶段/版本/维护窗口、 22 个资源与桶内字节、归档三处 sha256 对拍、以及"归档根下没有 writesets/"这个事实。
This commit is contained in:
@@ -68,4 +68,5 @@ python3 ~/.hermes/scripts/gitea_api.py GET "/api/v1/repos/Weknora/knowledge-gove
|
||||
|
||||
| # | 一句话 | 全文 |
|
||||
| --- | ------ | ---- |
|
||||
| — | (待填) | — |
|
||||
| 14 | 包一层装饰器就丢掉可选接口 ⇒ 写集合台账被静默跳过 | `docs/agents/traps.md` |
|
||||
| 15 | Stat/Delete/Copy 与 Open/Put 吃不同的定位符形状 | `docs/agents/traps.md` |
|
||||
|
||||
@@ -1,5 +1,47 @@
|
||||
# Changelog
|
||||
|
||||
## 开发快照(真实同步/恢复后的页面修正与写集合转发)
|
||||
|
||||
### Fixed
|
||||
|
||||
- **写集合台账在真作业里根本没生成**:worker 把目标包成 `contentTrackedTarget`
|
||||
以标记"内容可能半写",但包装层没转发 `PlanWriteSet`,而 orchestrator 是用
|
||||
**类型断言** `target.(WriteSetPlanner)` 决定要不要算写集合的 —— 断言恒为假,
|
||||
台账既不落盘也不登记。真实后果:10-29 两次真作业的预备份证据里都没有
|
||||
`writeset_digest`,归档根下没有 `writesets/`,一旦 worker 崩在写入中间接管必然
|
||||
失败。现在包装层显式转发;内层不支持预检时返回硬错误,不退回"没有台账也照写"。
|
||||
- **`S3ObjectStore.Stat`/`Delete`/`Copy` 与 `Open`/`Put` 吃不同的定位符**:真实资源
|
||||
路径是 `storage://<backend>/<provider>://<bucket>/<key>`,前三个用只认单层的
|
||||
`validObjectLocator` 并把整串当对象键,于是"对象在桶里但校验读不到"。现在四个
|
||||
入口共用 `validObjectKey` + `providerPathFromLocator`。集成用例改成喂真实定位符,
|
||||
负例覆盖键不存在 / provider 不符 / 路径穿越 / 复制源不存在;写集合集成用例里
|
||||
那条"读不到也当通过"的容忍断言改为真断言。
|
||||
- **已成功/已失败的作业在页面上仍写"尚未启动""此时尚未运行"**:生产版本行与作业条
|
||||
的文案原来写死,阶段条只认 `kind=sync`。现在按作业类型与终态显示,恢复/基线也
|
||||
用同一串阶段读自己的阶段行(不再一律"本次作业尚未开始")。
|
||||
- **预备份已登记却显示"尚未创建/无记录"**:`overview.prebackup` 原来只认"与拟发布
|
||||
快照同内容的那一份",而恢复作业登记的是**恢复前**的备份,两者必然不同。现在显示
|
||||
最近一次已登记预备份,并给出所属作业与"是否为当前拟发布目标";闸口判定不变。
|
||||
- **所有归档都被标成"测试封存"**:归档根下同时有目标基线与每次预备份。overview 新增
|
||||
轻量版本清单(不含 evidence),抽屉按登记过的 kind 标注每份快照,未登记的归档
|
||||
如实写"未登记(归档文件,不作为发布候选)"。
|
||||
- **基线与恢复被写成"生产同步"/"封存进行中"**:作业类型改成逐类映射
|
||||
(测试封存 / 生产同步 / 按版本恢复 / 建立目标基线),页签徽标、作业头、明细表同步。
|
||||
- **轮询只覆盖封存队列**:点了同步/恢复/建立基线之后页面根本不刷新,看上去像"还没
|
||||
启动",而失败作业又可能被无限轮询。现在轮询覆盖"投递 → 终态读回":投递中的动作、
|
||||
封存队列作业、任一 scope 的在飞持久作业都算在跑;读到终态(成功/失败/取消)再读
|
||||
回一次就停。
|
||||
- **维护窗口的起始时间永远是第一次建立基线那一刻**:`acquired_at` 没进
|
||||
`ON CONFLICT DO UPDATE`,新作业接管已释放的窗口时不会换时间。库级与实例级两份
|
||||
SQL 都改成"同一作业重入才保留旧值,新作业接管用本次时间"。
|
||||
|
||||
### Added
|
||||
|
||||
- `docs/agents/traps.md` trap-14(包装层丢掉可选接口 ⇒ 台账静默跳过)、
|
||||
trap-15(对象存储各入口定位符形状不一致)。
|
||||
- 真实 PostgreSQL 用例:维护窗口起始时间只属于当前这次占用。
|
||||
- 真实 MinIO 用例:正例用 `storage://` 定位符走 Put/Open/Stat/Copy/Delete,负例四种。
|
||||
|
||||
## 开发快照(基线崩溃续作、维护原状态保留与真实恢复演练工具)
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -345,3 +345,41 @@ YAML 里只调用它,不再内联这套拼接。
|
||||
|
||||
**修法**:`ci_gate.resolve_scope()`(`--self-test` 里有专门的 `total_commits=0` 分支)。
|
||||
教训:负例要**照真实事件负载的形状**造,不能只造自己想的形状。
|
||||
|
||||
## trap-14:包一层装饰器就丢掉"可选接口"⇒ 写集合台账被静默跳过
|
||||
|
||||
**症状**:真同步作业成功、阶段全绿,但预备份版本证据里没有 `writeset_digest`,
|
||||
归档根下也没有 `writesets/`。崩溃接管时 `loadWriteSetForJob` 立刻读不到台账,
|
||||
作业只能失败并把目标留在维护里。
|
||||
|
||||
**根因**:`libraryrelease.Run` 用**类型断言**决定要不要在写第一笔之前算写集合
|
||||
(`target.(WriteSetPlanner)`)。worker 把目标包成 `contentTrackedTarget` 以标记
|
||||
"内容可能半写",但这个包装只转发了 `Current/Apply/Verify/Restore` —— 断言
|
||||
因此恒为假,整段台账逻辑被**静默跳过**(没有日志、没有错误)。
|
||||
|
||||
**判据**:任何 `*_test.go` 里断言 `libraryrelease.Target(包装体).(WriteSetPlanner)`
|
||||
必须为真;或直接查真作业的预备份 `evidence->>'writeset_digest'` 是否非空。
|
||||
|
||||
**修法**:包装层显式转发该方法;内层不支持时返回硬错误,**不要**退回"没有台账也照写"。
|
||||
更一般的规则:只要上游靠可选接口(`XxxPlanner`/`XxxObserver`)决定行为,
|
||||
每个包装层都要么转发它,要么让断言失败可见。
|
||||
|
||||
**反例**:只给内层目标写测试(它当然实现),从不测"包装后的目标还实现吗"。
|
||||
|
||||
## trap-15:`Stat`/`Delete`/`Copy` 与 `Open`/`Put` 吃不同的定位符形状
|
||||
|
||||
**症状**:对象明明在桶里,`Put` 与 `Open` 都成功,`Stat` 却报
|
||||
`invalid release object read` 或 404。
|
||||
|
||||
**根因**:真实资源路径是 `storage://<backend>/<provider>://<bucket>/<key>`(嵌套
|
||||
scheme)。`validObjectKey` 认这种形状并把它拆成裸 key,`ValidObjectLocator` 只认单层;
|
||||
`Open`/`Put` 用前者,`Stat`/`Delete`/`Copy` 用后者、而且直接把整串当对象键。
|
||||
|
||||
**判据**:集成用例必须喂**真实定位符**(含 `storage://` 前缀与内层桶),负例覆盖
|
||||
"键不存在 / provider 不符 / 路径穿越 / 复制源不存在"。
|
||||
|
||||
**修法**:所有按路径操作的入口共用同一对函数(`validObjectKey` +
|
||||
`providerPathFromLocator`),测试不要只喂裸 key —— 裸 key 会让这条不一致完美隐身。
|
||||
|
||||
**反例**:`if _, _, err := store.Stat(...); err == nil { t.Log("...") }` —— 读不到也
|
||||
算通过,等于把断言关掉了。
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
# 真实同步 / 恢复之后的持久证据(2026-10-29 UTC,本机测试栈)
|
||||
|
||||
这两次作业都是**父在 8088 管理员页面点的**,不是脚本模拟、也不是 helper 杀进程演练:
|
||||
|
||||
| 作业 | 类型 | 结果 | 目标 |
|
||||
| --- | --- | --- | --- |
|
||||
| `libsync-internal-1793292008635856030` | sync | succeeded / finalize | 源测试封存 `fc595511c738…` → 目标 `kgseal-1029a`(tenant 10001,KB `e64e82b5…`) |
|
||||
| `librestore-internal-1793293164573204381` | restore | succeeded / finalize | 恢复到预备份 `4b720eb42fca…`(恢复前先备份成 `089676a09107…`) |
|
||||
|
||||
本目录只放**脱敏**结果:没有口令、没有令牌、没有连接串。涉及凭据的核验都在进程内完成
|
||||
(对象字节比对用 `tmp/verifyresource` 探针,凭据只从环境变量读、不打印)。
|
||||
|
||||
## 文件
|
||||
|
||||
- `jobs.txt` — 两条 `library_jobs` 原始行(state/stage/actor/幂等键/两个快照号/时间)。
|
||||
- `stages.txt` — 两条作业的 `library_job_stages`(每阶段 total/completed/bytes)。
|
||||
- `versions.txt` — `library_versions` 三类版本(test_sealed / production_effective /
|
||||
production_prebackup)+ evidence。
|
||||
- `maintenance.txt` — 实例级与库级维护窗口(谁持有、入口状态、原运行状态、释放时间)。
|
||||
- `archive-integrity.txt` — 归档清单的内容寻址自校验(文件字节 sha256 == 快照号),
|
||||
以及"归档根下**没有** writesets/ 台账"这个事实。
|
||||
- `resources-verify.json` — 目标库 22 个资源逐条:行内 size、桶里对象的 size/sha256、
|
||||
绑定/授权计数,以及归档里资源分项的 blob sha256 三处对拍。
|
||||
- `retrieval.txt` — 文档/分块/Wiki 计数、ES live 索引的文档归属、资源与绑定统计。
|
||||
|
||||
## 复现命令(只读)
|
||||
|
||||
```bash
|
||||
# 作业与阶段
|
||||
docker exec knowledge-governance-p1-postgres-1 psql -U governance -d governance \
|
||||
-c "select id,state,stage,snapshot_id,target_snapshot_id from library_jobs order by created_at desc limit 5"
|
||||
|
||||
# 资源三处对拍(需要目标库 DSN、对象密钥、归档根;全部从环境变量读,不打印)
|
||||
go build -o /tmp/verifyresource ./tmp/verifyresource
|
||||
KG_TARGET_DSN=… KG_OBJECT_ENDPOINT=… KG_OBJECT_ACCESS_KEY=… KG_OBJECT_SECRET_KEY=… \
|
||||
KG_OBJECT_BUCKET=kgseal-1029a KG_ARCHIVE_ROOT=/var/lib/knowledge-governance/library \
|
||||
KG_SNAPSHOT_ID=4b720eb42fca… /tmp/verifyresource
|
||||
|
||||
# 检索侧只有恢复后的那 2 个分块
|
||||
curl -s "http://127.0.0.1:19200/kgseal_1029_chunks/_search?size=5&_source=knowledge_id"
|
||||
```
|
||||
|
||||
## 结论边界
|
||||
|
||||
- 资源计数 **22** 是"1 份恢复后的资源 + 21 份本次同步上传的对象字节仍在桶里"。行层面
|
||||
只有 1 条绑定、0 条授权;21 条资源行 `state=active` 但无绑定、无引用,分块/索引/Wiki
|
||||
三层都查不到它们。
|
||||
- 恢复**只回滚行、不删对象**:对象字节保留是设计语义(删除不在授权范围内),
|
||||
"保留"不等于"可检索"。
|
||||
- 目标实例 `models` 表为空、`tenant_api_keys` 为空,`/run/release-secrets/target_weknora_api_key`
|
||||
被目标 401 拒绝 —— 这是 external 范围拿不到"合法模型 + 合法服务令牌"的实证。
|
||||
@@ -0,0 +1,14 @@
|
||||
# 归档完整性:清单文件字节的 sha256 必须等于它的快照号(内容寻址)
|
||||
|
||||
snapshot=4b720eb42fca75de40aa862f2b53d0751e648d760dafaca309aaee08771f2c73
|
||||
sha256=4b720eb42fca75de40aa862f2b53d0751e648d760dafaca309aaee08771f2c73 size=2185 self_addressed=MATCH
|
||||
snapshot=089676a09107ceab3bf5e88651f443da26e5d9b2d0de380840c5ec24941a07c2
|
||||
sha256=089676a09107ceab3bf5e88651f443da26e5d9b2d0de380840c5ec24941a07c2 size=5540 self_addressed=MATCH
|
||||
snapshot=fc595511c7388d8e6cab3de37af8a2b6a64ede47241918684e81f2fb5d0e1f16
|
||||
sha256=fc595511c7388d8e6cab3de37af8a2b6a64ede47241918684e81f2fb5d0e1f16 size=5541 self_addressed=MATCH
|
||||
|
||||
# 本次两次真作业之后,归档根下有没有 writeset 台账
|
||||
ls: 无法访问 '/home/zheromiku/.local/share/knowledge-governance/library/writesets': 没有那个文件或目录
|
||||
|
||||
# 归档体积
|
||||
55M /home/zheromiku/.local/share/knowledge-governance/library
|
||||
@@ -0,0 +1,9 @@
|
||||
# library_jobs(两条真作业,2026-10-29 UTC)
|
||||
|
||||
id | scope | kind | state | stage | actor | snapshot_id | target_snapshot_id | queue_job_id | error | recovery | created_at | updated_at | finished_at
|
||||
-----------------------------------------+----------+---------+-----------+----------+-------+------------------------------------------------------------------+------------------------------------------------------------------+-----------------------------------+--------------------------------------------------------------+----------------------------------------------------------------------------------------+-------------------------------+-------------------------------+-------------------------------
|
||||
libsync-internal-1793281384686122451 | internal | sync | failed | rollback | admin | 7d79e8b3567a542c27142245ec3b0fd46c36a7e3193a117e05f7a69035cf7ddf | fc595511c7388d8e6cab3de37af8a2b6a64ede47241918684e81f2fb5d0e1f16 | qd7510eadef263b6edc5903cc09dfcd67 | 生产缺少资源 023ff689-b57b-46a8-8455-b24bd13bb309 的存储路径 | 已恢复到预备份 backup-7d79e8b3567a542c27142245ec3b0fd46c36a7e3193a117e05f7a69035cf7ddf | 2026-10-29 13:43:04.686122+00 | 2026-10-29 13:43:19.443695+00 | 2026-10-29 13:43:19.443695+00
|
||||
libsync-internal-1793292008635856030 | internal | sync | succeeded | finalize | admin | 4b720eb42fca75de40aa862f2b53d0751e648d760dafaca309aaee08771f2c73 | fc595511c7388d8e6cab3de37af8a2b6a64ede47241918684e81f2fb5d0e1f16 | qaaec9cdbf937cdab5456da1a716d2fd1 | | | 2026-10-29 16:40:08.635856+00 | 2026-10-29 16:40:36.795334+00 | 2026-10-29 16:40:36.795334+00
|
||||
librestore-internal-1793293164573204381 | internal | restore | succeeded | finalize | admin | 089676a09107ceab3bf5e88651f443da26e5d9b2d0de380840c5ec24941a07c2 | 4b720eb42fca75de40aa862f2b53d0751e648d760dafaca309aaee08771f2c73 | q3488f8365843537d6cddee177efd16c2 | | | 2026-10-29 16:59:24.573204+00 | 2026-10-29 16:59:51.01581+00 | 2026-10-29 16:59:51.01581+00
|
||||
(3 rows)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
# 维护窗口(实例级 + 库级)
|
||||
|
||||
scope | owner_job_id | target_identity | state | original_service_state | note | acquired_at | updated_at | released_at | level | target_fingerprint | services | ingress_state
|
||||
----------+-----------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------+-------------------------------+-------------------------------+-------------------------------+----------+------------------------------------------------------------------+----------+---------------
|
||||
internal | librestore-internal-1793293164573204381 | scope=internal db=kgseal-postgres:5432/kgseal_target index=kgseal_1029_chunks bucket=kgseal-1029a | level=instance instance=kgseal-app project=kgseal-weknora writers=app ingress=http://kgseal-ingress:18084/health db=kgseal-postgres:5432/kgseal_target index=kgseal_1029_chunks bucket=kgseal-1029a fingerprint=69e77f36c2ff5718458496c21eb12b17508515a73e5694e96e48cd882690e9d5 | released | container:85af4574672d8c5051aa55c00f02f5ee90cb8fc1ec03b50c2869af2d68fd00fe=85af4574672d8c5051aa55c00f02f5ee90cb8fc1ec03b50c2869af2d68fd00fe running=true healthy=true | 写入与校验完成,目标已按原运行状态恢复 | 2026-10-29 13:37:38.301584+00 | 2026-10-29 16:59:51.009137+00 | 2026-10-29 16:59:51.009137+00 | instance | 69e77f36c2ff5718458496c21eb12b17508515a73e5694e96e48cd882690e9d5 | ["app"] | open
|
||||
(1 row)
|
||||
|
||||
instance | owner_job_id | owner_scope | target_fingerprint | level | services | ingress_state | state | original_service_state | note | acquired_at | updated_at | released_at
|
||||
------------+-----------------------------------------+-------------+------------------------------------------------------------------+----------+----------+---------------+----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------------------------------------+-------------------------------+-------------------------------+-------------------------------
|
||||
kgseal-app | librestore-internal-1793293164573204381 | internal | 69e77f36c2ff5718458496c21eb12b17508515a73e5694e96e48cd882690e9d5 | instance | ["app"] | open | released | container:85af4574672d8c5051aa55c00f02f5ee90cb8fc1ec03b50c2869af2d68fd00fe=85af4574672d8c5051aa55c00f02f5ee90cb8fc1ec03b50c2869af2d68fd00fe running=true healthy=true | 写入与校验完成,目标已按原运行状态恢复 | 2026-10-29 13:37:38.301584+00 | 2026-10-29 16:59:51.009137+00 | 2026-10-29 16:59:51.009137+00
|
||||
(1 row)
|
||||
|
||||
@@ -0,0 +1,222 @@
|
||||
{
|
||||
"archive_crosscheck": {
|
||||
"resource_parts": [
|
||||
{
|
||||
"blob_bytes": 507,
|
||||
"blob_matches_manifest": true,
|
||||
"blob_sha256": "25a55cd886544f2ccf7eb25def0eb36c31bcebda356747a6ae6744da20095c35",
|
||||
"copy_error": "\u003cnil\u003e",
|
||||
"declared_sha256": "25a55cd886544f2ccf7eb25def0eb36c31bcebda356747a6ae6744da20095c35",
|
||||
"resource_id": "1f0e979b-9588-42d7-9b38-7c1b2ca05e23"
|
||||
}
|
||||
],
|
||||
"snapshot_id": "4b720eb42fca75de40aa862f2b53d0751e648d760dafaca309aaee08771f2c73"
|
||||
},
|
||||
"bound": 1,
|
||||
"chunks": 2,
|
||||
"generated_at": "2026-10-29T17:29:03Z",
|
||||
"knowledges": 1,
|
||||
"objects": [
|
||||
{
|
||||
"id": "e4a24dae-c480-4df8-b97f-792c07afd339",
|
||||
"state": "active",
|
||||
"row_size": 4799,
|
||||
"content_hash_in_row": "",
|
||||
"object_size": 4799,
|
||||
"object_sha256": "5d8f38d0c68482f88f795567124892e1e7ec12d2555675930a24ab7da5f17178",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "6d1200f8-ecab-455d-838c-401c7380c663",
|
||||
"state": "active",
|
||||
"row_size": 309927,
|
||||
"content_hash_in_row": "",
|
||||
"object_size": 309927,
|
||||
"object_sha256": "e153957333e8b48e27878c1e9896545a5bffaf9ae8b1518336c14b00e2d15824",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "146cd879-e3ec-4379-99f1-3e4a3a2fbb17",
|
||||
"state": "active",
|
||||
"row_size": 833862,
|
||||
"content_hash_in_row": "",
|
||||
"object_size": 833862,
|
||||
"object_sha256": "164d4726d1a90a16f2bcfc7ef65f41c70370626a252529cf525cb1e5d3964e6f",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "8558b933-3ae6-4903-af5c-12191508ec13",
|
||||
"state": "active",
|
||||
"row_size": 25550195,
|
||||
"content_hash_in_row": "",
|
||||
"object_size": 25550195,
|
||||
"object_sha256": "b52d5e7ccf88393a62e212f15e76177b164b11f11fed4ed81adb4157424da104",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "3d06f2ea-c776-4f00-9dc8-04bd50adf0cd",
|
||||
"state": "active",
|
||||
"row_size": 10694004,
|
||||
"content_hash_in_row": "6e33adeb2edc48cd8aeaf73a578126e7074cf96688ef284b3979e999a1472bdf",
|
||||
"object_size": 10694004,
|
||||
"object_sha256": "6e33adeb2edc48cd8aeaf73a578126e7074cf96688ef284b3979e999a1472bdf",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "07fc9f95-b050-45a1-b895-295050e62980",
|
||||
"state": "active",
|
||||
"row_size": 9528401,
|
||||
"content_hash_in_row": "8edce5de1edff42b30714bbda5915bbc5e028d6d56b7ad8995b9966bcee44661",
|
||||
"object_size": 9528401,
|
||||
"object_sha256": "8edce5de1edff42b30714bbda5915bbc5e028d6d56b7ad8995b9966bcee44661",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "1456df99-028e-4991-846e-b929eb795496",
|
||||
"state": "active",
|
||||
"row_size": 3750682,
|
||||
"content_hash_in_row": "edcf03327bb8c78f3ab8dbe8f765ad73409487e27c4f1e173063e7d91db06206",
|
||||
"object_size": 3750682,
|
||||
"object_sha256": "edcf03327bb8c78f3ab8dbe8f765ad73409487e27c4f1e173063e7d91db06206",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "bc271567-58c2-4f82-a6f4-c1d017b580f9",
|
||||
"state": "active",
|
||||
"row_size": 1582162,
|
||||
"content_hash_in_row": "4c4ad050e8d36d55902fbb4b687404d6e340813e64e36d9c87a5a1047e9f0fbf",
|
||||
"object_size": 1582162,
|
||||
"object_sha256": "4c4ad050e8d36d55902fbb4b687404d6e340813e64e36d9c87a5a1047e9f0fbf",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "719767d8-1957-4e49-be70-c533bc6b931b",
|
||||
"state": "active",
|
||||
"row_size": 58124,
|
||||
"content_hash_in_row": "276d5a00f2b05a35132e5ec632fc91da17217004096c903a839d194c55c3a544",
|
||||
"object_size": 58124,
|
||||
"object_sha256": "276d5a00f2b05a35132e5ec632fc91da17217004096c903a839d194c55c3a544",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "d2b499f1-b8e8-45b9-8f44-1b37e2fe30c4",
|
||||
"state": "active",
|
||||
"row_size": 99763,
|
||||
"content_hash_in_row": "f1f1877065a4a2e432eb06d1e5004783cb808866d4aeb44fa7ae1b6bef0861c2",
|
||||
"object_size": 99763,
|
||||
"object_sha256": "f1f1877065a4a2e432eb06d1e5004783cb808866d4aeb44fa7ae1b6bef0861c2",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "023ff689-b57b-46a8-8455-b24bd13bb309",
|
||||
"state": "active",
|
||||
"row_size": 57879,
|
||||
"content_hash_in_row": "02be987d325b57b926584498c45af6c61fd82982a0ce30fba7f9f44fa1169496",
|
||||
"object_size": 57879,
|
||||
"object_sha256": "02be987d325b57b926584498c45af6c61fd82982a0ce30fba7f9f44fa1169496",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "81da5f3b-0bf1-4666-b7b5-3b9c095b6f2e",
|
||||
"state": "active",
|
||||
"row_size": 49986,
|
||||
"content_hash_in_row": "b8669ddec646a497aae828e0288eb0e9078e3d0888048930e62094ec3bd91440",
|
||||
"object_size": 49986,
|
||||
"object_sha256": "b8669ddec646a497aae828e0288eb0e9078e3d0888048930e62094ec3bd91440",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "9fcc4450-5e7a-4cee-8267-1e6331d5fd4f",
|
||||
"state": "active",
|
||||
"row_size": 36959,
|
||||
"content_hash_in_row": "98ba3675f8d9e7a8996fc606ff8c32c3634c20359448152d8c3385001875324d",
|
||||
"object_size": 36959,
|
||||
"object_sha256": "98ba3675f8d9e7a8996fc606ff8c32c3634c20359448152d8c3385001875324d",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "2125cee7-8cce-46af-a5a5-a3c2d6a09763",
|
||||
"state": "active",
|
||||
"row_size": 27566,
|
||||
"content_hash_in_row": "269ffb63cbf6a8a7bbe95be7b25a8fa8842470bab196a7247e349f478cbd9e18",
|
||||
"object_size": 27566,
|
||||
"object_sha256": "269ffb63cbf6a8a7bbe95be7b25a8fa8842470bab196a7247e349f478cbd9e18",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "d648d95b-6ea9-4ab7-9745-8741a60d22fb",
|
||||
"state": "active",
|
||||
"row_size": 14938,
|
||||
"content_hash_in_row": "7ab830008ce7e50958deca50fb749daa7dd1e4e6283abb4fe8e2e8eeb3d66400",
|
||||
"object_size": 14938,
|
||||
"object_sha256": "7ab830008ce7e50958deca50fb749daa7dd1e4e6283abb4fe8e2e8eeb3d66400",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "dda128a1-2661-4ae0-9a68-391cb02e6676",
|
||||
"state": "active",
|
||||
"row_size": 23565,
|
||||
"content_hash_in_row": "ea5ffb88cdd183761dcfc28bc1da2f76cb02df9d63139b8c3f6d5f643914ee69",
|
||||
"object_size": 23565,
|
||||
"object_sha256": "ea5ffb88cdd183761dcfc28bc1da2f76cb02df9d63139b8c3f6d5f643914ee69",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "2114cdc3-886e-4f2d-a92c-720b860874a1",
|
||||
"state": "active",
|
||||
"row_size": 156093,
|
||||
"content_hash_in_row": "e47b635804dc0811c76d4d7b2fe8f33a702a343fe7fcf0f5c8d2e5849b443374",
|
||||
"object_size": 156093,
|
||||
"object_sha256": "e47b635804dc0811c76d4d7b2fe8f33a702a343fe7fcf0f5c8d2e5849b443374",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "8b218c5a-80f0-4562-8b30-12979a314e55",
|
||||
"state": "active",
|
||||
"row_size": 84942,
|
||||
"content_hash_in_row": "a69abd1ab046d47cee34b2f31c4ec9fc1644222189b5d8146c7dcbbc574a1926",
|
||||
"object_size": 84942,
|
||||
"object_sha256": "a69abd1ab046d47cee34b2f31c4ec9fc1644222189b5d8146c7dcbbc574a1926",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "a7ef832a-db9a-4eba-a1f9-1ad71f703c6a",
|
||||
"state": "active",
|
||||
"row_size": 40945,
|
||||
"content_hash_in_row": "82b36ad60ee27c965098b63965c1242dfecd71145c72e92c86976a1153d50c2b",
|
||||
"object_size": 40945,
|
||||
"object_sha256": "82b36ad60ee27c965098b63965c1242dfecd71145c72e92c86976a1153d50c2b",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "113b223c-d616-4270-8b2f-431b78031c97",
|
||||
"state": "active",
|
||||
"row_size": 45837,
|
||||
"content_hash_in_row": "63959f05c5a21349b6b4f602437c97600b3873d6de3bffb295ee0c3cf6819703",
|
||||
"object_size": 45837,
|
||||
"object_sha256": "63959f05c5a21349b6b4f602437c97600b3873d6de3bffb295ee0c3cf6819703",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "1f292a9b-b694-44f2-9c0d-2ea06867a74e",
|
||||
"state": "active",
|
||||
"row_size": 539537,
|
||||
"content_hash_in_row": "c633186e07013d00039a8e810765625a085c2ae818d7bc66c0d3e58de447fed2",
|
||||
"object_size": 539537,
|
||||
"object_sha256": "c633186e07013d00039a8e810765625a085c2ae818d7bc66c0d3e58de447fed2",
|
||||
"row_size_matches_object": true
|
||||
},
|
||||
{
|
||||
"id": "1f0e979b-9588-42d7-9b38-7c1b2ca05e23",
|
||||
"state": "active",
|
||||
"row_size": 507,
|
||||
"content_hash_in_row": "",
|
||||
"object_size": 507,
|
||||
"object_sha256": "25a55cd886544f2ccf7eb25def0eb36c31bcebda356747a6ae6744da20095c35",
|
||||
"row_size_matches_object": true
|
||||
}
|
||||
],
|
||||
"resources_total": 22,
|
||||
"unbound": 21,
|
||||
"wiki_pages": 9
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
== knowledges / chunks ==
|
||||
id | title | knowledge_base_id | chunks
|
||||
--------------------------------------+---------------------+--------------------------------------+--------
|
||||
d4fbe69d-1b22-4a20-b0fe-66a6e10e854d | 发布闸门运维手册.md | e64e82b5-c578-4a82-a7aa-e6ab0cd26f3c | 2
|
||||
(1 row)
|
||||
|
||||
|
||||
== ES docs (live index kgseal_1029_chunks) ==
|
||||
{
|
||||
"took": 1,
|
||||
"timed_out": false,
|
||||
"_shards": {
|
||||
"total": 1,
|
||||
"successful": 1,
|
||||
"skipped": 0,
|
||||
"failed": 0
|
||||
},
|
||||
"hits": {
|
||||
"total": {
|
||||
"value": 2,
|
||||
"relation": "eq"
|
||||
},
|
||||
"max_score": 1.0,
|
||||
"hits": [
|
||||
{
|
||||
"_index": "kgseal_1029_chunks",
|
||||
"_id": "pgpMhKEB5yh0qa3rXM6B",
|
||||
"_score": 1.0,
|
||||
"_source": {
|
||||
"knowledge_base_id": "e64e82b5-c578-4a82-a7aa-e6ab0cd26f3c",
|
||||
"knowledge_id": "d4fbe69d-1b22-4a20-b0fe-66a6e10e854d",
|
||||
"tenant_id": 10001
|
||||
}
|
||||
},
|
||||
{
|
||||
"_index": "kgseal_1029_chunks",
|
||||
"_id": "pwpMhKEB5yh0qa3rg845",
|
||||
"_score": 1.0,
|
||||
"_ignored": [
|
||||
"content.keyword"
|
||||
],
|
||||
"_source": {
|
||||
"knowledge_base_id": "e64e82b5-c578-4a82-a7aa-e6ab0cd26f3c",
|
||||
"knowledge_id": "d4fbe69d-1b22-4a20-b0fe-66a6e10e854d",
|
||||
"tenant_id": 10001
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
== 资源/绑定统计 ==
|
||||
resources | bindings | grants
|
||||
-----------+----------+--------
|
||||
22 | 1 | 0
|
||||
(1 row)
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# library_job_stages
|
||||
|
||||
job_id | stage | state | total | completed | bytes_total | bytes_done | detail | updated_at
|
||||
-----------------------------------------+-----------+-----------+-------+-----------+-------------+------------+--------------------------------------------------------------------------------+-------------------------------
|
||||
librestore-internal-1793293164573204381 | rollback | pending | | | | | | 2026-10-29 16:59:24.573204+00
|
||||
librestore-internal-1793293164573204381 | prebackup | succeeded | | | | | 预备份 backup-089676a09107ceab3bf5e88651f443da26e5d9b2d0de380840c5ec24941a07c2 | 2026-10-29 16:59:39.9979+00
|
||||
librestore-internal-1793293164573204381 | database | succeeded | 5 | 5 | 7138 | 7138 | | 2026-10-29 16:59:40.02311+00
|
||||
librestore-internal-1793293164573204381 | resources | succeeded | 1 | 1 | 507 | 507 | | 2026-10-29 16:59:40.034616+00
|
||||
librestore-internal-1793293164573204381 | index | succeeded | 2 | 2 | 28563 | 28563 | | 2026-10-29 16:59:40.128762+00
|
||||
librestore-internal-1793293164573204381 | wiki | succeeded | 10 | 10 | 23144 | 23144 | | 2026-10-29 16:59:40.157934+00
|
||||
librestore-internal-1793293164573204381 | verify | succeeded | | | | | | 2026-10-29 16:59:40.217745+00
|
||||
librestore-internal-1793293164573204381 | finalize | succeeded | | | | | 已登记生效版本 | 2026-10-29 16:59:40.227301+00
|
||||
libsync-internal-1793292008635856030 | rollback | pending | | | | | | 2026-10-29 16:40:08.635856+00
|
||||
libsync-internal-1793292008635856030 | prebackup | succeeded | | | | | 预备份 backup-4b720eb42fca75de40aa862f2b53d0751e648d760dafaca309aaee08771f2c73 | 2026-10-29 16:40:21.737356+00
|
||||
libsync-internal-1793292008635856030 | database | succeeded | 67 | 67 | 88086 | 88086 | | 2026-10-29 16:40:22.101487+00
|
||||
libsync-internal-1793292008635856030 | resources | succeeded | 21 | 21 | 53490166 | 53490166 | | 2026-10-29 16:40:23.872343+00
|
||||
libsync-internal-1793292008635856030 | index | succeeded | 122 | 122 | 1624880 | 1624880 | | 2026-10-29 16:40:24.405281+00
|
||||
libsync-internal-1793292008635856030 | wiki | succeeded | 63 | 63 | 105912 | 105912 | | 2026-10-29 16:40:24.74462+00
|
||||
libsync-internal-1793292008635856030 | verify | succeeded | | | | | | 2026-10-29 16:40:26.044483+00
|
||||
libsync-internal-1793292008635856030 | finalize | succeeded | | | | | 已登记生效版本 | 2026-10-29 16:40:26.055461+00
|
||||
(16 rows)
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user