Commit Graph

8525 Commits

Author SHA1 Message Date
Bernardo Botella Corbi 5cbf993d96
CEP-42 - Add Constraints Framework
patch by Bernardo Botella; reviewed by Yifan Cai, Stefan Miklosovic, Josh McKenzie, Maxwell Guo, Dmitry Konstantinov, Sam Tunnicliffe for CASSANDRA-19947
2025-01-31 10:49:11 +01:00
David Capwell 10c0481f46 Forward port randomized testing improvements from cep-15-accord to trunk
patch by David Capwell; reviewed by Caleb Rackliffe for CASSANDRA-20253
2025-01-28 12:46:50 -08:00
Caleb Rackliffe 8e5bdc6d4b Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Correct the default behavior of compareTo() when comparing WIDE and STATIC PrimaryKeys
2025-01-27 15:22:58 -06:00
Dmitry Konstantinov d7258ac8f3
Add table metric PurgeableTombstoneScannedHistogram and a tracing event for scanned purgeable tombstones
patch by Dmitry Konstantinov; reviewed by Chris Lohfink, Stefan Miklosovic for CASSANDRA-20132
2025-01-27 22:10:20 +01:00
Caleb Rackliffe 225eb2feeb Correct the default behavior of compareTo() when comparing WIDE and STATIC PrimaryKeys
patch by Caleb Rackliffe; reviewed by David Capwell for CASSANDRA-20238
2025-01-27 15:05:44 -06:00
Marcus Eriksson 634a5985d3 Make sure we can parse the expanded CQL before writing it to the log or sending it to replicas
Patch by marcuse; reviewed by Sam Tunnicliffe and Stefan Miklosovic for CASSANDRA-20218
2025-01-27 10:47:15 +01:00
Stefan Miklosovic cf2bca244e
Merge branch 'cassandra-5.0' into trunk 2025-01-27 08:34:13 +01:00
Stefan Miklosovic 0d420a0df4
Merge branch 'cassandra-4.1' into cassandra-5.0 2025-01-27 08:26:53 +01:00
Stefan Miklosovic 85647ceadb
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-01-27 08:23:35 +01:00
Stefan Miklosovic 6207a305ba
Tighten up permissions in dc authorizers
patch by Stefan Miklosovic; reviewed by Francisco Guerrero for CASSANDRA-20225
2025-01-26 17:52:09 +01:00
David Capwell 186b5e4dbe Merge branch 'cassandra-5.0' into trunk 2025-01-24 15:02:11 -08:00
David Capwell 975c309eee Merge branch 'cassandra-4.1' into cassandra-5.0 2025-01-24 15:00:52 -08:00
David Capwell 935effb7e0 Merge branch 'cassandra-4.0' into cassandra-4.1 2025-01-24 14:59:34 -08:00
David Capwell 3ddccf4521 CBUtil serialization of UTF8 does not handle all UTF8 properly
patch by David Capwell; reviewed by Yifan Cai for CASSANDRA-20234
2025-01-24 14:56:44 -08:00
Alex Petrov 1f17ef3b5c Fix ConsistentBootstrapTest
Patch by Alex Petrov; reviewed by David Capwell for CASSANDRA-20239
2025-01-24 12:10:06 +01:00
Stefan Miklosovic ba4a0d4fcb
Add format_bytes and format_time functions
patch by Stefan Miklosovic; reviewed by Jordan West for CASSANDRA-19546

Co-authored-by: Cheng Wang <chengw@netflix.com>
2025-01-24 09:47:12 +01:00
Stefan Miklosovic 06f0965a08
Fix error when trying to assign a tuple to target type not being a tuple
patch by Stefan Miklosovic; reviewed by David Capwell for CASSANDRA-20237
2025-01-24 01:34:23 +01:00
Maxwell Guo b4bcdfa785
Fail CREATE TABLE LIKE statement if UDTs in target keyspace do not exist or they have different structure from ones in source keyspace
patch by Maxwell Guo; reviewed by Stefan Miklosovic, Benjamin Lerer for CASSANDRA-19966
2025-01-22 18:53:53 +01:00
Joseph Lynch 0d39ea4917
Support octet_length and length functions
Previously users would either have to read the data and check the length
themselves or enable UDF and register UDFs to check the length of
columns. This patch adds a subset of the SQL99 (binary) string
functions: "octet_length" defined on all types and "length" defined on
UTF8 strings.

patch by Joey Lynch; reviewed by Chris Lohfink and Jordan West for CASSANDRA-20102
2025-01-22 11:59:23 +01:00
Stefan Miklosovic a8702d6a44
Merge branch 'cassandra-5.0' into trunk 2025-01-22 01:11:26 +01:00
Marcus Eriksson 751d3f24cf
Make sure we can set parameters when configuring CassandraCIDRAuthorizer
patch by Marcus Eriksson; reviewed by Stefan Miklosovic for CASSANDRA-20220
2025-01-22 01:08:14 +01:00
Blake Eggleston 15d6437283 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Use mutation creation time for hint expiry rather than hint submission time
2025-01-21 12:16:05 -08:00
Blake Eggleston 0cc7a03523 Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Use mutation creation time for hint expiry rather than hint submission time
2025-01-21 12:13:37 -08:00
Blake Eggleston 246e65e69c Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Use mutation creation time for hint expiry rather than hint submission time
2025-01-21 12:10:53 -08:00
Matt Byrd 4f0ad22f12 Use mutation creation time for hint expiry rather than hint submission time
patch by Matt Byrd; reviewed by Chris Lohfink, reviewed by Blake Eggleston for CASSANDRA-20014
2025-01-21 12:05:00 -08:00
Caleb Rackliffe cc86fc8865 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Add selected SAI index state and query performance metrics to nodetool tablestats
2025-01-17 12:32:49 -06:00
Sunil Ramchandra Pawar 79630fb42a Add selected SAI index state and query performance metrics to nodetool tablestats
patch by Sunil Ramchandra Pawar; reviewed by Caleb Rackliffe, Matt Byrd, and Maxim Muzafarov for CASSANDRA-20026
2025-01-17 12:24:27 -06:00
Sam Tunnicliffe a397a53891 Merge branch 'cassandra-5.0' into trunk 2025-01-17 09:12:01 +00:00
Sam Tunnicliffe 217490bdd8 Merge branch 'cassandra-4.1' into cassandra-5.0 2025-01-17 09:09:56 +00:00
Sam Tunnicliffe d14d16926e Merge branch 'cassandra-4.0' into cassandra-4.1 2025-01-17 09:08:09 +00:00
Stefan Miklosovic 6e8d0cde9e
Make JsonUtils serialize Instant always with the same format
patch by Stefan Miklosovic; reviewed by Maxim Muzafarov for CASSANDRA-20209
2025-01-17 09:23:07 +01:00
Caleb Rackliffe 2a3454a3ea Port Harry v2 to trunk
This commit ports to trunk work already done in the cep-15-accord branch, including parts of CASSANDRA-19955, CASSANDRA-20080, and CASSANDRA-20143.

patch by Caleb Rackliffe; reviewed by David Capwell and Alex Petrov for CASSANDRA-20200

Co-authored-by: Caleb Rackliffe <calebrackliffe@gmail.com>
Co-authored-by: Ariel Weisberg <aweisberg@apple.com>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
Co-authored-by: David Capwell <dcapwell@apache.org>
2025-01-16 14:48:00 -06:00
Brandon Williams b575d13610 Merge branch 'cassandra-5.0' into trunk 2025-01-16 13:54:21 -06:00
Brandon Williams ba73f7ce34 Merge branch 'cassandra-4.1' into cassandra-5.0 2025-01-16 13:54:12 -06:00
Brandon Williams 18c777f641 Merge branch 'cassandra-4.0' into cassandra-4.1 2025-01-16 13:53:59 -06:00
Kristijonas Zalys 7ffbd714b4 Set setIsShutdownUnsafeForTests(true) in dtests to fix shutdown race condition
Patch by Kristijonas Zalys, reviewed by brandonwilliams and mck for
CASSANDRA-18440
2025-01-16 13:52:51 -06:00
Stefan Miklosovic 407dbacb0a
Enable filtering of snapshots on keyspace, table and snapshot name in nodetool listsnapshots
patch by Stefan Miklosovic; reviewed by Jordan West, Bernardo Botella, Cheng Wang, Maxim Muzafarov for CASSANDRA-20151
2025-01-16 09:59:47 +01:00
Stefan Miklosovic b4e9399865
Create manifest upon loading where it does not exist or enrich it
When snapshot manifest does not exist, no snapshots would be found, because even
they would be loaded, since CASSANDRA-18111, snapshot's presence is logically
determined by the existence of at least one manifest.json file in any data dir. That
would result in snapshots not being shown e.g. in the output of
nodetool listsnapshots.

The fix consists of creating a manifest in each snapshot directory when not present.

When a manifest.json exists, its older format has not contained created_at field (pre-16789)
When this is detected, we will proceed to enrich such manifest by overwriting it
with a manifest of new format.

patch by Stefan Miklosovic; reviewed by Jordan West, Cheng Wang, Bernardo Botella for CASSANDRA-20150
2025-01-16 09:59:42 +01:00
Stefan Miklosovic b15a1f04b6
Propagate true size of snapshot in SnapshotDetailsTabularData to not call JMX twice in nodetool listsnapshots
This patch also opportunistically adds a new MBean method for SnapshotManager to
return true snapshot size for a particular snapshot.

patch by Stefan Miklosovic; reviewed by Maxim Muzafarov, Bernardo Botella for CASSANDRA-20149
2025-01-15 19:40:44 +01:00
Maxwell Guo 46ef00a315
Implementation of CEP-43
patch by Maxwell Guo; reviewed by Stefan Miklosovic, Benjamin Lerer for CASSANDRA-19964
2025-01-14 21:47:11 +01:00
Abe Ratnofsky aa5b8e3d3f Periodically disconnect roles that are revoked or have LOGIN=FALSE set
patch by Abe Ratnofsky; reviewed by Bernardo Botella Corbi, Francisco Guerrero Hernandez, and Jon Meredith for CASSANDRA-19385
2025-01-14 12:40:44 -08:00
Caleb Rackliffe 3c1e10b74e AST library for CQL-based fuzz tests
patch by Caleb Rackliffe; reviewed by David Capwell for CASSANDRA-20198

Co-authored-by: Caleb Rackliffe <calebrackliffe@gmail.com>
Co-authored-by: David Capwell <dcapwell@apache.org>
2025-01-14 12:14:23 -06:00
Sam Tunnicliffe d8babd0191 Merge branch 'cassandra-5.0' into trunk 2025-01-13 09:53:59 +00:00
Sam Tunnicliffe 332341b9b6 Merge branch 'cassandra-4.1' into cassandra-5.0 2025-01-13 09:50:38 +00:00
Dmitry Konstantinov 6f90e962f5 Enforce CQL message size limit on multiframe messages
Patch by Dmitry Konstantinov; reviewed by Sam Tunnicliffe,
Caleb Rackliffe for CASSANDRA-20052
2025-01-13 09:47:37 +00:00
Caleb Rackliffe e415019f64 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Remove v30 and v3X from 5.x in-JVM upgrade tests
2025-01-10 13:22:31 -06:00
Caleb Rackliffe 184887069f Remove v30 and v3X from 5.x in-JVM upgrade tests
patch by Caleb Rackliffe; reviewed by Mick Semb Wever and Brandon Williams for CASSANDRA-20103
2025-01-10 13:13:12 -06:00
Brandon Williams 6c17ab15d6 Merge branch 'cassandra-5.0' into trunk 2025-01-08 13:41:04 -06:00
Brandon Williams 02755193f9 Merge branch 'cassandra-4.1' into cassandra-5.0 2025-01-08 13:40:55 -06:00
Brandon Williams 0edd63287b Merge branch 'cassandra-4.0' into cassandra-4.1 2025-01-08 13:40:41 -06:00