Commit Graph

1123 Commits

Author SHA1 Message Date
Marcus Eriksson 415eaffb9c Reduce heap pressure when initializing CMS
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-20267
2025-03-03 08:37:33 +01:00
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
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
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
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
Sam Tunnicliffe 48dcf5e092 Snitch re-implementation
Deprecate IEndpointSnitch entirely, to be replaced with new interfaces:
* Locator for endpoint -> location mapping
* InitialLocationProvider to supply the DC & rack for registration
* NodeProximity for sorting endpoints and replicas at query time

For migration/upgrade/deprecation, nodes can still be configured with
an IEndpointSnitch implementation via endpoint_snitch in config, but
we hide this with a facade and only present the new interfaces.

Patch by Sam Tunnicliffe and Marcus Eriksson; reviewed by Sam
Tunnicliffe and Marcus Eriksson for CASSANDRA-19488

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2024-12-16 11:25:39 +00:00
Zhongxiang Zheng 2ff41551a6
Enable JMX server configuration to be in cassandra.yaml
patch by Zhongxiang Zheng; reviewed by Stefan Miklosovic, Maulin Vasavada, Cheng Wang, Jordan West for CASSANDRA-11695

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2024-12-16 11:01:29 +01:00
Branimir Lambov 54e4688069 Parallelized UCS compactions
patch by Branimir Lambov, reviewed by Sylvain Lebresne for CASSANDRA-18802
2024-12-11 17:37:09 +02:00
Stefan Miklosovic f410b0fa0b
Consolidate all snapshot management to SnapshotManager
patch by Stefan Miklosovic; reviewed by Francisco Guerrero for CASSANDRA-18111
2024-12-11 02:51:29 +01:00
Maulin Vasavada 9131be9fa5
Make JMX SSL configurable in cassandra.yaml
patch by Maulin Vasavada; reviewed by Stefan Miklosovic, Doug Rohrer for CASSANDRA-18508
2024-11-23 10:40:13 +01:00
Caleb Rackliffe f95c1b5bb3 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Deprecate and ignore use_deterministic_table_id
2024-07-31 16:31:36 -05:00
Caleb Rackliffe 7903ce2727 Deprecate and ignore use_deterministic_table_id
patch by Caleb Rackliffe; reviewed by David Capwell for CASSANDRA-19809
2024-07-31 16:21:11 -05:00
Stefan Miklosovic d336dda112
CEP-24 Password validation / generation
patch by Stefan Miklosovic; reviewed by Dinesh Joshi, Francisco Guerrero for CASSANDRA-17457
2024-07-08 23:32:09 +02:00
Caleb Rackliffe c33c8ebab4 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Optionally fail writes when SAI refuses to index a term value exceeding a configured maximum size
2024-04-17 11:29:43 -05:00
Caleb Rackliffe 9bfaee91c4 Optionally fail writes when SAI refuses to index a term value exceeding a configured maximum size
patch by Caleb Rackliffe; reviewed by Berenguer Blasi and Stefan Miklosovic for CASSANDRA-19493
2024-04-17 11:12:42 -05:00
Caleb Rackliffe 8f7c23be85 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Deprecate Python 3.7 and earlier, but allow cqlsh to run with Python 3.6-3.11
2024-03-19 23:48:48 -05:00
Caleb Rackliffe 8a33f32350 Deprecate Python 3.7 and earlier, but allow cqlsh to run with Python 3.6-3.11
patch by Caleb Rackliffe; reviewed by Brandon Williams and Stefan Miklosovic for CASSANDRA-19467
2024-03-19 23:41:47 -05:00
Branimir Lambov 28efb63df5 Merge branch 'cassandra-5.0' into trunk 2024-03-07 13:19:16 +02:00
Branimir Lambov 06ed1afc34 Add an optimized default configuration to tests and make it available for new users
This patch adds a new configuration file, cassandra_latest.yaml, which changes
some of the settings to use new features we usually recommend to users,
including:
- Big Trie-Indexed SSTables
- Trie memtables
- Unified Compaction Strategy
- Storage Attached Index
- Off-heap objects memtables
- Direct-write commit log
- No storage compatibility

These changes are applied in new test targets for unit, in-jvm and python dtests that are
run pre-commit. When changes are made to the new config file, python dtest will use it
directly, but unit and in-jvm dtests require updates, respectively, to latest_diff.yaml
and InstanceConfig.java.

patch by Branimir Lambov; reviewed by Berenguer Blasi for CASSANDRA-18753
2024-03-07 11:08:44 +02:00
Stefan Miklosovic 087a4474d8
Remove native_transport_port_ssl
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-19397
2024-02-19 09:24:56 +01:00
Stefan Miklosovic 3c76ae2a45
Merge branch 'cassandra-5.0' into trunk 2024-02-16 13:36:38 +01:00
Lorina Poland 2aa2b59d37
Minor adds and fixes in the documentation
patch by Lorina Poland; reviewed by Michael Semb Wever for CASSANDRA-19249, CASSANDRA-18990, CASSANDRA-15719

Co-authored-by: Annette Dennis <annette.dennis@datastax.com>
Co-authored-by: Mohsin Medmood <mohsin85mehmood@gmail.com>
Co-authored-by: Josh Wong <joshuarwong@outlook.com>
2024-02-16 12:29:37 +01:00
Stefan Miklosovic 8bdf2615bc
Merge branch 'cassandra-5.0' into trunk 2024-02-14 15:55:34 +01:00
Stefan Miklosovic 8b037a6c84
Deprecate native_transport_port_ssl
patch by Stefan Miklosovic; reviewed by Abe Ratnofsky, Brandon Williams for CASSANDRA-19392
2024-02-14 15:49:01 +01:00
Andy Tolbert 4120b8ce4f
Expose auth mode in system_views.clients, nodetool clientstats, metrics
Adds 'authenticationMode' and 'metadata' fields to AuthenticatedUser to add context
about how the user was authenticated and updates system_views.clients,
nodetool clientstats (behind --verbose flag) to include this information.

Also adds new metrics to ClientMetrics to help operators identify which
authentication modes are being used.

patch by Andy Tolbert; reviewed by Francisco Guerrero, Stefan Miklosovic for CASSANDRA-19366
2024-02-13 12:03:06 +01:00
Ekaterina Dimitrova fbd7ba5fa1 Merge branch 'cassandra-5.0' into trunk 2024-01-29 18:20:21 -05:00
Ekaterina Dimitrova 0f4a237d01 Merge branch 'cassandra-4.1' into cassandra-5.0 2024-01-29 18:17:08 -05:00
Ekaterina Dimitrova 846735eb8e Merge branch 'cassandra-4.0' into cassandra-4.1 2024-01-29 18:12:41 -05:00
Ekaterina Dimitrova 21988ed3f0 Merge branch 'cassandra-3.11' into cassandra-4.0 2024-01-29 18:04:48 -05:00
Ekaterina Dimitrova 604776b9c6 Merge branch 'cassandra-3.0' into cassandra-3.11 2024-01-29 18:01:19 -05:00
Ekaterina Dimitrova 22e12adaec Fix Compact Storage section in NEWS.txt
patch by Ekaterina Dimitrova; reviewed by Paulo Motta for CASSANDRA-19291
2024-01-29 17:58:20 -05:00
Stefan Miklosovic 37acd27f2d
Extend nodetool tpstats and system_views.thread_pools with detailed pool parameters
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-19289
2024-01-29 16:02:56 +01:00
Andrés de la Peña 03f0d37cb0 Merge branch 'cassandra-5.0' into trunk 2024-01-19 17:33:55 +00:00
Andrés de la Peña 8fd44ca8fc Upgrade Python driver to 3.29.0
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-19245
2024-01-19 17:14:57 +00:00
Stefan Miklosovic 82c01d5e0e
Merge branch 'cassandra-5.0' into trunk 2024-01-05 10:38:24 +01:00
Stefan Miklosovic 8ce4a6d1ec
Optionally fail when a non-partition-restricted query is issued against an index
patch by Stefan Miklosovic; reviewed by Caleb Rackliffe for CASSANDRA-18796
2024-01-02 10:31:34 +01:00
Jacek Lewandowski 008c1b397b Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Enable Direct-IO feature for CommitLog files using Java native API's.
2023-11-29 11:48:30 +01:00
Amit Pawar 3259bea533 Enable Direct-IO feature for CommitLog files using Java native API's.
Patch by Amit Pawar and Jacek Lewandowski; reviewed by Branimir Lambov and Maxwell Guo for CASSANDRA-18464

Co-authored-by: Amit Pawar <Amit.Pawar@amd.com>
Co-authored-by: Jacek Lewandowski <lewandowski.jacek@gmail.com>
2023-11-29 11:29:23 +01:00
Sam Tunnicliffe ae0842372f Implementation of Transactional Cluster Metadata as described in CEP-21
An overview of the core components can be found in the included
TransactionalClusterMetadata.md

patch by Alex Petrov, Marcus Eriksson and Sam Tunnicliffe; reviewed by
Alex Petrov, Marcus Eriksson and Sam Tunnicliffe for CASSANDRA-18330

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2023-11-24 10:26:08 +00:00
Stefan Miklosovic 4f32cdbf7c
Merge branch 'cassandra-5.0' into trunk 2023-11-16 08:44:00 +01:00
Stefan Miklosovic e1355d7238
Set default disk_access_mode to mmap_index_only
patch by Stefan Miklosovic; reviewed by Paulo Motta, Caleb Rackliffe, Brandon Williams for CASSANDRA-19021
2023-11-15 22:14:21 +01:00
Andrés de la Peña a77951ec0c Merge branch 'cassandra-5.0' into trunk 2023-11-14 11:48:35 +00:00
Andrés de la Peña b91c0fcb6e Change cqlsh's min required Python version from 3.6+ to 3.7+
patch by Andrés de la Peña; reviewed by Brandon Williams for CASSANDRA-18960
2023-11-14 11:43:00 +00:00
Bereng 0a09c12975 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Default to nb instead of nc for sstable formats
2023-11-13 09:29:03 +01:00
Bereng 0e4c2f4bef Default to nb instead of nc for sstable formats
patch by Berenguer Blasi; reviewed by Francisco Guerrero, Jacek Lewandowski, Michael Semb Wever for CASSANDRA-19010
2023-11-13 09:26:11 +01:00
Stefan Miklosovic 4ecff92404
Remove deprecated code in Cassandra 1.x and 2.x
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-18959
2023-10-30 21:54:55 +01:00
Andrés de la Peña d6159cfe15 Merge branch 'cassandra-5.0' into trunk 2023-10-30 19:04:54 +00:00
Mike Adamson 949b760f55
Add support for a vector search index in SAI
- Adds jbellis/jvector (1.0.2) library for DiskANN based indexes on floating point vectors
- Adds ORDER BY ANN OF capability to do ANN search and order the results by score

 patch by Mike Adamson; reviewed by Andrés de la Peña, Jonathon Ellis for CASSANDRA-18715

Co-authored-by Jonathon Ellis jbellis@gmail.com
Co-authored-by Zhao Yang zhaoyangsingapore@gmail.com
2023-10-29 12:24:00 +01:00
Stefan Miklosovic b9f614f7e5
Remove deprecated properties in CompressionParams
This patch removes deprecated chunk_length_kb and sstable_compression in favor of
chunk_length_in_kb and class parameters.

The only deprecated compression parameter left, crc_check_chance (which is configurable outside
of compression parameters as a standalone table parameter) is meant to be treated separately.

patch by Stefan Miklosovic; reviewed by Maxim Muzafarov and Brandon Williams for CASSANDRA-18742
2023-09-29 15:19:12 +02:00
Runtian 20d80118ac
Add the ability to disable bulk loading of SSTables
patch by Runtian Liu; reviewed by Stefan Miklosovic, Andres de la Peña and Brandon Williams for CASSANDRA-18781
2023-09-19 13:10:03 +02:00