You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ENH]: sysdb changes to support moving collection hard deletes to garbage collector (#4607)
## Description of changes
- sysdb no longer has a flag for soft delete mode, soft delete is always enabled
- sysdb no longer automatically transitions soft deleted collections to hard deleted
- lineage file name is now uuidv7
- It was previously based on the new target collection ID that was just added to the file, which works when adding dependencies but not when removing dependencies. UUIDv7 is time-sortable and random.
- added BatchGetCollectionSoftDeleteStatus method (is called/tested in the next PR)
## Test plan
_How are these changes tested?_
- [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust
## Documentation Changes
_Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the [docs section](https://github.com/chroma-core/chroma/tree/main/docs/docs.trychroma.com)?_
n/a
Copy file name to clipboardExpand all lines: go/pkg/common/errors.go
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ var (
30
30
ErrCollectionTooManyFork=errors.New("collection entry has too many forks")
31
31
ErrCollectionDeletedWithLocksHeld=errors.New("collection got deleted concurrently even though select for update locks were held. Not possible unless corruption somehow")
32
32
ErrMissingLineageFileName=errors.New("missing lineage file name in root collection entry")
33
+
ErrCollectionWasNotSoftDeleted=errors.New("collection was not soft deleted")
33
34
34
35
// Collection metadata errors
35
36
ErrUnknownCollectionMetadataType=errors.New("collection metadata value type not supported")
0 commit comments