Skip to content

Conversation

@szymon-miezal
Copy link

@szymon-miezal szymon-miezal commented Dec 31, 2025

What is the issue

Exclusion of *.SF files from jar that get packaged into the dtest-jar does not work as expected.
As a result if a jar contains the *.SF file, like for instance the org.eclipse.jdt:ecj dependency, then the ECLIPSE_.SF file get packages into the dtest-jar. It dependent projects like HCD, it results in dtest-jar missing from classpath, which causes runtime exceptions.

What does this PR fix and why was it fixed

This patch ports the dtest jar packaging code from C* 5, which uses an approach of unpackaging all the jars, then filtering the files to remove the undesired metadata and finally it repackages the classes into a fat jar.

CNDB PR: https://github.com/riptano/cndb/pull/16382

@github-actions
Copy link

github-actions bot commented Dec 31, 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

Exclusion of *.SF files from jar that get packaged into the dtest-jar does not work as expected.
As a result if a jar contains the *.SF file, like for instance the org.eclipse.jdt:ecj dependency,
then the ECLIPSE_.SF file get packaged into the dtest-jar. In dependent projects like HCD,
this results in dtest-jar missing from classpath, which causes runtime exceptions.

This patch ports the dtest jar packaging code from C* 5,
which uses an approach of unpackaging all the jars,
then filtering the files to remove the undesired metadata and finally it repackages the classes into a fat jar.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

@cassci-bot
Copy link

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


3 regressions found
See build details here


Found 3 new test failures

Test Explanation Runs Upstream
o.a.c.index.sai.cql.VectorCompaction100dTest.testCompactionWithEnoughRowsForPQAndDeleteARow[db true] NEW 🔴 0 / 19
o.a.c.index.sai.cql.VectorSiftSmallTest.testCompaction[ca false] (compression) REGRESSION 🔵🔴 0 / 19
o.a.c.index.sai.cql.VectorSiftSmallTest.testCompaction[dc false] (compression) REGRESSION 🔵🔴 0 / 19

Found 1 known test failures

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