Commit Graph

32117 Commits

Author SHA1 Message Date
Dmitry Konstantinov 0040482e26
Reduce disk space usage by CommitLogSegmentManagerCDCTest
patch by Dmitry Konstantinov; reviewed by Michael Semb Wever for CASSANDRA-21534
2026-07-24 13:13:17 +02:00
Stefan Miklosovic ca42cfe68d
Add nodetool getreplicas
nodetool getendpoints is deprecated. Also, all StorageServiceMBean.getNaturalEndpoints* methods are
deprecated and they call their replica counterparts. The deprecated methods are also not used directly anywhere
in the code (nor tests).

patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-17665
2026-07-23 21:51:51 +02:00
Stefan Miklosovic e805b8aa32
Merge branch 'cassandra-6.0' into trunk 2026-07-22 14:58:50 +02:00
Stefan Miklosovic 4066139d3f
ninja: fix wrong default for compression_dictionary_cache_expire in documentation 2026-07-22 14:57:00 +02:00
Stefan Miklosovic 57cfd6b123
Merge branch 'cassandra-6.0' into trunk 2026-07-22 10:50:00 +02:00
Stefan Miklosovic fb46c8126f
Merge branch 'cassandra-5.0' into cassandra-6.0 2026-07-22 10:49:05 +02:00
Stefan Miklosovic 1920fffad3
Merge branch 'cassandra-4.1' into cassandra-5.0 2026-07-22 10:48:05 +02:00
Stefan Miklosovic 2293c58805
Merge branch 'cassandra-4.0' into cassandra-4.1 2026-07-22 10:46:34 +02:00
Arvind Kandpal 28ec2730bd
Remove unused cassandra.boot_without_jna from cassandra-env.sh documentation
patch by Arvind Kandpal; reviewed by Stefan Miklosovic for CASSANDRA-20611
2026-07-22 10:45:06 +02:00
Stefan Miklosovic 87df717392
Merge branch 'cassandra-6.0' into trunk 2026-07-22 10:34:21 +02:00
Shubhang Singh e9cab5ebb1
Fix broken links in README.asc
patch by Shubhang Singh; reviewed by Stefan Miklosovic for CASSANDRA-20985
2026-07-22 10:32:09 +02:00
Stefan Miklosovic d75d603281
Merge branch 'cassandra-6.0' into trunk 2026-07-20 20:47:47 +02:00
Stefan Miklosovic 15a6bac06d
Merge branch 'cassandra-5.0' into cassandra-6.0 2026-07-20 20:45:18 +02:00
Stefan Miklosovic bd345213c1
Merge branch 'cassandra-4.1' into cassandra-5.0 2026-07-20 20:43:56 +02:00
Stefan Miklosovic 1c702382de
Merge branch 'cassandra-4.0' into cassandra-4.1 2026-07-20 20:42:36 +02:00
Jeremiah Jordan 26d7b166ba
Verify extension type before initializing reflectively-loaded classes
Cassandra resolves pluggable extensions by class name from configuration, schema, and tooling
inputs. These names were loaded with an initializing Class.forName(name) and type-checked only
afterward, so the named class ran its static initializer before its type was confirmed. After this
change such classes will be loaded without initialization, verified against the expected interface or
base class, and initialized only through normal use after validation.

A shared FBUtilities.classForNameWithoutInitialization helper and typed
instanceOrConstruct/construct overloads apply this to the configurable extension points loaded by
class name: the authentication, authorization, role-management, network and
internode-authenticator backends, the partitioner, audit logger, configuration loader, seed provider,
snitch, abstract types, secondary and custom indexes, compaction strategy, compressor, replication
strategy, SASI analyzers, key and cache providers, query handler, storage and stream hooks, tracing,
the JMX authorization proxy, MBeans, the monotonic clock, nodetool Sjk, triggers, the
sstableloader and stress class options, and diagnostic event classes (loaded without initialization
and checked against DiagnosticEvent, preserving the InvalidClassException contract and the existing
package restriction).

Regression tests confirm that an invalid-type load is rejected without initializing the target
class, and that valid implementations still resolve.

Hadoop client integration and hard-coded JDK and internal class probes are left unchanged.

patch by Jeremiah Jordan; reviewed by Stefan Miklosovic for CASSANDRA-21525
2026-07-20 20:03:45 +02:00
Caleb Rackliffe f989d96b4b Merge branch 'cassandra-6.0' into trunk
* cassandra-6.0:
  SAI Component Checksum Validation Should be Segment-Aware
2026-07-18 23:21:07 -05:00
Caleb Rackliffe 27cc24bc79 Merge branch 'cassandra-5.0' into cassandra-6.0
* cassandra-5.0:
  SAI Component Checksum Validation Should be Segment-Aware
2026-07-18 23:14:02 -05:00
Caleb Rackliffe 4bd98de6ee SAI Component Checksum Validation Should be Segment-Aware
patch by Caleb Rackliffe; reviewed by Francisco Guerrero for CASSANDRA-21516
2026-07-18 22:53:56 -05:00
Stefan Miklosovic 1515da5635
Merge branch 'cassandra-6.0' into trunk 2026-07-13 14:42:42 +02:00
Stefan Miklosovic fe11477010
Merge branch 'cassandra-5.0' into cassandra-6.0 2026-07-13 14:42:34 +02:00
Stefan Miklosovic 86d7aeb955
Prepare debian changelog for 5.0.9 2026-07-13 14:29:17 +02:00
Stefan Miklosovic 396f5da2ee
Merge branch 'cassandra-6.0' into trunk 2026-07-13 14:22:26 +02:00
Stefan Miklosovic 181e7322c5
Merge branch 'cassandra-5.0' into cassandra-6.0 2026-07-13 14:22:18 +02:00
Stefan Miklosovic bccfa7ace4
Merge branch 'cassandra-4.1' into cassandra-5.0 2026-07-13 14:22:03 +02:00
Stefan Miklosovic 2beef3f8af
Prepare debian changelog for 4.1.12 2026-07-13 14:05:05 +02:00
Stefan Miklosovic 417cee673e
Merge branch 'cassandra-6.0' into trunk 2026-07-13 13:35:52 +02:00
Stefan Miklosovic da87b48f70
Merge branch 'cassandra-5.0' into cassandra-6.0 2026-07-13 13:35:41 +02:00
Stefan Miklosovic 3668f984c2
Merge branch 'cassandra-4.1' into cassandra-5.0 2026-07-13 13:35:29 +02:00
Stefan Miklosovic 3bd656f272
Merge branch 'cassandra-4.0' into cassandra-4.1 2026-07-13 13:35:14 +02:00
Stefan Miklosovic 33c1dbe5b8
Prepare debian changelog for 4.0.21 2026-07-13 13:12:00 +02:00
Dmitry Konstantinov 6bab2df061 Merge branch 'cassandra-6.0' into trunk
* cassandra-6.0:
  Fix flakiness in CommitLogSegmentManagerCDCTest
2026-07-12 22:04:34 +01:00
Dmitry Konstantinov 45f04ad9fa Merge branch 'cassandra-5.0' into cassandra-6.0
* cassandra-5.0:
  Fix flakiness in CommitLogSegmentManagerCDCTest
2026-07-12 22:04:15 +01:00
Dmitry Konstantinov a14a954788 Fix flakiness in CommitLogSegmentManagerCDCTest
Restore deleteCDCRawFiles logic which is present in 6.0 and trunk but probably lost in 5.0 due to merges
Files may be concurrently removed by the CDC management thread, so we tolerate a file that has already been deleted rather than failing the test.
Fix IndexOutOfBoundsException at commitlog.AbstractCommitLogSegmentManager.forceRecycleAll - it is already fixed in 6.0/trunk.
Cleanup test data after run to reduce disk usage.

Patch by Dmitry Konstantinov; reviewed by Michael Semb Wever for CASSANDRA-20091
2026-07-12 21:55:58 +01:00
Maxim Muzafarov d60927cb14
Merge branch 'cassandra-6.0' into trunk
* cassandra-6.0:
  Forbid ambiguous option/parameter keys in nodetool command hierarchy
2026-07-11 21:39:38 +02:00
Maxim Muzafarov 7874fdae57
Forbid ambiguous option/parameter keys in nodetool command hierarchy
patch by Maxim Muzafarov; reviewed by Dmitry Konstantinov for CASSANDRA-21509
2026-07-11 21:31:41 +02:00
Mick Semb Wever a6e130c08d
Merge branch 'cassandra-6.0' into trunk
* cassandra-6.0:
  Prepare debian changelog for 6.0-alpha2
2026-07-10 18:01:15 +02:00
Mick Semb Wever 03b9b71d52
Prepare debian changelog for 6.0-alpha2 2026-07-10 16:53:07 +02:00
Stefan Miklosovic e56b58732c
Merge branch 'cassandra-6.0' into trunk 2026-07-10 11:16:49 +02:00
Stefan Miklosovic 2397d52df7
Depend only on platform-specific Zstd JNI native libraries
patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANDRA-21483
2026-07-10 11:15:25 +02:00
mck 4ddbe3f72b
Merge branch 'cassandra-6.0' into trunk
* cassandra-6.0:
  Fix how ubuntu-test.docker curls to find the latest patch version of each release
2026-07-10 00:16:14 +02:00
mck 29a5c3f9c1
Merge branch 'cassandra-5.0' into cassandra-6.0
* cassandra-5.0:
  Fix how ubuntu-test.docker curls to find the latest patch version of each release
2026-07-10 00:14:28 +02:00
mck 208d87513f
Fix how ubuntu-test.docker curls to find the latest patch version of each release
patch by Mick Semb Wever; reviewed Štefan Miklošovič for CASSANDRA-21489
2026-07-10 00:01:05 +02:00
Dmitry Konstantinov 788bbc0891 Merge branch 'cassandra-6.0' into trunk
* cassandra-6.0:
  Expose immediately-executed tasks in the queries virtual table
2026-07-09 09:31:02 +01:00
Dmitry Konstantinov 480320f3cf Expose immediately-executed tasks in the queries virtual table
SEPExecutor.maybeExecuteImmediately() runs a task synchronously on the
calling worker thread, nested within the task the worker is already
running. Such immediate tasks were invisible in system_views.queries, which only exposed each worker's primary running task.
This is common on the coordinator path, where a local read or mutation is executed immediately within the enclosing QUERY task.

Each SEPWorker now also tracks an immediate current task, set around
maybeExecuteImmediately(), and exposes it as an additional
DebuggableTaskRunner, so the queries table reports both the enclosing
task and the immediate one as separate rows.

patch by Dmitry Konstantinov; reviewed by Caleb Rackliffe for CASSANDRA-21471
2026-07-09 09:22:10 +01:00
Sam Tunnicliffe 1332e217f9 Merge branch 'cassandra-6.0' into trunk 2026-07-08 15:36:49 +01:00
Sam Tunnicliffe 1df3a8cef0 Setup async transformation before making internode request
Patch by Sam Tunnicliffe and Dmitry Konstantinov; reviewed by Sam
Tunnicliffe and Dmitry Konstantinov for CASSANDRA-21384

Co-authored-by: Dmitry Konstantinov <netudima@gmail.com>
2026-07-08 15:35:09 +01:00
Sam Tunnicliffe 6bee931da9 Merge branch 'cassandra-6.0' into trunk 2026-07-06 11:53:17 +01:00
Sam Tunnicliffe e1e56e5d5d Add CMS membership directly to ClusterMetadata
Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for
CASSANDRA-20736
2026-07-06 11:52:18 +01:00
Stefan Miklosovic 50ddce8455
Merge branch 'cassandra-6.0' into trunk 2026-07-03 11:15:03 +02:00