Commit Graph

12904 Commits

Author SHA1 Message Date
Bereng 30ad754d7e Pre hashed passwords in CQL
patch by Robert Stupp and Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17334

Co-authored-by: Robert Stupp <snazy@snazy.de>
Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
2022-03-23 07:20:14 +01:00
Josh McKenzie fbd6b04791 Log largest memtable on flush at info rather than debug
Patch by Josh McKenzie; reviewed by Brandon Williams for CASSANDRA-17472
2022-03-22 15:18:44 -04:00
Brandon Williams 305cb940c3 Merge branch 'cassandra-4.0' into trunk 2022-03-22 07:42:08 -05:00
Brandon Williams 592cee3064 Suppress CVE-2021-44521
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17459
2022-03-22 07:35:07 -05:00
Brandon Williams 94c2ad5304 Merge branch 'cassandra-4.0' into trunk 2022-03-22 07:32:13 -05:00
Brandon Williams b465fec770 Upgrade jackson to 2.13.2
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17460
2022-03-22 07:28:17 -05:00
Caleb Rackliffe 4ea3e4c505 Add native transport rate limiter options to example cassandra.yaml, and expose metric for dispatch rate
patch by Caleb Rackliffe; reviewed by Josh McKenzie for CASSANDRA-17423
2022-03-21 11:39:28 -05:00
Andrés de la Peña 143a5e8b06 Add diagnostic events for guardrails
patch by Andrés de la Peña; reviewed by Berenguer Blasi and Stefan Miklosovic for CASSANDRA-17197

Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
Co-authored-by: Aleksandr Sorokoumov <aleksandr.sorokoumov@gmail.com>
2022-03-21 15:52:25 +00:00
Bereng 2f84f492a2 Revert "Pre hashed passwords in CQL"
This reverts commit 6946b304e9.
2022-03-21 13:19:31 +01:00
Bereng 6946b304e9 Pre hashed passwords in CQL
patch by Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17334
2022-03-21 11:18:05 +01:00
Stefan Miklosovic 8714f92685 Merge branch 'cassandra-4.0' into trunk 2022-03-20 16:06:35 +01:00
Stefan Miklosovic d48df9169d make sstableloader honour native port option
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-17210
2022-03-20 15:24:33 +01:00
Jon Meredith e417fea126 Merge branch 'cassandra-4.0' into trunk 2022-03-19 08:05:52 -06:00
Jon Meredith f8be6ea60c Merge branch 'cassandra-3.11' into cassandra-4.0 2022-03-19 08:03:34 -06:00
Jon Meredith 311e26bf05 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-03-19 08:02:15 -06:00
Jon Meredith 647ec92db1 ConnectionLimitHandler may leaks connection count if remote connection drops
patch by Jon Meredith; reviewed by Caleb Rackliffe for CASSANDRA-17252
2022-03-19 08:00:58 -06:00
Benjamin Lerer 34a7eba4b8 Merge branch cassandra-4.0 into trunk 2022-03-18 15:08:15 +01:00
cclive1601 e773bbd9c6 Reject snapshot names with special character
Patch by Maxwell Guo, Saranya Krishnakumar and Francisco Guerrero; review
by Benjamin Lerer, Chris Lohfink, Stefan Miklosovic for CASSANDRA-15297

This commit also adds unit tests for the snapshot nodetool command.

Co-authored-by: Saranya Krishnakumar <saranya_k@apple.com>
Co-authored-by: Francisco Guerrero <francisco.guerrero@apple.com>
2022-03-18 15:00:24 +01:00
Brad Schoening 96cecdbaa6 Increase cqlsh version to 6.1.0
Patch by Brad Schoening; reviewed by bereng and brandonwilliams for
CASSANDRA-17432
2022-03-18 06:48:52 -05:00
Caleb Rackliffe 302c6fcf59 Update SUPPORTED_UPGRADE_PATHS to include 3.0 and 3.x to 4.1 paths and remove obsolete tests
patch by Caleb Rackliffe; reviewed by Mick Semb Wever for CASSANDRA-17362
2022-03-17 17:55:32 -05:00
Doug Rohrer f1c1694e43 Support DELETE in CQLSSTableWriter
patch by Doug Rohrer, Eric Evans; reviewed by Sam Tunnicliffe, Yifan Cai for CASSANDRA-14797
2022-03-17 13:25:00 -07:00
Jon Meredith 431c692b88 Failed inbound internode authentication failures generate ugly warning with stack trace
patch by Jon Meredith; reviewed by David Capwell for CASSANDRA-17068
2022-03-16 15:41:27 -06:00
Maciej Sokol f7009cf340 emit warning on keyspace creation when replication factor is bigger than the number of nodes
patch by Maciej Sokol; reviewed by Brandon Williams and Stefan Miklosovic for CASSANDRA-16747
2022-03-16 21:42:50 +01:00
Francisco Guerrero 61be4d8362 expose gossip information in system_views.gossip_info virtual table
patch by Francisco Guerrero; reviewed by Stefan Miklosovic and Yifan Cai for CASSANDRA-17002

This commit adds a new virtual table that exposes the gossip information in tabular format.

The information is the same as the information presented through the `nodetool gossipinfo`
command, but the virtual table splits the version and value from `VersionedValue` into two
different columns. This is intented to help clients reading the vtable without the need of
parsing the version:value information (as it currently stands in gossipinfo).

The token value does not have a column. This is consistent with the gossipinfo output which
always renders ":<hidden>" for the Token value. Only the token_version column is available.
2022-03-16 01:41:10 +01:00
Andrés de la Peña 935bcf1e87 Add guardrails for collection items and size
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-17153
2022-03-15 13:31:41 +00:00
Paulo Motta 951645a1fc Merge branch 'cassandra-4.0' into trunk 2022-03-14 17:25:04 -03:00
Paulo Motta 5f50c797bc Merge branch 'cassandra-3.11' into cassandra-4.0 2022-03-14 17:18:21 -03:00
Paulo Motta 95a6223057 Fix snapshot true size calculation
Patch by Paulo Motta; Reviewed by Brandon Williams and Benjamin Lerer for CASSANDRA-17267
2022-03-14 17:17:37 -03:00
Brandon Williams 3b1ce69fc1 Merge branch 'cassandra-4.0' into trunk 2022-03-14 14:09:31 -05:00
Brandon Williams d9bd03552d Merge branch 'cassandra-3.11' into cassandra-4.0 2022-03-14 14:04:40 -05:00
Brandon Williams 541d769042 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-03-14 14:04:26 -05:00
Brandon Williams 34f59904f5 Require at least ant >= 1.10
Patch by brandonwilliams; reviewed by smiklosovic and paulo for
CASSANDRA-17428
2022-03-14 14:02:29 -05:00
Andrés de la Peña 0ecd48001f Improve guardrails messages
Guardrail messages include a specific mention of the guardrail framework and the name of the violated guardrail,
so users know what is producing the wanrning or failure. Also, guardrails throw their own type of exception.

patch by Andrés de la Peña; reviewed by Josh McKenzie for CASSANDRA-17430
2022-03-14 17:05:18 +00:00
Caleb Rackliffe 7b91e4cc18 Remove all usages of junit.framework and ban them via Checkstyle
patch by Caleb Rackliffe; reviewed by Marcus Eriksson for CASSANDRA-17316

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
2022-03-11 12:32:04 -06:00
Andrés de la Peña a41040ccdc Add guardrails for read/write consistency levels
patch by Andrés de la Peña; reviewed by Caleb Rackliffe for CASSANDRA-17188

Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
Co-authored-by: Aleksandr Sorokoumov <aleksandr.sorokoumov@gmail.com>
2022-03-11 15:36:39 +00:00
Andrés de la Peña eb960b1917 Merge branch 'cassandra-4.0' into trunk 2022-03-10 13:28:47 +00:00
Andrés de la Peña bdeafa0b79 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-03-10 13:18:55 +00:00
Andrés de la Peña fcdb3d154e Merge branch 'cassandra-3.0' into cassandra-3.11 2022-03-10 13:08:38 +00:00
Maciej Sokol c52b5ab95c Disallow CONTAINS for UPDATE and DELETE
patch by Maciej Sokol; reviewed by Andres de la Peña and Benjamin Lerer for CASSANDRA-15266
2022-03-10 13:05:42 +00:00
Brandon Williams ca218cc012 Merge branch 'cassandra-4.0' into trunk 2022-03-08 17:23:30 -06:00
Brandon Williams 04c1289bb9 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-03-08 17:20:50 -06:00
Jan Karlsson b18a9f0337 Validate existence of DCs when repairing
Patch by Jan Karlsson; reviewed by bereng and brandonwilliams for
CASSANDRA-17407
2022-03-08 17:19:31 -06:00
Stefan Miklosovic 67b14e47c3 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-03-08 21:45:56 +01:00
Stefan Miklosovic 4a15c5ad5a filter out NULL_VERSION entries from peers table in ConfiguredLimit
patch by Stefan Miklosovic; reviewed by Brandon Williams and Sam Tunnicliffe for CASSANDRA-16518
2022-03-08 18:10:51 +01:00
Stefan Miklosovic 8def4fd7fb dropping of a materialized view creates a snapshot with dropped- prefix
patch by Stefan Miklosovic; reviewed by Paulo Motta for CASSANDRA-17415
2022-03-08 14:46:10 +01:00
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
Tibor Répási 537d02d25f Expose all client options via system_views.clients and nodetool clientstats
patch by Tibor Repasi reviewed by Benjamin Lerer, Berenguer Blasi, Ekaterina Dimitrova for CASSANDRA-16378
2022-03-08 11:12:37 +01:00
Brad Schoening 27ab63f005 remove unused imports in cqlsh.py and cqlshlib
patch by Brad Schoening; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-17413
2022-03-08 09:34:23 +01:00
Stefan Miklosovic ae50cbd1ad deprecate property windows_timer_interval
patch by Stefan Miklosovic; reviewed by Ekaterina Dimitrova and Berenguer Blasi for CASSANDRA-17404
2022-03-08 08:27:18 +01:00
Andrés de la Peña 0d8126dd14 Merge branch 'cassandra-4.0' into trunk 2022-03-07 16:30:02 +00:00