Commit 1989f50
committed
fix(kb): scope generation lock by doc_id/parse_hash and surface embed cleanup failures (PR #202)
Replace source_path ingestion locks with cross-process generation_ingestion_lock
keyed by (collection, doc_id, parse_hash, user scope), held through chunk replace
and embedding writes. Raise DatabaseOperationError when embeddings_* cascade
delete fails. Add regression tests for empty replace_scope, partial cleanup
failures, and per-user lock isolation.
Refs: #199, #4381 parent 376dbeb commit 1989f50
7 files changed
Lines changed: 877 additions & 528 deletions
File tree
- src/xagent/core/tools/core/RAG_tools
- chunk
- pipelines
- storage
- utils
- tests/core/tools/core/RAG_tools
- pipelines
- storage
- utils
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
0 commit comments