#5254·cognee

[Bug]: concurrent local LanceDB writers leave partial ingestion and duplicate vector IDs

Author: fireflocCreated Sep 28, 2026Updated Sep 30, 2026

Problem

Two or more Cognee processes can write to the same local LanceDB store at once. LanceDBAdapter.VECTOR_DB_LOCK is per adapter instance and per process, while delete_data_points did not take it. Concurrent cognify, memify, and rollback work can therefore overlap across datasets that share one store.

Observed failure: lance error: Too many concurrent writers during LanceDBAdapter.create_data_points / merge_insert. The failed pipelines left partially indexed documents and duplicate vector IDs, so new facts were not reliably available through graph recall.

Expected behavior

All local LanceDB mutations, including rollback deletes, are serialized across processes sharing the store. On a clean store, concurrent jobs complete without writer conflicts or duplicate IDs. Existing duplicate rows need separate repair; an upsert does not collapse them.

Tracking

Proposed general fix: #5253. Please keep this issue open until the fix is reviewed and a release containing it is identified. The affected deployment is being monitored separately for historical data repair and catch-up.