Commit Graph

30241 Commits

Author SHA1 Message Date
Caleb Rackliffe 32030e4fa3 Reintroduce RestrictionSet#iterator() optimization around multi-column restrictions
patch by Caleb Rackliffe; reviewed by Benjamin Lerer for CASSANDRA-20034
2024-10-29 14:49:38 -05:00
mck 916486b34e
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Suppress CVE-2024-45772 lucene-core-9.7.0.jar
2024-10-29 12:44:35 +01:00
mck 3550b88307
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
2024-10-29 12:40:55 +01:00
Ata İlhan Köktürk 46b36f23cd
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>
2024-10-29 08:58:01 +01:00
Cheng c8854af030
Add -H option for human-friendly output in nodetool compactionhistory
patch by Cheng Wang; reviewed by Jordan West, Stefan Miklosovic for CASSANDRA-20015
2024-10-25 20:15:45 +02:00
Bereng 7446529e45 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Add extra compaction junit
2024-10-24 08:17:07 +02:00
Bereng 5e4ff921af Add extra compaction junit
patch by Berenguer Blasi; reviewed by Branimir Lambov, Michael Semb Wever for CASSANDRA-19863
2024-10-24 08:13:05 +02:00
rwelgosh e8891be04a Fix type check for referenced duration type for nested types
Patch by Raymond Welgosh; Reviewed by David Capwell, Yifan Cai for CASSANDRA-19890
2024-10-23 10:32:19 -07:00
Sam Tunnicliffe a9a83dc884 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
2024-10-22 09:51:50 +01:00
Marcus Eriksson 2d3068c01f 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>
2024-10-22 10:30:44 +02:00
Mick Semb Wever 6bbe85ef51
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  increment to version 5.0.3
2024-10-20 00:57:05 +02:00
Mick Semb Wever a58fa2ce7f
increment to version 5.0.3 2024-10-19 15:15:12 +02:00
mck ef49daf5ff
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Add new cassandra_latest.yaml entries to latest tests
2024-10-19 09:49:40 +02:00
mck 2801ed3366
Add new cassandra_latest.yaml entries to latest tests
Both CASSANDRA-18120 and CASSANDRA-19946 updated cassandra_latest.yaml but not the corresponding test configs

 patch by Mick Semb Wever; reviewed by Brandon Williams, Tiago L. Alves for CASSANDRA-20002
2024-10-19 09:42:54 +02:00
Caleb Rackliffe f9e2f1b219 Properly cancel in-flight futures and reject requests in EpochAwareDebounce during shutdown
patch by Caleb Rackliffe; reviewed by David Capwell and Sam Tunnicliffe for CASSANDRA-19848

Co-authored-by: Caleb Rackliffe <calebrackliffe@gmail.com>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2024-10-18 11:51:58 -05:00
Bereng f90a6ca388 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Add extra compaction junit
2024-10-16 13:39:29 +02:00
Bereng 38857dc047 Add extra compaction junit
patch by Berenguer Blasi; reviewed by Branimir Lambov for CASSANDRA-19863
2024-10-16 13:36:13 +02:00
mck 5e884a9329
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Add configurable batchlog endpoint strategies
2024-10-15 13:47:58 +02:00
mck dcff5a0fad
Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Add configurable batchlog endpoint strategies
2024-10-15 13:43:31 +02:00
mck 26bf80706b
Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Add configurable batchlog endpoint strategies
2024-10-15 13:38:12 +02:00
shunsaker b8c5436293
Add configurable batchlog endpoint strategies
Batchlog endpoint strategy was previously only random placements on other racks.  Options now are random_remote, prefer_local, dynamic_remote, and dynamic.

 patch by Shayne Hunsaker; reviewed by Mick Semb Wever, Brandon Williams for CASSANDRA-18120
2024-10-15 13:34:40 +02:00
mck 410d6b412a
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Fix bash-completion for debian distro
2024-10-15 10:33:20 +02:00
mck 18960d6e34
Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Fix bash-completion for debian distro
2024-10-15 10:30:53 +02:00
mck 7b612a8493
Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Fix bash-completion for debian distro
2024-10-15 10:27:06 +02:00
Alexander Batyrshin 6a1d13ade2
Fix bash-completion for debian distro
Check nodetool/cqlsh for bash-completion with _have instead of type

 patch by Alexander Batyrshin; reviewed by Mick Semb Wever for CASSANDRA-19999
2024-10-15 10:24:42 +02:00
mck 69a6dc61a8
Prevent CQLTester fuzz testing from using illegal commitlog_disk_access_mode combinations
Also provide a clearer message from DatabaseDescriptor about the failing combination

 patch by Mick Semb Wever; reviewed by David Capwell, Štefan Miklošovič for CASSANDRA-19812
2024-10-12 15:49:22 +02:00
Mick Semb Wever f1918f7070
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Prepare debian changelog for 5.0.2
2024-10-12 15:15:28 +02:00
Mick Semb Wever f278f6774f
Prepare debian changelog for 5.0.2 2024-10-12 14:39:33 +02:00
Caleb Rackliffe 16aea4e247 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Use SinglePartitionReadCommand for index queries that use strict filtering
2024-10-11 15:39:04 -05:00
Caleb Rackliffe 019c9118d4 Use SinglePartitionReadCommand for index queries that use strict filtering
patch by Caleb Rackliffe; reviewed by Ariel Weisberg for CASSANDRA-19968
2024-10-11 15:25:02 -05:00
Caleb Rackliffe f0a6f26040 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Always write local expiration time as an int to LivenessInfo digest
2024-10-11 12:12:21 -05:00
Caleb Rackliffe 176ce395bb Always write local expiration time as an int to LivenessInfo digest
patch by Caleb Rackliffe; reviewed by Mick Semb Wever, David Capwell, and Marcus Eriksson for CASSANDRA-19989
2024-10-11 11:39:20 -05:00
Mick Semb Wever 8a15f04b16
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Enables IAuthenticator's to return own AuthenticateMessage
2024-10-11 14:32:37 +02:00
Tiago Alves 50d94f4b46
Enables IAuthenticator's to return own AuthenticateMessage
Allows custom implementations of IAuthenticator to return their own
AuthenticateMessage based on ClientState information.

ClientState contains information about driver's name and version which
could be used to determine the contents of the AuthenticateMessage that
is sent back to the clients. This enables, for instance, returning
driver's known authenticator implementations (e.g. DseAuthenticator)
which enables SASL negotiation.

 patch by Tiago Alves; reviewed by Mick Semb Wever, Andy Tolbert for CASSANDRA-19984
2024-10-11 14:31:44 +02:00
Stefan Miklosovic c377e75ac9
Merge branch 'cassandra-5.0' into trunk 2024-10-10 09:41:45 -06:00
Stefan Miklosovic 0e5aa9b912
Merge branch 'cassandra-4.1' into cassandra-5.0 2024-10-10 09:33:56 -06:00
Stefan Miklosovic dbc87a44d1
Merge branch 'cassandra-4.0' into cassandra-4.1 2024-10-10 09:31:20 -06:00
Dmitry Konstantinov d939e40dfb
Fix flakiness of TopPartitionsTest
patch by Dmitry Konstantinov; reviewed by Stefan Miklosovic, Berenguer Blasi for CASSANDRA-19991
2024-10-10 08:11:11 -06:00
mck 1defa0851f
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Use ParameterizedClass for all auth-related implementations
2024-10-09 13:53:48 +02:00
Tiago Alves 2dea5c7588
Use ParameterizedClass for all auth-related implementations
Uses ParameterizedClass for IAuthorizer, INetworkAuthorizer, and
IRoleManager implementations enabling those to be configurable from
parameters specified directly in cassandra.yaml.

Opportunistically makes consistent the initialization and setting of
all auth-related implementations and removes code duplication.

Notes:
 * IInternodeAuthenticator implementations are expected to be set as
   default directly in DatabaseDescriptor instead of done via
   AuthConfig.applyAuth(). This is assumed in tests and client logic.
   For instance ReconnectableSnitchHelperTest fetches this authenticator
   before calling daemonInitialize(). Also, BulkLoader fetches this
   directly when creating an outbound connection.
 * Changing this behavior in BulkLoader causes a cascade of changes.
   First, one would need to add AuthConfig.applyAuth() directly in
   clientInitialize() and then would need to enable all the additional
   classes that this change causes. Long term this might be justified
   as if we're depending on the auth logic to be properly set. However,
   in the context of this change it was decided to postpone further
   changes.
 * Standardize auth-related configurations by using a short-form with
   the class name instead of the full qualified class name containing
   the package name.

 patch by Tiago Alves; reviewed by Mick Semb Wever, Stefan Miklosovic for CASSANDRA-19946
2024-10-09 13:51:51 +02:00
Arun Ganesh b9f900947a
Add total space used for a keyspace to nodetool tablestats
patch by Arun Ganesh; reviewed by Stefan Miklosovic, Brad Schoening for CASSANDRA-19671

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2024-10-07 17:13:39 -06:00
Caleb Rackliffe 219eea33b6 Ensure Relation#toRestriction() handles ReversedType properly
patch by Caleb Rackliffe; reviewed by David Capwell for CASSANDRA-19950
2024-10-04 17:48:51 -05:00
Suhel0328 664ab193d6
Add JSON and YAML output option to nodetool gcstats
patch by Mohammad Suhel; reviewed by Maxim Muzafarov, Maxwell Guo and Stefan Miklosovic for CASSANDRA-19771
2024-10-02 20:34:56 +02:00
Maxim Muzafarov 9cfe1f478a Merge branch 'cassandra-5.0' into trunk 2024-10-02 15:33:28 +02:00
Maxim Muzafarov 9dfcfaee65 Merge branch 'cassandra-4.1' into cassandra-5.0 2024-10-02 15:30:20 +02:00
Maxim Muzafarov ad4ad5ef5a Fix race condition in DecayingEstimatedHistogramReservoir during rescale
patch by Maxim Muzafarov; reviewed by Caleb Rackliffe for CASSANDRA-19365

Co-authored-by: Jakub Zytka <jakub.zytka@datastax.com>
2024-10-02 15:14:20 +02:00
Mick Semb Wever 27f50bfdaf
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Increment to version 5.0.2
2024-10-02 07:35:50 +02:00
Mick Semb Wever 6845359762
Increment to version 5.0.2 2024-10-02 07:30:18 +02:00
Marcus Eriksson 6111a60ad6 Introduce metadata serialization version V4
Patch by marcuse; reviewed by Stefan Miklosovic for CASSANDRA-19970
2024-10-01 11:59:20 +02:00
Mick Semb Wever 1a2d5d7360
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Exclude intensive dtests when not running dtest-upgrade*-large
2024-09-30 22:50:32 +03:00