-
Notifications
You must be signed in to change notification settings - Fork 2k
[ENH]: add validation during garbage collection for empty file paths #4586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer ChecklistPlease leverage this checklist to ensure your code review is thorough before approving Testing, Bugs, Errors, Logs, Documentation
System Compatibility
Quality
|
f57dc9d to
b8ab357
Compare
|
Add Defensive Validation for Empty File Paths During Garbage Collection This PR introduces a safeguard in the garbage collector, ensuring that if a collection version has no file paths, it is only permitted if the version is 0 and all its ancestors are also at version 0. It enforces this invariant with explicit validation in the orchestrator, adds a comprehensive test, and cleans up internal sysdb structures to align version file path management with implementation requirements. Key Changes: Affected Areas: This summary was automatically generated by @propel-code-bot |
a72bc81 to
5c86e1c
Compare
b8ab357 to
76c115d
Compare
5c86e1c to
2191cf0
Compare
76c115d to
02546b5
Compare
2191cf0 to
1451c71
Compare
02546b5 to
c570721
Compare
c570721 to
bcbf758
Compare
1451c71 to
53e1a29
Compare
bcbf758 to
f72bd63
Compare
53e1a29 to
8e08e2f
Compare
f72bd63 to
c62bf3f
Compare
8e08e2f to
de511ea
Compare
c62bf3f to
d6bf939
Compare
de511ea to
c73fd49
Compare
d6bf939 to
e0a0f88
Compare
c73fd49 to
3a3adda
Compare
e0a0f88 to
7f275bb
Compare
7969af3 to
2ce9ae0
Compare
7f275bb to
a22cc8a
Compare
2ce9ae0 to
9dec43e
Compare
a22cc8a to
3cd7274
Compare
8f20043 to
4a3b406
Compare
4a3b406 to
e533b0c
Compare
Merge activity
|
…hroma-core#4586) ## Description of changes Adds a defensive check that validates that the current version is v0 if there are no file paths. ## Test plan _How are these changes tested?_ - [x] Tests pass locally with `pytest` for python, `yarn test` for js, `cargo test` for rust Added a test. ## 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

Description of changes
Adds a defensive check that validates that the current version is v0 if there are no file paths.
Test plan
How are these changes tested?
pytestfor python,yarn testfor js,cargo testfor rustAdded a test.
Documentation Changes
Are all docstrings for user-facing APIs updated if required? Do we need to make documentation changes in the docs section?
n/a