Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: manmagic3/cassandra
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: trunk
Choose a base ref
...
head repository: apache/cassandra
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: trunk
Choose a head ref
Able to merge. These branches can be automatically merged.

Commits on Oct 22, 2024

  1. During TCM upgrade, retain all properties of existing system tables

    Patch by Abe Ratnofsky and marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19992
    
    Co-authored-by: Abe Ratnofsky <abe@aber.io>
    krummas and aratno committed Oct 22, 2024
    Copy the full SHA
    2d3068c View commit details
  2. Simulation test fixes

    * During replacement, correctly set token on the joining instance
    * In bootstrap, we were not correctly stepping through the join
      operation
    * When investigating bootstrap issues, it was found that we were
      not running repairPaxosForTopologyChange on this path.
    
    Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for
    CASSANDRA-19997
    beobal committed Oct 22, 2024
    Copy the full SHA
    a9a83dc View commit details

Commits on Oct 23, 2024

  1. Fix type check for referenced duration type for nested types

    Patch by Raymond Welgosh; Reviewed by David Capwell, Yifan Cai for CASSANDRA-19890
    rwelgosh authored and yifan-c committed Oct 23, 2024
    Copy the full SHA
    e8891be View commit details

Commits on Oct 24, 2024

  1. Add extra compaction junit

    patch by Berenguer Blasi; reviewed by Branimir Lambov, Michael Semb Wever for CASSANDRA-19863
    bereng committed Oct 24, 2024
    Copy the full SHA
    5e4ff92 View commit details
  2. Merge branch 'cassandra-5.0' into trunk

    * cassandra-5.0:
      Add extra compaction junit
    bereng committed Oct 24, 2024
    Copy the full SHA
    7446529 View commit details

Commits on Oct 25, 2024

  1. Add -H option for human-friendly output in nodetool compactionhistory

    patch by Cheng Wang; reviewed by Jordan West, Stefan Miklosovic for CASSANDRA-20015
    chengw-netflix authored and smiklosovic committed Oct 25, 2024
    Copy the full SHA
    c8854af View commit details

Commits on Oct 29, 2024

  1. Explicitly localize strings to Locale.US for internal implementation

    There is inconsistent usage of toLowerCase/toUpperCase methods in the codebase.
    Somewhere we already use Locale.US, somewhere not. That might cause various issues in runtime
    as shown in CASSANDRA-19953 ticket when an environment Cassandra runs in has different locale from expected.
    In this patch, all such method calls explicitly set their locale to Locale.US. This patch also contains
    a checkstyle rule which fails the compilation if toLowerCase or toUpperCase is used.
    We prefer calls to methods in LocalizeString class which use US locale.
    
    patch by Ata İlhan Köktürk; reviewed by Stefan Miklosovic, Brandon Williams for CASSANDRA-19953
    
    Co-authored-by: Maxwell Guo <cclive1601@gmail.com>
    Co-authored-by: Stefan Miklosovic <smiklosovic@apacheorg>
    3 people authored and smiklosovic committed Oct 29, 2024
    Copy the full SHA
    46b36f2 View commit details
  2. Suppress CVE-2024-45772 lucene-core-9.7.0.jar

    CVE in Lucene Replicator which the project doesn't use.
    
     patch by Mick Semb Wever; reviewed by Brandon Williams, Caleb Rackliffe for CASSANDRA-20024
    michaelsembwever committed Oct 29, 2024
    Copy the full SHA
    3550b88 View commit details
  3. Merge branch 'cassandra-5.0' into trunk

    * cassandra-5.0:
      Suppress CVE-2024-45772 lucene-core-9.7.0.jar
    michaelsembwever committed Oct 29, 2024
    Copy the full SHA
    916486b View commit details
  4. Reintroduce RestrictionSet#iterator() optimization around multi-colum…

    …n restrictions
    
    patch by Caleb Rackliffe; reviewed by Benjamin Lerer for CASSANDRA-20034
    maedhroz committed Oct 29, 2024
    Copy the full SHA
    32030e4 View commit details

Commits on Oct 31, 2024

  1. Ban the usage of "var" instead of full types in the production code

    patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-20038
    smiklosovic committed Oct 31, 2024
    Copy the full SHA
    194e632 View commit details
  2. Copy the full SHA
    15ed18e View commit details

Commits on Nov 1, 2024

  1. Nodetool cms reconfigure reports streaming failures correctly

    Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for
    CASSANDRA-19972
    beobal committed Nov 1, 2024
    Copy the full SHA
    a27e099 View commit details
  2. Equality check for Paxos.Electorate should not depend on collection t…

    …ypes
    
    Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for CASSANDRA-19935
    beobal committed Nov 1, 2024
    Copy the full SHA
    9ff31e8 View commit details
  3. CEP-10: Simulator Java11 Support (backport to cassandra-4.1)

    patch by David Capwell; reviewed by Benedict Elliott Smith, Ekaterina Dimitrova for CASSANDRA-17178
    backported to 4.1 in CASSANDRA-19935
    dcapwell authored and beobal committed Nov 1, 2024
    Copy the full SHA
    28759d8 View commit details
  4. Copy the full SHA
    8153a0b View commit details
  5. Copy the full SHA
    c8d44ae View commit details

Commits on Nov 4, 2024

  1. CASSANDRA-19986 Prepared statements cache computation improvements

    patch by Berenguer Blasi; reviewed by Maxwell Guo, Stefan Miklosovic for CASSANDRA-19986
    bereng committed Nov 4, 2024
    Copy the full SHA
    ff54fd5 View commit details
  2. Merge branch 'cassandra-4.0' into cassandra-4.1

    * cassandra-4.0:
      CASSANDRA-19986 Prepared statements cache computation improvements
    bereng committed Nov 4, 2024
    Copy the full SHA
    94c2a09 View commit details
  3. Merge branch 'cassandra-4.1' into cassandra-5.0

    * cassandra-4.1:
      CASSANDRA-19986 Prepared statements cache computation improvements
    bereng committed Nov 4, 2024
    Copy the full SHA
    0e11be9 View commit details
  4. Merge branch 'cassandra-5.0' into trunk

    * cassandra-5.0:
      CASSANDRA-19986 Prepared statements cache computation improvements
    bereng committed Nov 4, 2024
    Copy the full SHA
    6e0a99c View commit details
  5. Bump the correct metric when doing progress barrier retries

    Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-20016
    krummas committed Nov 4, 2024
    Copy the full SHA
    73d8ee1 View commit details
  6. Don’t finish ongoing decommission and move operations during startup

    Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-20040
    krummas committed Nov 4, 2024
    Copy the full SHA
    c679b47 View commit details

Commits on Nov 5, 2024

  1. Add nodetool checktokenmetadata command that checks TokenMetadata is …

    …insync with Gossip endpointState
    
     patch by Jaydeepkumar Chovatia; reviewed by Brandon Williams, Mick Semb Wever for CASSANDRA-18758
    jaydeepkumar1984 authored and michaelsembwever committed Nov 5, 2024
    Copy the full SHA
    e5c919f View commit details
  2. Merge branch 'cassandra-4.1' into cassandra-5.0

    * cassandra-4.1:
      Add nodetool checktokenmetadata command that checks TokenMetadata is insync with Gossip endpointState
    michaelsembwever committed Nov 5, 2024
    Copy the full SHA
    34bed3d View commit details
  3. Merge branch 'cassandra-5.0' into trunk

    * cassandra-5.0:
      Add nodetool checktokenmetadata command that checks TokenMetadata is insync with Gossip endpointState
    michaelsembwever committed Nov 5, 2024
    Copy the full SHA
    7feb03e View commit details

Commits on Nov 6, 2024

  1. Fix CQL in snapshot's schema which did not contained UDTs used as rev…

    …erse clustering columns
    
    patch by Stefan Miklosovic; reviewed by David Capwell for CASSANDRA-20036
    smiklosovic committed Nov 6, 2024
    Copy the full SHA
    181ddc0 View commit details
  2. Copy the full SHA
    521891c View commit details
  3. Copy the full SHA
    008d04d View commit details
  4. Copy the full SHA
    20c2325 View commit details
  5. Support UDTs and vectors as clustering keys in descending order

    patch by Stefan Miklosovic; reviewed by David Capwell for CASSANDRA-20050
    smiklosovic committed Nov 6, 2024
    Copy the full SHA
    6093c2d View commit details
  6. Copy the full SHA
    17418a2 View commit details
  7. Copy the full SHA
    4b6dcf8 View commit details
  8. Copy the full SHA
    317e9ec View commit details
  9. Backport of CASSANDRA-17812: Rate-limit new client connection auth se…

    …tup to avoid overwhelming bcrypt
    
    This backport differs from CASSANDRA-17812 in such a way that by default the number
    of auth request threads is set to 0. That will route all requests to request executor as before this change.
    The patch in 5.0 and later sets the default number of auth request threads to 4.
    
    patch by Josh McKenzie; reviewed by Chris Lohfink for CASSANDRA-20057
    
    Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
    jmckenzie-dev and smiklosovic committed Nov 6, 2024
    Copy the full SHA
    8ea70cd View commit details
  10. Copy the full SHA
    0f59013 View commit details
  11. Merge branch 'cassandra-4.1' into cassandra-5.0

    configuration section for native_transport_max_auth_threads with default value of 4 was added to cassandra.yaml
    as part of this merge-up as this section was forgotten to be added in the original patch of CASSANDRA-17812
    smiklosovic committed Nov 6, 2024
    Copy the full SHA
    a3f2771 View commit details
  12. Merge branch 'cassandra-5.0' into trunk

    configuration section for native_transport_max_auth_threads with default value of 4 was added to cassandra.yaml
    as part of this merge-up as this section was forgotten to be added in the original patch of CASSANDRA-17812
    smiklosovic committed Nov 6, 2024
    Copy the full SHA
    7b33e91 View commit details

Commits on Nov 8, 2024

  1. Batch clusterings into single SAI partition post-filtering reads

    patch by Caleb Rackliffe; reviewed by Zhao Yang for CASSANDRA-19497
    maedhroz committed Nov 8, 2024
    Copy the full SHA
    cccb982 View commit details
  2. Merge branch 'cassandra-5.0' into trunk

    * cassandra-5.0:
      Batch clusterings into single SAI partition post-filtering reads
    maedhroz committed Nov 8, 2024
    Copy the full SHA
    fd4113d View commit details

Commits on Nov 11, 2024

  1. Flaky PstmtPersistenceTest

    patch by Berenguer Blasi; reviewed by Stefan Miklosovic for CASSANDRA-20055
    bereng committed Nov 11, 2024
    Copy the full SHA
    7ba691e View commit details
  2. Merge branch 'cassandra-4.0' into cassandra-4.1

    * cassandra-4.0:
      Flaky PstmtPersistenceTest
    bereng committed Nov 11, 2024
    Copy the full SHA
    4acce2a View commit details
  3. Merge branch 'cassandra-4.1' into cassandra-5.0

    * cassandra-4.1:
      Flaky PstmtPersistenceTest
    bereng committed Nov 11, 2024
    Copy the full SHA
    0220025 View commit details
  4. Merge branch 'cassandra-5.0' into trunk

    * cassandra-5.0:
      Flaky PstmtPersistenceTest
    bereng committed Nov 11, 2024
    Copy the full SHA
    7d0c0c8 View commit details
  5. Log client address when detecting unknown exception in client networking

    Patch by Mohammad Aburadeh, reviewed by brandonwilliams and smiklosovic
    for CASSANDRA-20072
    mohammad-aburadeh authored and driftx committed Nov 11, 2024
    Copy the full SHA
    0b3c26a View commit details
  6. Log client address when detecting unknown exception in client networking

    Patch by Mohammad Aburadeh, reviewed by brandonwilliams and smiklosovic
    for CASSANDRA-20072
    mohammad-aburadeh authored and driftx committed Nov 11, 2024
    Copy the full SHA
    b79f9dc View commit details
  7. Copy the full SHA
    35dd2f3 View commit details
  8. Copy the full SHA
    914aab5 View commit details

Commits on Nov 12, 2024

  1. Add post-filtering support for the IN operator in SAI queries

    patch by Sunil Ramchandra Pawar; reviewed by Caleb Rackliffe and Ekaterina Dimitrova
    sunil9977 authored and maedhroz committed Nov 12, 2024
    Copy the full SHA
    85048b2 View commit details

Commits on Nov 13, 2024

  1. Copy the full SHA
    1faa70b View commit details
Showing 1,304 changed files with 70,659 additions and 34,232 deletions.
70 changes: 42 additions & 28 deletions .build/README.md
Original file line number Diff line number Diff line change
@@ -71,54 +71,64 @@ Running Tests

Running unit tests with docker:

.build/docker/run-tests.sh test
.build/docker/run-tests.sh -a test


Running unittests without docker:

.build/run-tests.sh test
.build/run-tests.sh -a test


Running only a split of unittests, with docker:

.build/docker/run-tests.sh test 1/64
.build/docker/run-tests.sh -a test -c 1/64


Running unittests with a specific jdk with docker:

.build/docker/run-tests.sh test 1/64 11
.build/docker/run-tests.sh -a test -c 1/64 -j 11


Running only unit tests matching a regexp, with docker:

.build/docker/run-tests.sh test VerifyTest 11
.build/docker/run-tests.sh test "Compaction*Test$" 11
.build/docker/run-tests.sh -a test -t VerifyTest -j 11
.build/docker/run-tests.sh -a test -t "Compaction*Test$" -j 11


Running other types of tests with docker:

.build/docker/run-tests.sh test
.build/docker/run-tests.sh stress-test
.build/docker/run-tests.sh fqltool-test
.build/docker/run-tests.sh microbench
.build/docker/run-tests.sh test-cdc
.build/docker/run-tests.sh test-compression
.build/docker/run-tests.sh test-oa
.build/docker/run-tests.sh test-system-keyspace-directory
.build/docker/run-tests.sh test-latest
.build/docker/run-tests.sh test-burn
.build/docker/run-tests.sh long-test
.build/docker/run-tests.sh cqlsh-test
.build/docker/run-tests.sh jvm-dtest
.build/docker/run-tests.sh jvm-dtest-upgrade
.build/docker/run-tests.sh dtest
.build/docker/run-tests.sh dtest-novnode
.build/docker/run-tests.sh dtest-latest
.build/docker/run-tests.sh dtest-large
.build/docker/run-tests.sh dtest-large-novnode
.build/docker/run-tests.sh dtest-upgrade
.build/docker/run-tests.sh dtest-upgrade-large

.build/docker/run-tests.sh -a test
.build/docker/run-tests.sh -a stress-test
.build/docker/run-tests.sh -a fqltool-test
.build/docker/run-tests.sh -a microbench
.build/docker/run-tests.sh -a test-cdc
.build/docker/run-tests.sh -a test-compression
.build/docker/run-tests.sh -a test-oa
.build/docker/run-tests.sh -a test-system-keyspace-directory
.build/docker/run-tests.sh -a test-tries
.build/docker/run-tests.sh -a test-burn
.build/docker/run-tests.sh -a long-test
.build/docker/run-tests.sh -a cqlsh-test
.build/docker/run-tests.sh -a jvm-dtest
.build/docker/run-tests.sh -a jvm-dtest-upgrade
.build/docker/run-tests.sh -a dtest
.build/docker/run-tests.sh -a dtest-novnode
.build/docker/run-tests.sh -a dtest-offheap
.build/docker/run-tests.sh -a dtest-large
.build/docker/run-tests.sh -a dtest-large-novnode
.build/docker/run-tests.sh -a dtest-upgrade
.build/docker/run-tests.sh -a dtest-upgrade-large

Repeating tests

Just add the '-repeat' suffix to the test type and pass in the repeat arguments

.build/run-tests.sh -a jvm-dtest-repeat -t BooleanTest -e REPEATED_TESTS_COUNT=2
.build/docker/run-tests.sh -a jvm-dtest-repeat -t BooleanTest -e REPEATED_TESTS_COUNT=2 -j 11

Fail fast with repeating tests is done with REPEATED_TESTS_STOP_ON_FAILURE

.build/run-tests.sh -a jvm-dtest-repeat -t BooleanTest -e REPEATED_TESTS_COUNT=2 -e REPEATED_TESTS_STOP_ON_FAILURE=false

Running python dtests without docker:

@@ -134,6 +144,10 @@ Other python dtest types without docker:

.build/run-python-dtests.sh dtest-upgrade-large

Debugging test scripts:

DEBUG=true .build/docker/run-tests.sh -a test


Running Sonar analysis (experimental)
-------------------------------------
20 changes: 19 additions & 1 deletion .build/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -62,7 +62,13 @@
<property name="idFormat" value="blockPathToFile"/>
<property name="influenceFormat" value="0"/>
</module>


<module name="SuppressWithNearbyCommentFilter">
<property name="commentFormat" value="checkstyle: permit this invocation"/>
<property name="idFormat" value="blockToCases"/>
<property name="influenceFormat" value="0"/>
</module>

<module name="RegexpSinglelineJava">
<!-- block system time -->
<property name="id" value="blockSystemClock"/>
@@ -151,6 +157,14 @@
<property name="message" value="Avoid Short() and use Short.valueOf()" />
</module>

<module name="RegexpSinglelineJava">
<!-- block toLowerCase and toUpperCase -->
<property name="id" value="blockToCases"/>
<property name="format" value="toLowerCase\(|toUpperCase\("/>
<property name="ignoreComments" value="true"/>
<property name="message" value="Avoid toLowerCase() or toUpperCase() and use LocalizeString class instead" />
</module>

<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="checkstyle: suppress below '([\w\|]+)'"/>
<property name="idFormat" value="$1"/>
@@ -169,6 +183,10 @@
<property name="message" value="Use the CassandraRelevantProperties or CassandraRelevantEnv instead." />
</module>

<module name="IllegalType"> <!-- usage of var check -->
<property name="illegalClassNames" value="var"/>
</module>

<module name="RedundantImport"/>
<module name="UnusedImports"/>

84 changes: 65 additions & 19 deletions .build/docker/run-tests.sh
Original file line number Diff line number Diff line change
@@ -15,27 +15,70 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#
# A wrapper script to run-tests.sh (or dtest-python.sh) in docker.
# Can split (or grep) the test list into multiple docker runs, collecting results.
#

[ $DEBUG ] && set -x

# help
if [ "$#" -lt 1 ] || [ "$#" -gt 3 ] || [ "$1" == "-h" ]; then
echo ""
echo "Usage: run-tests.sh test_type [split_chunk|test_regexp] [java_version]"
echo ""
echo " default split_chunk is 1/1"
echo " default java_version is what 'java.default' specifies in build.xml"
exit 1
fi
print_help() {
echo ""
echo "Usage: $0 [-a|-t|-c|-j|-h] [extra arguments]"
echo " -a Test target type: test, test-compression, test-cdc, ..."
echo " -t Test name regexp to run."
echo " -c Chunk to run in the form X/Y: Run chunk X from a total of Y chunks."
echo " -j Java version. Default java_version is what 'java.default' specifies in build.xml."
echo " [extra arguments] will be passed to downstream scripts."
exit 1
}

error() {
echo >&2 $2;
set -x
exit $1
echo >&2 $2;
set -x
exit $1
}

# legacy argument handling
case ${1} in
"build_dtest_jars" | "stress-test" | "fqltool-test" | "microbench" | "test-burn" | "long-test" | "cqlsh-test" | "simulator-dtest" | "dtest" | "dtest-novnode" | "dtest-latest" | "dtest-large" | "dtest-large-novnode" | "dtest-upgrade" | "dtest-upgrade-novnode"| "dtest-upgrade-large" | "dtest-upgrade-novnode-large" | "test" | "test-cdc" | "test-compression" | "test-oa" | "test-system-keyspace-directory" | "test-latest" | "jvm-dtest" | "jvm-dtest-upgrade" | "jvm-dtest-novnode" | "jvm-dtest-upgrade-novnode")
test_type="-a ${1}"
if [[ -z ${2} ]]; then
test_list=""
elif [[ -n ${2} && "${2}" =~ ^[0-9]+/[0-9]+$ ]]; then
test_list="-c ${2}";
else
test_list="-t ${2}";
fi
if [[ -n ${3} ]]; then java_version="-j ${3}"; else java_version=""; fi
echo "Using deprecated legacy arguments. Please update to new parameter format: ${test_type} ${test_list} ${java_version}"
$0 ${test_type} ${test_list} ${java_version}
exit $?
esac

env_vars=""
while getopts ":a:t:c:e:hj:" opt; do
# shellcheck disable=SC2220
# Invalid flags check disabled as we'll pass them to other scripts
case $opt in
a ) test_target="$OPTARG"
;;
t ) test_name_regexp="$OPTARG"
;;
c ) chunk="$OPTARG"
;;
j ) java_version="$OPTARG"
;;
e ) env_vars="${env_vars} -e $OPTARG"
;;
h ) print_help
exit 0
;;
e) ;; # Repeat vars are just passed to downstream run-tests-enhaced.sh
\?) die "Invalid option: -$OPTARG"
;;
esac
done

# variables, with defaults
[ "x${cassandra_dir}" != "x" ] || cassandra_dir="$(readlink -f $(dirname "$0")/../..)"
[ "x${cassandra_dtest_dir}" != "x" ] || cassandra_dtest_dir="${cassandra_dir}/../cassandra-dtest"
@@ -53,10 +96,11 @@ command -v timeout >/dev/null 2>&1 || { error 1 "timeout needs to be installed";
[ -f "${cassandra_dir}/.build/run-tests.sh" ] || { error 1 "${cassandra_dir}/.build/run-tests.sh must exist"; }

# arguments
target=$1
target=${test_target}
split_chunk="1/1"
[ "$#" -gt 1 ] && split_chunk=$2
java_version=$3
split_chunk=${chunk-'1/1'}
test_name_regexp=${test_name_regexp}
java_version=${java_version}

test_script="run-tests.sh"
java_version_default=`grep 'property\s*name="java.default"' ${cassandra_dir}/build.xml |sed -ne 's/.*value="\([^"]*\)".*/\1/p'`
@@ -135,7 +179,7 @@ esac

# figure out resource limits, scripts, and mounts for the test type
docker_flags="-m 5g --memory-swap 5g"
case ${target} in
case ${test_target/-repeat/} in
"build_dtest_jars")
;;
"stress-test" | "fqltool-test" )
@@ -156,7 +200,7 @@ case ${target} in
[[ ${mem} -gt $((15 * 1024 * 1024 * 1024 * ${jenkins_executors})) ]] || { error 1 "${target} require minimum docker memory 16g (per jenkins executor (${jenkins_executors})), found ${mem}"; }
docker_flags="-m 15g --memory-swap 15g"
;;
"test"| "test-cdc" | "test-compression" | "test-oa" | "test-system-keyspace-directory" | "test-latest" | "jvm-dtest" | "jvm-dtest-upgrade" | "jvm-dtest-novnode" | "jvm-dtest-upgrade-novnode")
"test" | "test-cdc" | "test-compression" | "test-oa" | "test-system-keyspace-directory" | "test-latest" | "jvm-dtest" | "jvm-dtest-upgrade" | "jvm-dtest-novnode" | "jvm-dtest-upgrade-novnode")
[[ ${mem} -gt $((5 * 1024 * 1024 * 1024 * ${jenkins_executors})) ]] || { error 1 "${target} require minimum docker memory 6g (per jenkins executor (${jenkins_executors})), found ${mem}"; }
;;
*)
@@ -236,8 +280,10 @@ logfile="${build_dir}/test/logs/docker_attach_${container_name}.log"
# Docker commands:
# set java to java_version
# execute the run_script
[ -n "${test_name_regexp}" ] && test_name_regexp_arg="-t ${test_name_regexp}" || split_chunk_arg="-c ${split_chunk}"

docker_command="source \${CASSANDRA_DIR}/.build/docker/_set_java.sh ${java_version} ; \
\${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh ${target} ${split_chunk} ; exit \$?"
\${CASSANDRA_DIR}/.build/docker/_docker_init_tests.sh -a ${target} ${split_chunk_arg} ${test_name_regexp_arg} ${env_vars} ; exit \$?"

# start the container, timeout after 4 hours
docker_id=$(docker run --name ${container_name} ${docker_flags} ${docker_envs} ${docker_mounts} ${docker_volume_opt} ${image_name} sleep 4h)
11 changes: 11 additions & 0 deletions .build/owasp/dependency-check-suppressions.xml
Original file line number Diff line number Diff line change
@@ -33,14 +33,25 @@
</suppress>

<!-- https://issues.apache.org/jira/browse/CASSANDRA-19142 -->
<!-- https://issues.apache.org/jira/browse/CASSANDRA-20412 -->
<suppress>
<packageUrl regex="true">^pkg:maven/ch\.qos\.logback/logback\-core@.*$</packageUrl>
<cve>CVE-2023-6378</cve>
<cve>CVE-2023-6481</cve>
<cve>CVE-2024-12798</cve>
<cve>CVE-2024-12801</cve>
</suppress>
<suppress>
<packageUrl regex="true">^pkg:maven/ch\.qos\.logback/logback\-classic@.*$</packageUrl>
<cve>CVE-2023-6378</cve>
<cve>CVE-2023-6481</cve>
<cve>CVE-2024-12798</cve>
<cve>CVE-2024-12801</cve>
</suppress>

<!-- https://issues.apache.org/jira/browse/CASSANDRA-20024 -->
<suppress>
<packageUrl regex="true">^pkg:maven/org\.apache\.lucene/lucene\-.*@9.7.0$</packageUrl>
<cve>CVE-2024-45772</cve>
</suppress>
</suppressions>
6 changes: 3 additions & 3 deletions .build/parent-pom-template.xml
Original file line number Diff line number Diff line change
@@ -302,7 +302,7 @@
<dependency>
<groupId>com.github.luben</groupId>
<artifactId>zstd-jni</artifactId>
<version>1.5.5-1</version>
<version>1.5.7-2</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
@@ -1219,12 +1219,12 @@
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-core</artifactId>
<version>9.7.0</version>
<version>9.12.0</version>
</dependency>
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-analysis-common</artifactId>
<version>9.7.0</version>
<version>9.12.0</version>
</dependency>
<dependency>
<groupId>io.github.jbellis</groupId>
33 changes: 28 additions & 5 deletions .build/run-python-dtests.sh
Original file line number Diff line number Diff line change
@@ -28,18 +28,41 @@
[ $DEBUG ] && set -x

# help
if [ "$#" -lt 1 ] || [ "$#" -gt 2 ] || [ "$1" == "-h" ]; then
if [ "$#" -lt 1 ] || [ "$1" == "-h" ]; then
echo ""
echo "Usage: run-python-dtest.sh test_type [split_chunk|test_regexp]"
echo "Usage: $0 [-a|-t|-c|-j|-h]"
echo " -a Test target type: dtest, dtest-latest, ..."
echo " -t Test name regexp to run."
echo " -c Chunk to run in the form X/Y: Run chunk X from a total of Y chunks."
echo ""
echo " default split_chunk is 1/1"
exit 1
fi

# Pass in target to run, defaults to dtest
DTEST_TARGET="${1:-dtest}"
# Optional: pass in chunk to test, formatted as "K/N" for the Kth chunk of N chunks
DTEST_SPLIT_CHUNK="$2"
DTEST_TARGET="dtest"

# TODO implement repeated runs, eg CASSANDRA-18942
while getopts "a:t:c:hj:" opt; do
case $opt in
a ) DTEST_TARGET="$OPTARG"
;;
t ) DTEST_SPLIT_CHUNK="$OPTARG"
;;
c ) DTEST_SPLIT_CHUNK="$OPTARG"
;;
h ) print_help
exit 0
;;
j ) ;; # To avoid failing on java_version param from docker/run_tests.sh
\?) error 1 "Invalid option: -$OPTARG"
;;
esac
done
shift $((OPTIND-1))
if [ "$#" -ne 0 ]; then
error 1 "Unexpected arguments"
fi

# variables, with defaults
[ "x${CASSANDRA_DIR}" != "x" ] || CASSANDRA_DIR="$(readlink -f $(dirname "$0")/..)"
Loading