Skip to content

CNDB-13534: Add RequestFailureReason.FEATURE_NEEDS_INDEX_REBUILD #1781

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

Open
wants to merge 1 commit into
base: main-5.0
Choose a base branch
from

Conversation

driftx
Copy link

@driftx driftx commented May 29, 2025

The main difference was porting FeatureNeedsIndexRebuildException.

@djatnieks
Copy link

I looked at the test failures reported above by Butler and they all look like known failing or flaky tests on the 5.0 test failure list

I don't think Butler knows how to do a correct comparison with main-5.0 - meaning I think it always compares PR results to main.

One thing, if you didn't do it already, is to run the "verify" script that I think I mentioned previously - it identified all the unit and distributed tests that were touched by the most recent commit and executes them. For a relatively large commit like this, that's my typical method of verifying the port

@djatnieks djatnieks requested review from djatnieks and removed request for djatnieks May 31, 2025 00:06
@djatnieks
Copy link

I checked out the branch and got a compile error:

    [javac] /Users/danj/projects/cc-main-5.0/test/unit/org/apache/cassandra/index/sai/disk/v1/kdtree/KDTreeIndexBuilder.java:194: error: cannot find symbol
    [javac]             assertThat(searcher, is(instanceOf(KDTreeIndexSearcher.class)));
    [javac]                                     ^
    [javac]   symbol:   method instanceOf(Class<KDTreeIndexSearcher>)
    [javac]   location: class KDTreeIndexBuilder

Then I realized the CI build has the same error - weird that it ran tests if the build part had a problem 🤷🏻

@driftx
Copy link
Author

driftx commented Jun 2, 2025

Then I realized the CI build has the same error - weird that it ran tests if the build part had a problem 🤷🏻

I think that was because your commits got in and caused a small conflict that I resolved in the web interface. I've rebased and pushed it now.

The new request failure reason should be used when the on-disk format of an
index in a replica doesn't support a requested feature.

Also, rename org.apache.cassandra.index.sai.disk.format.Version.latest() to Version.current(),
and add separate Version.CURRENT and Version.LATEST constants.
Copy link

sonarqubecloud bot commented Jun 2, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@cassci-bot
Copy link

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


103 new test failure(s) in 2 builds
See build details here


Found 103 new test failures

Showing only first 15 new test failures

Test Explanation Branch history Upstream history
t.TestCqlshCompletion.test_complete_in_alter_table regression 🔴🔵
t.TestCqlshCompletion.test_complete_in_alter_type regression 🔴🔵
t.TestCqlshCompletion.test_complete_in_create_type regression 🔴🔵
t.TestCqlshCompletion.test_complete_in_drop_type regression 🔴🔵
t.TestCqlshCompletion.test_complete_in_tracing regression 🔴🔵
t.TestCqlshOutput.test_blob_output regression 🔴🔵
t.TestCqlshOutput.test_boolean_output regression 🔴🔵
...lshOutput.test_expanded_output_counts_past_page regression 🔴🔵
t.TestCqlshOutput.test_no_prompt_or_colors_output regression 🔴🔵
t.TestCqlshOutput.test_numeric_output regression 🔴🔵
t.TestCqlshOutput.test_printing_cql_error regression 🔴🔵
t.TestCqlshOutput.test_user_types_with_collections regression 🔴🔵
t.TestCqlshUnicode.test_unicode_multiline_input regression 🔴🔵
c.t.TestCqlshSmoke.test_copy_stdout regression 🔴🔵
r.TestAllowFiltering.test_update_on_collection regression 🔴🔵

No known test failures found

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.

4 participants