-
Notifications
You must be signed in to change notification settings - Fork 21
CNDB-15701: Forbid creating vector indexes if version is earlier than CA #2071
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
Checklist before you submit for review
|
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.
Looks good to me.
This is exactly the change I expected
When you make the patch for CNDB , can you please add an assertion in this place:
pleasehttps://github.com/riptano/cndb/blob/main/cndb-test/src/test/java/com/datastax/cndb/integration/sai/AbstractMultiSAIVersions.java#L228
if (!not has vector) ... try to create the index .... assert that an error is returned and that the error contains the expected message ?
These index creations would usually fail in the asynchronous build. This patch makes them fail synchronously at CREATE INDEX depending on the local index version. If the local node has the right version but any of the remotes doesn't, the failure will remain asynchronous.
e905422 to
75f0d61
Compare
|
❌ Build ds-cassandra-pr-gate/PR-2071 rejected by Butler2 regressions found Found 2 new test failures
No known test failures found |
… CA (#2071) Creating vector indexes if version is earlier than CA would usually fail in the asynchronous build. This patch makes them fail synchronously at CREATE INDEX depending on the local index version. If the local node has the right version but any of the remotes doesn't, the failure will remain asynchronous.
…earlier than CA (#2071) Creating vector indexes if version is earlier than CA would usually fail in the asynchronous build. This patch makes them fail synchronously at CREATE INDEX depending on the local index version. If the local node has the right version but any of the remotes doesn't, the failure will remain asynchronous.
…earlier than CA (#2071) Creating vector indexes if version is earlier than CA would usually fail in the asynchronous build. This patch makes them fail synchronously at CREATE INDEX depending on the local index version. If the local node has the right version but any of the remotes doesn't, the failure will remain asynchronous.
…earlier than CA (#2071) Creating vector indexes if version is earlier than CA would usually fail in the asynchronous build. This patch makes them fail synchronously at CREATE INDEX depending on the local index version. If the local node has the right version but any of the remotes doesn't, the failure will remain asynchronous.



What is the issue
Vector index creation when index version is earlier than
Version.JVECTOR_EARLIEST(CA) fail asynchronously. We want to validateCREATE INDEXstatements against the local index version so we can make these statement fail synchronously, before the index build is started and the schema is altered.What does this PR fix and why was it fixed
This patch makes vector index creation statements fail depending on the local index version. If the local node has the right version but any of the remotes doesn't, the failure will remain asynchronous.