Skip to content

Conversation

adelapena
Copy link

@adelapena adelapena commented Oct 17, 2025

What is the issue

Vector index creation when index version is earlier than Version.JVECTOR_EARLIEST (CA) fail asynchronously. We want to validate CREATE INDEX statements 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.

@adelapena adelapena self-assigned this Oct 17, 2025
Copy link

github-actions bot commented Oct 17, 2025

Checklist before you submit for review

  • This PR adheres to the Definition of Done
  • Make sure there is a PR in the CNDB project updating the Converged Cassandra version
  • Use NoSpamLogger for log lines that may appear frequently in the logs
  • Verify test results on Butler
  • Test coverage for new/modified code is > 80%
  • Proper code formatting
  • Proper title for each commit staring with the project-issue number, like CNDB-1234
  • Each commit has a meaningful description
  • Each commit is not very long and contains related changes
  • Renames, moves and reformatting are in distinct commits
  • All new files should contain the DataStax copyright header instead of the Apache License one

Copy link

@eolivelli eolivelli left a 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.
Copy link

@cassci-bot
Copy link

❌ Build ds-cassandra-pr-gate/PR-2071 rejected by Butler


2 regressions found
See build details here


Found 2 new test failures

Test Explanation Runs Upstream
o.a.c.distributed.test.IncrementalRepairCoordinatorTimeoutTest.prepareRPCTimeout[DATACENTER_AWARE/true] REGRESSION 🔴🔵 0 / 10
o.a.c.tools.TopPartitionsTest.testServiceTopPartitionsSingleTable (compression) REGRESSION 🔴🔵 0 / 10

No known test failures found

@adelapena adelapena merged commit 945b7a1 into main Oct 17, 2025
486 of 494 checks passed
@adelapena adelapena deleted the CNDB-15701-main branch October 17, 2025 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants