Commit Graph

70 Commits

Author SHA1 Message Date
Stefan Miklosovic 62150b08d5
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-08-08 08:36:37 +02:00
Serban Teodorescu f4eb55097e
Add documentation for tombstone threshold metrics
patch by Serban Teodorescu; reviewed by Stefan Miklosovic for CASSANDRA-20803
2025-08-08 08:33:51 +02:00
Andy Tolbert 9c308ce2f3 Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Ensure prepared_statement INSERT timestamp precedes eviction DELETE
2025-05-27 22:22:41 -05:00
Andy Tolbert d077f69553 Ensure prepared_statement INSERT timestamp precedes eviction DELETE
Updates SystemKeyspace.writePreparedStatement to accept a timestamp
associated with the Prepared creation time. Using this timestamp
will ensure that an INSERT into system.prepared_statements will
always precede the timestamp for the same Prepared in
SystemKeyspace.removePreparedStatement.

This is needed because Caffeine 2.9.2 may evict an entry as soon
as it is inserted if the maximum weight of the cache is exceeded
causing the DELETE to be executed before the INSERT.

Additionally, any clusters currently experiencing a leaky
system.prepared_statements table from this bug may struggle to
bounce into a version with this fix as
SystemKeyspace.loadPreparedPreparedStatements currently does
not paginate the query to system.prepared_statements, causing heap
OOMs.  To fix this this patch adds pagination at 5000 rows and
aborts loading once the cache size is loaded. This should allow
nodes to come up and delete older prepared statements that may no
longer be used as the cache fills up (which should happen immediately).

This patch does not address the issue of Caffeine immediately evicting
a prepared statement, however it will prevent the
system.prepared_statements table from growing unbounded.  For most users
this should be adequate, as the cache should only be filled when there
are erroneously many unique prepared statements. In such a case we can
expect that clients will constantly prepare statements regardless
of whether or not the cache is evicting statements.

patch by Andy Tolbert; reviewed by Berenguer Blasi and Caleb Rackliffe for CASSANDRA-19703
2025-05-27 22:17:15 -05:00
Stefan Miklosovic 93e77182d5
Merge branch 'cassandra-4.0' into cassandra-4.1 2025-04-07 10:12:50 +02:00
pranavchaurasia18 07bbf2cd97
Docs should mention that cassandra.yaml should be secure
patch by Pranav Chaurasia; reviewed by Stefan Miklosovic for CASSANDRA-18297
2025-04-07 10:11:37 +02:00
Мещеряков Вячеслав Юрьевич d1f2936ccb
Support legacy plain_text_auth section in credentials file removed unintentionally
patch by Мещеряков Вячеслав Юрьевич; reviewed by Stefan Miklosovic and Brad Schoening for CASSANDRA-19498
2024-05-14 10:07:19 +02:00
Brandon Williams 7cbf59e9a1 Merge branch 'cassandra-4.0' into cassandra-4.1 2024-04-03 16:50:43 -05:00
Brandon Williams f0aa6744d2 Merge branch 'cassandra-3.11' into cassandra-4.0 2024-04-03 16:49:35 -05:00
Tibor Répási 338e4ed618 Docs: deprecate the usage of apt-key and adopt distribution name
Patch by Tibor Répási; reviewed by brandonwilliams for CASSANDRA-19110
2024-04-03 16:48:06 -05:00
Mick Semb Wever cfabddcfb0
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-04-29 19:01:14 +02:00
Mick Semb Wever 1929550fc0
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-04-29 18:24:41 +02:00
Steve Putala 90d0857d34
fix typos in data modeling and getting started docs
patch by Steve Putala; reviewed by Mick Semb Wever

ref: https://github.com/apache/cassandra/pull/2280
2023-04-29 18:18:48 +02:00
Lorina Poland 9a3a37c5b3 DOC - Added :stem: latexmath to Data Modeling page to fix display of equations
patch by Lorina Poland; reviewed by Erick Ramirez for CASSANDRA-16906
2023-04-07 11:14:33 -07:00
Lorina Poland 68bab31b4d DOC - Added :stem: latexmath to Data Modeling page to fix display of equations
patch by Lorina Poland; reviewed by Erick Ramirez for CASSANDRA-16906
2023-04-07 11:14:15 -07:00
Lorina Poland 83dd275d5d DOC - Added :stem: latexmath to Data Modeling page to fix display of equations
patch by Lorina Poland; reviewed by Erick Ramirez for CASSANDRA-16906
2023-04-05 11:19:31 -07:00
Tibor Répási af82b941a8
Restore 4.1's doc update for virtual table system_views.clients
patch by Tibor Répási; reviewed by Ekaterina Dimitrova, Michael Semb Wever for CASSANDRA-18303, CASSANDRA-17344
2023-03-09 20:55:24 +01:00
Ekaterina Dimitrova bc16752bd7 Restore Virtual Tables page, and update nav for new pages
patch by Ekaterina Dimitrova; reviewed by Mick Semb Wever for CASSANDRA-17976

Co-authored-by: Mick Semb Wever <mck@apache.org>
2022-11-18 15:33:49 -05:00
Mick Semb Wever 162d504be0
Update What's New in 4.1 docs page
patch by Mick Semb Wever; reviewed by Ekaterina Dimitrova, Berenguer Blasi, Erick Ramirez for CASSANDRA-17976
2022-11-04 13:39:06 +01:00
Erick Ramirez a4b90fbc01 WEBSITE - Updated What's New page for 4.1
patch by Michael Semb Wever, Erick Ramirez; reviewed by Ekaterina Dimitrova, Berenguer Blasi, Erick Ramirez for CASSANDRA-17976

Co-authored by: Mick Semb Wever <mck@apache.org>
Co-authored by: Erick Ramirez <erickramirezau@apache.org>
2022-11-04 13:39:32 +11:00
Ekaterina Dimitrova 4c85c6a403 key_cache_save_period, row_cache_save_period, counter_cache_save_period are not deprecated and we should not emit deprecation warning on startup for them
Patch by Ekaterina Dimitrova; reviewed by Stefan Miklosovic for CASSANDRA-17904
2022-09-19 18:10:36 -04:00
Francisco Guerrero 83c169ec9e Fix BulkLoader to load entireSSTableThrottle and entireSSTableInterDcThrottle
patch by Francisco Guerrero; reviewed by Ekaterina Dimitrova, Yifan Cai for CASSANDRA-17677
2022-08-19 14:19:53 -07:00
Ekaterina Dimitrova 43036ecadd Update docs and NEWS.txt; config docs are reachable now on the website
patch by Ekaterina Dimitrova; reviewed by Caleb Rackliffe for CASSANDRA-17778
2022-08-17 18:28:01 -04:00
Mick Semb Wever e02923305c
Merge branch 'cassandra-4.0' into cassandra-4.1 2022-08-16 21:48:01 +02:00
Mick Semb Wever 5fafa709fb
Merge branch 'cassandra-3.11' into cassandra-4.0 2022-08-16 21:46:36 +02:00
Mick Semb Wever b492341eb5
Move deb/rpm repositories from dist/downloads .a.o to apache.jfrog.io
patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-17748
2022-08-16 21:45:23 +02:00
Ekaterina Dimitrova a7d7708976 Merge branch 'cassandra-4.0' into cassandra-4.1 2022-08-08 13:02:48 -04:00
Ekaterina Dimitrova e5e13c02cc Fix default value for compaction_throughput_mb_per_sec in Config class to match the one in cassandra.yaml
patch by Ekaterina Dimimtrova; reviewed by Francisco Guerrero, Michael Semb Wever for CASSANDRA-17790
2022-08-08 12:45:36 -04:00
Mick Semb Wever c2148980ce
Remove read_repair table option from docs, and restore read_repair_chance docs
patch by Milan Krisko; reviewed by Mick Semb Wever for CASSANDRA-17727
2022-07-16 12:57:38 +02:00
Mick Semb Wever 31eb6852e1
Merge branch 'cassandra-4.0' into cassandra-4.1 2022-07-08 12:25:21 +02:00
Mick Semb Wever 5072bde5fb
Merge branch 'cassandra-3.11' into cassandra-4.0 2022-07-08 12:24:22 +02:00
Andrew Hogg ef6bce5084
Removing superfluous bullet points in FAQ page
patch by Andrew Hogg; reviewed by Mick Semb Wever for CASSANDRA-17275
2022-07-08 11:43:49 +02:00
Bereng f77a7a29e8 Update the CQL version for the 4.1 release
Patch by Berenguer Blasi; reviewed by Benjamin Lerer for CASSANDRA-17570
2022-07-08 09:15:27 +02:00
Andrés de la Peña 33730d9d06 Merge branch 'cassandra-4.0' into cassandra-4.1 2022-06-27 15:15:21 +01:00
Andrés de la Peña 90e2502c6c Merge branch 'cassandra-3.11' into cassandra-4.0 2022-06-27 15:14:35 +01:00
Andrés de la Peña bc8a260471 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-06-27 15:13:45 +01:00
Bereng 1d39a388ba Revert "Update the CQL version for the 4.1 release"
This reverts commit a508ac06e9.
2022-06-21 11:06:10 +02:00
Bereng a508ac06e9 Update the CQL version for the 4.1 release
patch by Berenguer Blasi; reviewed by Benjamin Lerer for CASSANDRA-17570
2022-06-21 08:13:21 +02:00
Ekaterina Dimitrova 2eac2590bf Revert removal of withBufferSizeInMB(int size) to CQLSSTableWriter.Builder and deprecate it in favor of withBufferSizeIniB(int size);update the docs
patch by Ekaterina Dimitrova; reviewed by Michael Semb Wever for CASSANDRA-17675
2022-06-02 15:31:23 -04:00
Ekaterina Dimitrova a67a2a2441 Handle config parameters upper bound on startup; Fix auto_snapshot_ttl and paxos_purge_grace_period min unit validations
patch by Ekaterina Dimitrova and Andres de la Pena; reviewed by Andres de la Pena and Caleb Rackliffe for CASSANDRA-17571

Co-authored-by: Ekaterina Dimitrova <ekaterina.dimitrova@datastax.com>
Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
2022-05-20 14:27:20 -04:00
Yifan Cai 8fc39685fb Fix testCDCIndexFileWriteOnSync and document cdc index file read edge case
Patch by Yifan Cai; reviewed by Josh McKenzie for CASSANDRA-17416
2022-05-09 15:21:16 -07:00
Tibor Répási c26dc06a28 add datapaths subcommand to nodetool
patch by Tibor Repasi; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-17568
2022-04-22 14:48:37 +02:00
ROCHETEAU Antoine d80bb323c9 CONTAINS and CONTAINS KEY support for Lightweight Transactions
patch by ROCHETEAU Antoine; reviewed by Benjamin Lerer, Berenguer Blasi for CASSANDRA-10537
2022-04-21 09:16:07 +02:00
Ekaterina Dimitrova dac738d2eb Transfer config parameters to the new types; Fix corner case for permissions_update_interval, roles_update_interval, credentials_update_interval;Fix typo in Config annotation; Made Converters type safe and fixed a few cases where converters used the wrong type; o should be provided with unit to DataStorageSpec and DurationStorageSpec; Fix null bug in DataStorageSpec and DurationSpec
patch by Ekaterina Dimitrova, David Capwell; reviewed by David Capwell and Caleb Rackliffe for CASSANDRA-17431

Co-authored-by: Ekaterina Dimitrova <ekaterina.dimitrova@datastax.com>
Co-authored-by: David Capwell <dcapwell@apache.org>
2022-04-20 10:20:30 -04:00
Marcus Eriksson 537321e9c7 Remove stress server functionality
Patch by marcuse; reviewed by Brandon Williams for CASSANDRA-17535
2022-04-08 14:34:43 +02:00
Jogesh Anand e137c7c34c Add support for IF EXISTS and IF NOT EXISTS in ALTER statements
patch by Jogesh Anand; reviewed by Benjamin Lerer, Berenguer Blasi for CASSANDRA-16916
2022-04-04 11:35:16 +02:00
Bereng bdde665032 Adding docs for pre hashed passwords
patch by Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17494
2022-04-04 07:17:37 +02:00
Stefan Miklosovic e9ca465468 allow users to change cqlsh history location using env variable
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-17448
2022-03-24 23:24:21 +01:00
Josh McKenzie 10103d353c Add required -f option to nodetool verify
Patch by Josh McKenzie; reviewed by Marcus Eriksson, Berenguer Blasi, and Caleb Rackliffe for CASSANDRA-17017

Co-authored by Josh McKenzie <jmckenzie@apache.org>
Co-authored by Chris Lohfink <clohfink@apple.com>
2022-03-24 11:54:16 -04:00
Erick Ramirez 6a3edecd21 Merge branch 'cassandra-4.0' into trunk 2022-03-22 11:14:13 +00:00