-
Notifications
You must be signed in to change notification settings - Fork 21
CNDB-14301: couple jvector file format and SAI version #1786
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
base: main
Are you sure you want to change the base?
Conversation
Checklist before you submit for review
|
Companion CNDB test PR: https://github.com/riptano/cndb/pull/14303 |
@Override | ||
public int jvectorFileFormatVersion() | ||
{ | ||
// Before version EB, we used JVector format 2. Version DC introduced format 4, so we can start using it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
according to my testing here https://github.com/riptano/cndb/issues/14247#issuecomment-2943230825 JVector 4.0.0.beta1 shipped with the March release does not support format 4 and at that time the default version was DC
we can map format 4 only to ED or later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for catching this! You're right, my change is off-by-one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixed now, please take a look.
|
❌ Build ds-cassandra-pr-gate/PR-1786 rejected by Butler1 new test failure(s) in 3 builds Found 1 new test failures
Found 7 known test failures |
What is the issue
Fixes: https://github.com/riptano/cndb/issues/14301
What does this PR fix and why was it fixed
Make version
EC
and later use jvector file format 4. Also allow for some configurability in earlier versions just in case we have some clusters relying on that behavior via thecassandra.sai.jvector_version
system property (defaults to 2 and is ignored forEC
and later).