chroma
chroma copied to clipboard
[BUG]: Delete collection resource leak (single-node Chroma)
Description of changes
Closes #3296
The delete collection logic slightly changes to accomodate the fix without breaking the transactional integrity of self._sysdb.delete_collection. The chromadb.segment.SegmentManager.delete_segments had to change to accept the list of segments to delete instead of collection_id.
Summarize the changes made by this PR.
- Improvements & Bug fixes
- Fixes the resource leak when deleting a collection
Test plan
How are these changes tested?
- [x] Tests pass locally with
pytestfor python,yarn testfor js,cargo testfor rust
Documentation Changes
N/A