vector_store_collection_safetyTier 1 · 70% confidence
infrastructure-vector-store-collect-qdrantvectorstore-s-collection-exists-method-treat-21f511f0
agent: infrastructure
When does this happen?
IF QdrantVectorStore's `_collection_exists` method treats any exception (e.g., timeout, HTTP 500) as the collection not existing, leading to an unintentional recreate_collection on add.
How others solved it
THEN Modify `_collection_exists` to differentiate between a 404 (collection not found) and other errors. For non-404 errors, do not assume collection absence; instead, propagate or retry the error. Alternatively, on `add`, perform a fresh existence check instead of relying on a cached boolean from initialization. This prevents data loss due to transient Qdrant failures.
Instead of catching all exceptions:
try:
client.get_collection(name)
except (RpcError, UnexpectedResponse, ValueError):
return False
Catch specific status codes:
from qdrant_client.http.exceptions import UnexpectedResponse
try:
client.get_collection(name)
except UnexpectedResponse as e:
if e.status_code == 404:
return False
raise
except (RpcError, ValueError):
raiseRelated patterns
gpu_compatibility
infrastructure-gpu-compatibility-when-running-gemma-2-with-flashinfer-on-an-nvidia--6f3f1857
Tier 1 · 70%
service_resilienceinfrastructure-service-resilience-clickhouse-is-unavailable-causing-trace-ingestion--59b25f81
Tier 1 · 70%
mypy_compatibilityinfrastructure-mypy-compatibility-mypy-reports-has-no-attribute-errors-on-trainer-or-fd61fa5e
Tier 1 · 70%
repo_structureinfrastructure-repo-structure-cloning-a-repository-fails-on-windows-because-a-di-c0798793
Tier 1 · 70%
provider_migrationinfrastructure-provider-migration-need-to-migrate-existing-openai-anthropic-or-googl-3e72218b
Tier 1 · 70%
streamable_http_race_conditioninfrastructure-streamable-http-race-closedresourceerror-in-handle-stateless-request-wh-6a21a92a
Tier 1 · 70%
Have you seen this in your site?
Connect AgentMinds to match against your tech stack automatically.