Commit Graph

578 Commits

Author SHA1 Message Date
Andrés de la Peña 3233c82311 Add guardrail for SELECT IN terms and their cartesian product
patch by Andrés de la Peña; reviewed by Ekaterina Dimitrova for CASSANDRA-17187

Co-authored-by: Aleksandr Sorokoumov <aleksandr.sorokoumov@gmail.com>
Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
2022-03-08 11:08:29 +00:00
Ekaterina Dimitrova c51a7c66fc Bulk change of units around the code to support the move to the new configuration framework
patch by Ekaterina Dimitrova; reviewed by Caleb Rackliffe, David Capwell, Michael Semb Wever and Benjamin Lerer for CASSANDRA-15234
2022-02-05 22:28:57 -05:00
Stefan Miklosovic da47849b50 Remove Windows-specific classes and related code
patch by Stefan Miklosovic; reviewed by Joshua McKenzie, Bowen Song, Berenguer Blasi for CASSANDRA-16956
2022-02-05 15:41:33 +01:00
Andrés de la Peña 95522f85d5 Add guardrail for list operations that require read before write
patch by Andrés de la Peña; reviewed by Ekaterina Dimitrova for CASSANDRA-17154
2021-12-17 16:50:20 +00:00
Benedict Elliott Smith 6a1d9de3d9 [CASSANDRA-16926] CEP-10 Phase 1: Mockable Filesystem
patch by Benedict; reviewed by Aleksey Yeschenko, Sam Tunnicliffe and Aleksei Zotov for CASSANDRA-16926

Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
Co-authored-by: Aleksey Yeschenko  <aleksey@apache.org>
2021-10-07 14:28:00 +01:00
Benedict Elliott Smith be1f050bc8 [CASSANDRA-16925] CEP-10 Phase 1: Mockable Task Execution
Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2021-10-07 14:27:52 +01:00
Benedict Elliott Smith e5b92e1088 [CASSANDRA-16924] CEP-10 Phase 1: Mockable Blocking Concurrency Primitives
patch by Benedict; reviewed by Sam Tunnicliffe and Aleksei Zotov for CASSANDRA-16924

Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2021-10-07 14:27:44 +01:00
Benedict Elliott Smith 15a2fe00fc [CASSANDRA-16923] CEP-10 Phase 1: Mockable System Clock
Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
Co-authored-by: Aleksey Yeschenko  <aleksey@apache.org>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2021-09-29 19:38:34 +01:00
Brandon Williams 82e0453901 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-07-16 07:58:00 -05:00
Sam Tunnicliffe 9cda055faa Merge branch 'cassandra-3.11' into trunk 2021-04-27 09:31:45 +01:00
Sam Tunnicliffe 87a46c36f0 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-04-27 09:20:25 +01: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 50a97a0d76
Merge branch 'cassandra-2.2' into cassandra-3.0 2021-04-19 17:29:00 +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
Mick Semb Wever 1a92e4a649
Merge branch 'cassandra-3.11' into trunk 2021-03-27 00:38:31 +01:00
Mick Semb Wever 9e513390b7
Merge branch 'cassandra-3.0' into cassandra-3.11 2021-03-27 00:36:11 +01:00
Mick Semb Wever 35114d5fcc
Merge branch 'cassandra-2.2' into cassandra-3.0 2021-03-27 00:32:09 +01:00
Mick Semb Wever cd4aa9f77c
ninja-fix missing copyright headers 2021-03-27 00:29:58 +01:00
Adam Holmberg 932b0a483e make cassandra-stress -node work with host:port
Patch by Adam Holmberg; reviewed by brandonwilliams for CASSANDRA-16529
2021-03-19 15:24:56 -05:00
Mick Semb Wever b41873d671
Fix centos packaging for arm64, >=3.0 rpm's now require python3
patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16477
2021-03-09 22:30:06 +01:00
Bereng 2d9d17894d Fix cassandra-stress JMX connection
Patch by Berenguer Blasi; reviewed by brandonwilliams for CASSANDRA-16473
2021-03-03 09:34:41 -06:00
Sam Tunnicliffe c9d6c725dd Promote protocol v5 from beta
Patch by Sam Tunnicliffe; reviewed by Alex Petrov and Eduard Tudenhoefner
for CASSANDRA-14973
2021-02-23 16:46:39 +00:00
Sam Tunnicliffe 07167c95e3 Ninja: fix fqltool tests (CASSANDRA-16384 follow up) 2021-01-22 11:41:42 +00:00
zhaorenhai 7f1659cd1d
Upgrade netty and chronicle-queue dependencies to get Auditing and native library loading working on arm64 architectures
CASSANDRA-16384 test case AuditLoggerTest fail on aarch64 platform
 CASSANDRA-16392 Unable to load the library netty_tcnative_linux_aarch_64

 patch by Zhao Renhai (赵 仁海); reviewed by Mick Semb Wever for CASSANDRA-16384,CASSANDRA-16392
2021-01-22 10:02:20 +01:00
Jon Meredith 7637acc3d7 SSLFactory should initialize SSLContext before setting protocols
patch by Jon Meredith; reviewed by David Capwell, Dinesh Joshi for CASSANDRA-16362
2021-01-07 14:42:10 -08:00
Mick Semb Wever 2346ed8241
Offline token allocation strategy generator tool
Provides the tools/bin/generate-tokens script that can be used to pregenerate allocation strategy tokens.
Refactors TokenAllocation for extensibility (and better re-use between strategies), and adds OfflineTokenAllocator.
TokenMetadata now has a configurable snitch (instead of hardcoded to DatabaseDescriptor.getEndpointSnitch()) for testability.
Adds logging of growth and stddev changes to allocate_tokens_for_local_replication_factor usages.

 patch by Mick Semb Wever; reviewed by Paul Motta, Ekaterina Dimitrova for CASSANDRA-16205
2020-12-03 19:20:59 +01:00
Jon Meredith 919a8964a8 Bring back the accepted encryption protocols list as configurable option
patch by Jon Meredith; reviewed by Berenguer Blasi, David Capwell, Dinesh Joshi for CASSANDRA-13325
2020-12-02 16:44:54 -08:00
Yuki Morishita d9e2ed00af Remove windows scripts and their references
patch by Yuki Morishita; reviewed by Berenguer Blasi and Andrés de la Peña for CASSANDRA-16171
2020-12-02 16:43:45 +00:00
Sam Tunnicliffe a7c4ba9eee Improve checksumming and compression in protocol V5
This reverts the changes made to the native protocol V5 wire format in
CASSANDRA-13304 and subsequent follow up JIRAs (CASSANDRA-15556 &
CASSANDRA-14716). The framing format has been re-implemented based on the
internode messaging format developed in CASSANDRA-15066.

OPTIONS and STARTUP messages are unframed (i.e. identical to the V4 format).
After sending its response to a STARTUP message, the server modifies the
pipeline and all further messages are sent (and should be expected by the
client to be received) in the format determined by the protocol version of
the STARTUP message.

Patch by Sam Tunnicliffe; reviewed by Alex Petrov and Caleb Rackliffe
for CASSANDRA-15299
2020-12-01 18:49:06 +00:00
David Capwell 001767de2d Merge branch 'cassandra-3.11' into trunk 2020-11-05 14:47:17 -08:00
David Capwell 7c407c4380 Merge branch 'cassandra-3.0' into cassandra-3.11 2020-10-19 12:31:15 -07:00
Yifan Cai 83e1e9e451 in-jvm dtest now exposes stdout and stderr for nodetool
patch by Yifan Cai; reviewed by Alex Petrov, David Capwell for CASSANDRA-16057
2020-10-06 13:46:05 -07:00
David Capwell 91bcbb2873 Add a new jmxtool which can dump what JMX objects exist and diff
patch by David Capwell, Stephen Mallette; reviewed by Berenguer Blasi, Jon Meredith for CASSANDRA-16082
2020-09-15 17:01:01 -07:00
Blake Eggleston ccab496d2d Add byte array backed cells
Patch by Blake Eggleston; reviewed by Caleb Rackliffe and Marcus Eriksson for CASSANDRA-15393
2020-09-14 08:32:44 -07:00
Stefan Miklosovic 00c22232d9 FQL replay should have options to ignore DDL statements
Patch by Stefan Miklosovic; reviewed by David Capwell and Marcus Eriksson
for CASSANDRA-16039
2020-08-19 09:40:45 +02:00
Ekaterina Dimitrova cba0c27ce9 Remove COMPACT STORAGE internals
Patch by Ekaterina Dimitrova, reviewed by Sylvain Lebresne for
CASSANDRA-13994
2020-08-17 11:51:23 +02:00
Alex Ott 6d9465a00d Improve cassandra-stress logging when using a profile file that doesn't
exist.

Patch by Alex Ott, reviewed by brandonwilliams for CASSANDRA-14425
2020-08-05 11:52:36 -05:00
Joseph Lynch 674b6cc1a5 Update defaults for server and client TLS settings
This fixes backwards compatibility with the 3.11 server_encryption_options
while exposing the correct defaults after the 4.0 Netty refactor.

Patch by Joseph Lynch; Reviewed by Ekaterina Dimitrova for CASSANDRA-15262
2020-06-20 18:59:41 -07:00
Robert Stupp ec07cd7e76 Fix tools/bin/fqltool for all shells
patch by Robert Stupp; reviewed by Mick Semb Wever and Eduard Tudenhöfner for CASSANDRA-15820
2020-05-19 16:36:09 +02:00
Marcus Eriksson 5242f7d430 Fix issues in audit / full query log interactions
Patch by marcuse; reviewed by Aleksey Yeschenko and Per Otterström for CASSANDRA-14772
2020-04-16 14:19:54 +02:00
Robert Stupp f14507190b Remove Java Driver dependency for UDFs and UDAs / Limit the dependencies used by UDFs/UDAs
patch by Robert Stupp; reviewed by Jason Brown, Jonathan Ellis, Ryan Svihla for CASSANDRA-14737
2020-02-12 09:58:43 +01:00
yifan-c 1fbd3297a9 Release session from cache when closing QueryReplayer
Patch by Yifan Cai; reviewed by marcuse for CASSANDRA-15514
2020-01-20 15:00:25 +01:00
nvharikrishna e27810efcc [CASSANDRA-12993] Added license text. 2020-01-10 16:05:38 +00:00
Zephyr Guo 3a8300e0b8 Avoid deadlock during CommitLog initialization
patch by Zephyr Guo, Dinesh Joshi; reviewed by Jordan West and Dinesh Joshi for CASSANDRA-15295

Co-Authored-By: Zephyr Guo <gzh1992n@gmail.com>
Co-Authored-By: Dinesh Joshi <dinesh.joshi@apple.com>
2019-12-12 10:13:44 -08:00
Per Otterström d5e5c459f5 Align record header of FQL and audit binary log
Patch by Per Otterström; reviewed by Vinay Chella and marcuse for CASSANDRA-15076
2019-11-28 09:43:07 +01:00
Sumanth Pasupuleti 38b49904dd
Upgrading Guava to 27, and to java-driver 3.6.0 (from 3.4.0-SNAPSHOT), plus refactoring to remove nativePort argument for NativeSSTableLoaderClient constructor
Patch by Sumanth Pasupuleti; reviewed by Michael Semb Wever for CASSANDRA-14655
2019-10-07 21:19:42 +02:00
Benedict Elliott Smith 310a48efcf Rewrite the internode messaging subsystem
patch by Aleksey Yeschenko and Benedict Elliott Smith; reviewed by Alex
Petrov, Aleksey Yeschenko, and Benedict Elliott Smith for CASSANDRA-15066

Co-authored-by: Aleksey Yeschenko <aleksey@apache.org>
Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
2019-06-12 16:26:54 +01:00
Mick Semb Wever 7d6c3cd2bd
Merge branch 'cassandra-3.11' into trunk 2019-04-10 21:40:21 +10:00
Mick Semb Wever 8c38b20343
Merge branch 'cassandra-3.0' into cassandra-3.11 2019-04-10 21:14:31 +10:00
Zhao Yang 4a70a9a982
support frozen collections: list, set in cassandra-stress
patch by ZhaoYang ; reviewed by Mick Semb Wever for CASSANDRA-14907
2019-04-10 21:12:53 +10:00
Joseph Lynch 595da9c12e Make tools/bin/token-generator py2/3 compatible
Patch by Joseph Lynch; reviewed by Stefan Podkowinski for CASSANDRA-15012
2019-03-05 13:34:49 -08:00
Marcus Eriksson 73ff199df3 FQLTool replay improvements
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-14850
2019-02-25 15:17:47 +01:00
Vinay Chella 7d138e20ea Add a new tool to dump audit logs
Patch by Vinay Chella; reviewed by marcuse for CASSANDRA-14885
2019-01-23 14:36:56 +01:00
Jay Zhuang 4dd7faa752 Merge branch 'cassandra-3.11' into trunk 2018-12-06 16:48:25 -08:00
Jay Zhuang 6a449b88d9 Merge branch 'cassandra-3.0' into cassandra-3.11 2018-12-06 16:42:41 -08:00
Jay Zhuang bbf7dac87c Fix cassandra-stress hang with default options
patch by Jay Zhuang; reviewed by Stefania Alborghetti for CASSANDRA-14616
2018-12-06 16:34:55 -08:00
Marcus Eriksson bd0cef9a36 Avoid using DatabaseDescriptor in ProtocolVersion
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-14800
2018-10-04 08:23:49 +02:00
Marcus Eriksson a0636881f4 ninja-add missing .hashCode() in new fqltool classes 2018-09-28 08:39:12 +02:00
Sam Tunnicliffe 65fb17a88b Add checksumming to the native protocol
Patch my Michael Kjellman and Sam Tunnicliffe; reviewed by Dinesh Joshi
and Jordan West for CASSANDRA-13304
2018-09-01 22:41:37 +01:00
Marcus Eriksson f83bd5ac2b Add fqltool compare
Patch by marcuse; reviewed by Jason Brown and Dinesh Joshi for CASSANDRA-14619
2018-09-01 09:59:21 +02:00
Aleksey Yeshchenko aed682513c Use consistent nowInSeconds and timestamps values within a request
patch by Aleksey Yeschenko; reviewed by Chris Lohfink for
CASSANDRA-14671
2018-08-31 18:29:33 +01:00
Robert Stupp 6ba2fb9395 Make C* compile and run on Java 11 and Java 8
patch by Robert Stupp; reviewed by Jason Brown for CASSANDRA-9608
2018-07-26 18:20:00 +02:00
Aleksey Yeschenko 207c80c1fd Make all DDL statements idempotent and not dependent on global state
patch by Aleksey Yeschenko; reviewed by Sam Tunnicliffe for
CASSANDRA-13426
2018-07-17 16:39:41 +01:00
Jaydeepkumar Chovatia 2aeed037e0 Support light-weight transactions in cassandra-stress
patch by Jaydeepkumar Chovatia; reviewed by Dinesh Joshi and jasobrown for CASSANDRA-13529
2018-06-13 05:46:20 -07:00
Alex Ott 71a27ee2b9 This commit fixes NPE when the 'insert' section is missing from user-defined profile
Fixes #221

Patch by Alex Ott; Reviewed by Jeff Jirsa for CASSANDRA-14426
2018-04-28 14:02:43 -07:00
Stefan Podkowinski bb9aa09881 Use JRE default key store algorithm instead of SunX509
patch by Stefan Podkowinski; reviewed by Jason Brown for CASSANRA-13259
2018-02-14 11:29:59 +01:00
Ariel Weisberg 59b5b6bef0 Allow storage port to be configurable per node
Patch by Ariel Weisberg; Reviewed by Jason Brown for CASSANDRA-7544
2018-01-25 14:32:24 -05:00
Jay Zhuang 1db54a1266 Fix cassandra-stress startup failure
patch by Jay Zhuang; reviewed by Blake Eggleston for CASSANDRA-14106
2017-12-19 16:23:07 -08:00
Blake Eggleston d8f0361228 Fix Distribution.average in cassandra-stress
Patch by Blake Eggleston; Reviewed by Jon Haddad for CASSANDRA-14090
2017-12-05 15:58:59 -08:00
Alex Petrov 07fbd8ee60 Disallow COMPACT STORAGE syntax, avoid starting when compact tables are present
Patch by Alex Petrov; reviewed by Sylvain Lebresne for CASSANDRA-10857
2017-11-06 16:44:50 +01:00
Alex Petrov 6d429cd031 Merge branch 'cassandra-3.0' into cassandra-3.11 2017-11-06 15:52:31 +01:00
Jason Brown 260846685b Node to Node encryption transitional mode
patch by jasobrown; reviewed by Stefan Podkowinski for CASSANDRA-10404
2017-11-03 05:06:38 -07:00
Malcolm Taylor 1c3a2d247a Fix some alerts raised by static analysis (lgtm.com)
Patch by Malcolm Taylor; Reviewed by Jeff Jirsa for CASSANDRA-13799
2017-10-20 16:44:22 -07:00
Alex Petrov 922dbdb658 Add result set metadata to prepared statement MD5 hash calculation
Patch by Alex Petrov; reviewed by Robert Stupp for CASSANDRA-10786
2017-10-11 16:15:29 +02:00
Jay Zhuang d97d95ff13 Add CL.SERIAL CL.LOCAL_SERIAL for cassandra-stress
patch by Jay Zhuang; reviewed by marcuse for CASSANDRA-13925
2017-10-03 08:11:49 +02:00
Jay Zhuang 335d8371a4 Add stress profile yaml with LWT
Patch by Jay Zhuang; reviewed by Jon Haddad for CASSANDRA-7960
2017-08-31 06:42:41 -07:00
Jason Brown a5f70ad4b8 really commit CASSANDRA-13722 to trunk 2017-08-24 14:47:31 -07:00
Noam Hasson 6b7d73a496 Add support for skip read validation flag for cassandra-stress
patch by Noam Hasson; reviewed by jasobrown for CASSANDRA-13772
2017-08-24 10:50:20 -07:00
Stefania Alborghetti 3d4a7e7b61 Merge branch 'cassandra-3.11' into trunk 2017-08-22 09:36:23 +08:00
Stefania Alborghetti 59d4c27194 Merge branch 'cassandra-3.0' into cassandra-3.11 2017-08-22 09:33:07 +08:00
Eduard Tudenhoefner 6a1b1f26b7 Don't let stress write warmup data if n=0
patch by Eduard Tudenhoefner; reviewed by Stefania Alborghetti for CASSANDRA-13773
2017-08-22 09:28:00 +08:00
Stefania Alborghetti 6e42dd215c Merge branch 'cassandra-3.11' into trunk 2017-08-21 16:35:50 +08:00
Eduard Tudenhoefner 1619413e56 Fix cassandra-stress hang issues when an error during cluster connection happens
patch by Eduard Tudenhoefner; reviewed by Stefania Alborghetti for CASSANDRA-12938
2017-08-21 11:36:25 +08:00
Stefan Podkowinski f415b736d6 Upgrade airline dependency to 0.7
patch by Tomas Repik; reviewed by Stefan Podkowinski for CASSANDRA-12994
2017-07-01 12:24:22 +02:00
Andrés de la Peña 679c31718b Improve secondary index (re)build failure and concurrency handling
patch by Andres de la Peña; reviewed by Paulo Motta and Sergio Bossa for CASSANDRA-10130
2017-06-23 09:30:21 +01:00
T Jake Luciani f1f5f19462 Fix randomness of stress values
Patch by Ben Slater; Reviewed by tjake for CASSANDRA-12744
2017-06-06 09:42:27 -04:00
Ben Slater 07c11ca45b Add support for multiple table operations to cassandra-stress
Patch by Ben Slater; reviewed by tjake for CASSANDRA-8780
2017-05-08 13:36:18 -04: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
Dave Brosius 74bdf633e9 remove use of FileInputStream/FileOutputStream for gc concerns
patcb by dbrosius reviewed by rstupp for CASSANDRA-13452
2017-04-17 07:33:48 -04:00
Stefan Podkowinski 3048608c60 Merge branch 'cassandra-3.11' into trunk 2017-03-23 20:57:10 +01:00
Stefan Podkowinski a10b8079ef Merge branch 'cassandra-3.0' into cassandra-3.11 2017-03-23 20:52:05 +01:00
Stefan Podkowinski 631162271c Merge branch 'cassandra-2.2' into cassandra-3.0 2017-03-23 20:50:13 +01:00
Stefan Podkowinski 5978f9d5f7 Honor truststore-password parameter in stress
patch by Jane Deng; reviewed by Robert Stupp for CASSANDRA-12773
2017-03-23 20:48:03 +01:00
Ian Macalinao 5b8b1ce26c Fix typo in stress JavaDriverClient.java
Closes #97

Patch by Ian Macalinao; Reviewed by Jeff Jirsa for CASSANDRA-13355
2017-03-20 14:50:01 -07:00
Gabriel Garcia 091e5fbe41 Fix typo: Pptions -> Options
Closes #99

Patch by Gabriel Garcia; Reviewed by Jeff Jirsa for CASSANDRA-13349
2017-03-18 12:55:06 -07:00
Christopher Batey 5a8983c148 Initial docs for stress
patch by Christopher Batey; reviewed by Stefan Podkowinski for CASSANDRA-12365
2017-03-15 19:58:49 +01:00
Dave Brosius 387ba4f309 close streams 2017-03-02 21:22:11 -05:00
Jeff Jirsa 61b3d3490a Merge branch 'cassandra-3.11' into trunk 2017-02-10 21:23:41 -08:00
Christopher Batey 3ae5a4d679 Obfuscate password in stress-graphs
Patch by Christopher Batey; Reviewed by Jeff Jirsa for CASSANDRA-12233
2017-02-10 21:22:47 -08:00