WeKnora/internal/application/repository/retriever
Captain 929dad5747
fix(weaviate): accept a class another worker created first (#3689)
The indexer saves embeddings in batches of 40, up to five at a time,
and every BatchSave calls ensureCollection first. On the first write at
a new dimension each of them can find the class missing and try to
create it. Weaviate lets one create win and refuses the rest with 422:
"class name X already exists" when the loser is filtered before the
Raft apply, or "updating schema: TYPE_ADD_CLASS: class already exists"
when it loses inside the apply. ensureCollection returned either as
"failed to create collection", and the errgroup then failed the whole
document although the class was fine. A replica racing this one takes
the same path.

After a 422, look the class up again and carry on if it exists now,
which does not depend on how the refusal is worded. The class is
created with all of its properties in one call, so there is nothing
left to set up. Other failures are returned as before.

This is the Weaviate side of the race #2855 reports for Qdrant.
2026-09-25 18:47:30 +08:00
..
doris fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
elasticsearch fix(retriever/es): keep vectors and enabled state on CopyIndices (#3678) 2026-09-24 20:23:07 +08:00
milvus fix(retrieval): fix recall correctness, score scales, cost and agent tools (#3687) 2026-09-25 10:48:18 +08:00
neo4j fix(graph): 给 Neo4j SearchNode 加上种子上限与行数兜底,避免一次查询拉回整个邻域 (#3550) 2026-09-23 11:57:57 +08:00
opensearch fix(retrieval): fix recall correctness, score scales, cost and agent tools (#3687) 2026-09-25 10:48:18 +08:00
postgres fix(retrieval): fix recall correctness, score scales, cost and agent tools (#3687) 2026-09-25 10:48:18 +08:00
qdrant fix(qdrant): treat a missing dimension collection as an empty delete target (#3419) 2026-09-20 11:12:18 +08:00
sqlite fix(retrieval): fix recall correctness, score scales, cost and agent tools (#3687) 2026-09-25 10:48:18 +08:00
tencentvectordb fix(retrieval): fix recall correctness, score scales, cost and agent tools (#3687) 2026-09-25 10:48:18 +08:00
weaviate fix(weaviate): accept a class another worker created first (#3689) 2026-09-25 18:47:30 +08:00