Commit Graph

51 Commits

Author SHA1 Message Date
Sam Tunnicliffe 4454ab8699 Improve writePlacementsAllSettled performance in large clusters with many ongoing range movements
Only inflight MSOs which affect the local node need to be
applied to determine the settled local ranges

Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for
CASSANDRA-21144
2026-03-17 11:11:22 +00:00
Maxim Muzafarov c9fe399b06
Move -pp/--print-port from NodetoolCommand to per-command Mixin
Patch by Maxim Muzafarov; reviewed by Stefan Miklosovic for CASSANDRA-20790
2026-03-02 21:16:03 +01:00
Stefan Miklosovic 3fc830a19c
Be able to detect and remove orphaned compression dictionaries
patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANDRA-21157
2026-02-17 11:07:49 +11:00
Josh McKenzie 940739a488 Add JDK21 support
Patch by Josh McKenzie; reviewed by Mick Semb Wever and Ekaterina Dimitrova for CASSANDRA-18831

Co-authored-by: Aleksey Yeschenko
Co-authored-by: Achilles Benetopoulos
Co-authored-by: Mick Semb Wever
2026-02-02 12:39:05 -05:00
Yaman Ziadeh 7c3c3a1d86 Initial async-profiler Nodetool implementation
patch by Yaman Ziadeh, Bernardo Botella, Stefan Miklosovic; reviewed by Dmitry Konstantinov, Jyothsna Konisa for CASSANDRA-20854
2026-01-12 15:02:13 -08:00
Stefan Miklosovic 98ec8970e1
Move training parameters for Zstd dictionary compression to CQL
It is also possible to override them via nodetool if necessary.

This patch also fixes the computation of sampling ratio to not lose the precision.

patch by Stefan Miklosovic; reviewed by Jyothsna Konisha, Yifan Cai for CASSANDRA-21078
2026-01-07 16:21:47 +01:00
Sunil Ramchandra Pawar a84abe7ba1 Extend nodetool verify to (optionally) validate SAI files
patch by Sunil Ramchandra Pawar; reviewed by Caleb Rackliffe and David Capwell for CASSANDRA-20949
2025-12-12 13:22:06 -06:00
Benedict Elliott Smith 4defbb9b1c Make TopologyException a checked exception to ensure they are handled carefully, as they may occur at surprising times
Also Fix:
 - Restore MaxDecidedRX on replay
 - When catchup_on_start_exit_on_failure == false, should startup on any kind of failure, not only timeout
 - lazy vtable LIMIT clause regression
 - DurabilityService.onEpochRetired
 - Command.validate when uniqueHlc differs
 - Avoid unsafe publication of AccordExecutor to scheduledFastTasks
 - AccordCache hitRate metric names
 - use long for return type of DurationSpec.toNanoseconds
 - Repair without all replicas should not request all Accord replicas participate
 - ExecuteAtSerializer
 - SyncPoints should be coordinated in an epoch that contains the ranges
Also Improve:
 - Split Accord startup into local+distributed, ensure we
 - Add logging to FetchDurableBefore on startup
 - Add randomised testing of AbstractLazyVirtualTable
 - Add validation of lazy virtual table key ordering
 - Don't send requests to faulty replicas
 - shrinkOrEvict large objects without holding lock
 - Accord dtest shutdown

patch by Benedict; reviewed by Alex Petrov for CASSANDRA-21042
2025-11-27 13:12:25 +00:00
Stefan Miklosovic dc89b8c802
Extend nodetool tablestats for dictionary memory usage
patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANDRA-20940
2025-11-19 19:12:26 +01:00
Stefan Miklosovic 136e5fd222
Add export, list, import sub-commands for nodetool compressiondictionary
patch by Stefan Miklosovic; reviewed by Yifan Cai for CASSANDRA-20941
2025-11-13 15:38:42 +01:00
Yifan Cai 307603a4ad Support ZSTD dictionary compression
patch by Yifan Cai; reviewed by Jon Haddad, Stefan Miklosovic for CASSANDRA-17021
2025-10-30 16:18:37 -07:00
Stefan Miklosovic 9c93d52ac9
Implement nodetool history
patch by Stefan Miklosovic; reviewed by Maxim Muzafarov for CASSANDRA-20851
2025-09-01 16:18:19 +02:00
Maxim Muzafarov 94b251f3ce
Migrate all nodetool commands from airline to picocli
Replace io.airlift:airline dependency with info.picocli:picocli across
all nodetool command implementations. This migration includes:

- Convert 160+ nodetool command classes from airline to picocli
- Add AbstractCommand base class for commands and utility methods
- Add NodetoolCommand top-level class for the cli utility
- Update all command classes to use @Command, @Option, and @Parameters
- Add plain text files to test command help output
- Add mock test classes for improved test coverage and parse validation
- Modify test infrastructure to work with picocli-based commands
- Add new layouts for cli formatting to preserve backwards compatibility

The migration maintains backward compatibility while providing improved
command-line parsing, better help system, and more robust argument
validation through picocli enhanced features.

patch by Maxim Muzafarov; reviewed by Caleb Rackliffe, Dmitry Konstantinov, Stefan Miklosovic for CASSANDRA-17445
2025-07-26 18:19:18 +02: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
Stefan Miklosovic 98a0b54c40
Support dictionary lookup for CassandraPasswordValidator
patch by Stefan Miklosovic; reviewed by Dinesh Joshi, Francisco Guerrero for CASSANDRA-19762
2024-07-15 11:09:57 +02: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 5a02e532d4
Merge branch 'cassandra-4.1' into cassandra-5.0 2023-10-10 10:16:22 +02:00
Stefan Miklosovic ea6461b870
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-10 10:04:42 +02:00
Stefan Miklosovic b57c13603a
Remove byteman-related files from production sources
This patch also removes compress-lzf library (leftover from CASSANDRA-12229)
as well as it makes byte-buddy dependencies to be test scoped.

patch by Stefan Miklosovic; reviewed by Michael Semb Wever for CASSANDRA-18877
2023-10-10 09:51:11 +02:00
jkonisa f078c02cb5 Adding Mutual TLS authenticators for client & internode connections
Patch by Jyothsna Konisa & Dinesh Joshi; reviewed by Yifan Cai, Jon Meredith,
Yuki Morishita & Dinesh Joshi for CASSANDRA-18554

Co-Authored-By: Dinesh Joshi <djoshi@apache.org>
2023-07-28 13:54:06 -07:00
David Capwell 4b3f07fc74 allow blocking IPs from updating metrics about traffic
patch by David Capwell; reviewed by Benjamin Lerer, Caleb Rackliffe, Jon Meredith for CASSANDRA-16859
2021-08-20 17:24:16 -07:00
Mick Semb Wever 7337fc0ab4
Merge branch 'cassandra-3.11' into trunk 2021-04-19 17:39:10 +02:00
Mick Semb Wever 2ec96ae669
Merge branch 'cassandra-3.0' into cassandra-3.11 2021-04-19 17:34:05 +02:00
Mick Semb Wever 53b0661cbb
Fix rat checking for files with missing license headers
patch by Mick Semb Wever; reviewed by Brandon Williams, Ekaterina Dimitrova for CASSANDRA-16558
2021-04-19 17:18:26 +02:00
David Capwell 2ae1ec5dd2 Merge branch 'cassandra-3.11' into trunk 2020-10-12 11:07:44 -07:00
David Capwell 34dde962fc Merge branch 'cassandra-3.0' into cassandra-3.11 2020-10-12 11:06:32 -07:00
David Capwell 521a6e2aa9 Fixed a NullPointerException when calling nodetool enablethrift
patch by David Capwell; reviewed by Ekaterina Dimitrova, Jordan West, Yifan Cai for CASSANDRA-16127
2020-10-12 11:04:37 -07:00
Mick Semb Wever 92cde9b27c
Merge branch 'cassandra-3.11' into trunk 2018-03-15 17:45:10 +11:00
Mick Semb Wever 4c6a10af8b
SASI tokenizer for simple delimiter based entries
Patch by Mick Semb Wever; reviewed by Michael Kjellman for CASSANDRA-14247
2018-03-15 17:41:50 +11:00
T Jake Luciani d45cd7e658 Merge branch 'cassandra-3.11' into trunk 2017-04-25 09:30:25 -04:00
Jay Zhuang 2369faab79 Fix compaction-stress by using daemonInitialization
Patch by Jay Zhuang; reviewed by tjake for CASSANDRA-13188
2017-04-25 09:25:44 -04:00
Sylvain Lebresne 4881d9c308 Thrift removal
patch by Sylvain Lebresne; reviewed by Aleksey Yeschenko for CASSANDRA-11115
2016-12-13 10:27:12 +01:00
Sergio Bossa d43b9ce509 Support optional backpressure strategies at the coordinator
patch by Sergio Bossa; reviewed by Stefania Alborghetti for CASSANDRA-9318
2016-09-20 09:07:36 +08:00
Pavel Yaskevich eb82861c8d Correct english word stemming test and add a test for french
patch by doanduyhai; reviewed by xedin for CASSANDRA-12078
2016-06-26 01:50:32 -07:00
Sam Tunnicliffe 7b0c7164aa Integrated JMX Authentication and Authorization
Patch by Jan Karlsson and Sam Tunnicliffe; reviewed by Jake Luciani for
CASSANDRA-10091
2016-05-02 11:44:48 +01:00
Pavel Yaskevich 72790dc8e3 Integrate SASI index into Cassandra
patch by xedin; reviewed by beobal for CASSANDRA-10661
2016-01-23 19:35:29 -08:00
Mikhail Stepura 8137fce529 Handle CQL row marker in SSTableImport
patch by Mikhail Stepura; reviewed by Tyler Hobbs for CASSANDRA-7477
2014-08-15 13:11:47 -07:00
Jonathan Ellis 647bfc6d79 make sstable2json output more readable, and remove support for supercolumn json (CASSANDRA-7078)
patch by jbellis; reviewed by ayeschenko for CASSANDRA-7078
2014-04-23 22:00:21 -05:00
Brandon Williams 379212d5de Fix logback config in scripts and packaging.
Patch by Michael Shuler, reviewed by brandonwilliams for CASSANDRA-6530
2014-01-10 09:31:12 -06:00
Yuki Morishita d569f873de new json format with row level deletion; patch by David Alves, reviewed by yukim for CASSANDRA-4054 2012-07-12 10:40:24 -05:00
Jonathan Ellis 3120b65d34 merge from 0.8
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1153727 13f79535-47bb-0310-9956-ffa450edef68
2011-08-04 02:04:41 +00:00
Jonathan Ellis 04bb3e4b10 upgrade to whirr 0.4
patch by Pavel Yaskevich for CASSANDRA-2265

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1087736 13f79535-47bb-0310-9956-ffa450edef68
2011-04-01 15:05:03 +00:00
T Jake Luciani ab5a8c77e4 Use UUID as node identifiers in counters instead of IP addresses
Patch by Sylvain Lebresne; Reviewed by T Jake Luciani for CASSANDRA-1938



git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1080345 13f79535-47bb-0310-9956-ffa450edef68
2011-03-10 20:54:50 +00:00
Jonathan Ellis 2690f286bc add missing resources
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1075536 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 21:22:48 +00:00
Jonathan Ellis 7364c09843 add countercolumn support to SSTableExport
patch by slebresne; reviewed by Pavel Yaskevich for CASSANDRA-2093

git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@1075502 13f79535-47bb-0310-9956-ffa450edef68
2011-02-28 19:40:19 +00:00
Brandon Williams 33a6640583 Streaming support for json2sstable.
Patch by Pavel Yaskevich, reviewed by brandonwilliams for CASSANDRA-1898

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1058788 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 23:09:10 +00:00
Brandon Williams 9694494e7f Distributed test harness. Patch by Kelvin Kakugawa, Stu Hood, and Ryan
King, reviewed by brandonwilliams for CASSANDRA-1859.

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1055618 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 20:16:14 +00:00
Jonathan Ellis a44a150e9c add ExpiringColumn support to sstable import/export
patch by Sylvain Lebresne; reviewed by jbellis for CASSANDRA-1754

git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1040241 13f79535-47bb-0310-9956-ffa450edef68
2010-11-29 19:36:08 +00:00
Gary Dusbabek 64f443aa96 use hex keys in sstable import/export. Patch by Stu Hood, reviewed by Gary Dusbabek. CASSANDRA-767
git-svn-id: https://svn.apache.org/repos/asf/cassandra/trunk@934157 13f79535-47bb-0310-9956-ffa450edef68
2010-04-14 19:53:43 +00:00
Eric Evans 93d9a81dcf (de)serialize columns to/from hex regardless of comparator
Patch by eevans; reviewed by Ramzi Rabah for CASSANDRA-618

git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@890480 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 21:14:32 +00:00