Commit Graph

632 Commits

Author SHA1 Message Date
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 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
Marcus Eriksson 1d24c7cf49 Merge branch 'cassandra-3.11' into trunk 2021-04-13 10:52:21 +02:00
Brian Houser 7152d40bb3 Add autocomplete, errors for provide_overlapping_tombstones
Patch by Brian Houser; reviewed by marcuse for CASSANDRA-16350
2021-04-13 10:49:31 +02:00
Jeff Widman fd9250fb40 Remove unittest2 import
Patch by Jeff Widman; reviewed by brandonwilliams for CASSANDRA-16506
2021-03-14 11:18:21 -05:00
Jeff Widman 3d539d908f Update python2 doc references to point to py3
Patch by Jeff Widman; reviewed by brandonwilliams for CASSANDRA-16505
2021-03-09 17:15:07 -06:00
Adam Holmberg 72ca73fbc6 deprecate python2.7 for cqlsh
Patch by Adam Holmberg; reviewed by brandonwilliams for CASSANDRA-16414
2021-02-26 14:52:38 -06:00
jacek-lewandowski 91cb934e25
In cqlshlib tests, don't overwrite the environment and improve hostname matching
patch by Jacek Lewandowski; reviewed by Mick Semb Wever for CASSANDRA-16409
2021-01-28 12:56:39 +01:00
Brandon Williams ff49fd9253 Merge branch 'cassandra-3.11' into trunk 2021-01-12 13:29:39 -06:00
Brandon Williams 22a0927391 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-01-12 13:26:05 -06:00
Aleksandr Sorokoumov a542b86504 Allow empty string in collections with COPY FROM in cqlsh
Patch by Aleksandr Soromoukov, reviewed by brandonwilliams for
CASSANDRA-16372
2021-01-12 13:22:18 -06:00
Aleksandr Sorokoumov c1008cc1ea CASSANDRA-16372 COPY FROM does not report failed rows as imported 2021-01-12 13:21:03 -06:00
Adam Holmberg cb71f23958 cqlsh row_id resets on page boundaries
patch by Adam Holmberg; reviewed by Brandon Williams, David Capwell for CASSANDRA-16160
2020-12-17 09:17:43 -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
Bereng eebad66fe2 Fix TestCqlshOutput.test_describe_cluster_output
patch by Berenguer Blasi; reviewed by Benjamin Lerer for CASSANDRA-16098
2020-09-08 17:40:13 +02:00
Adam Holmberg 0e53379ec9 stop passing unpicklable Cluster object to spawned child processes in
cqlsh

Patch by Adam Holmberg, reviewed by Ekaterina Dimitrova and
brandonwilliams for CASSANDRA-16053
2020-08-20 15:02:51 -05:00
Rens Groothuijsen 1b1b87cfe3
Strip comment blocks from cqlsh input before processing statements
patch by Rens Groothuijsen; reviewed by Mick Semb Wever for CASSANDRA-15802
2020-08-20 13:57:01 +02:00
Adam Holmberg f93c563163 Make cqlsh tests with with Python 3.7 re changes
Patch by Adam Holmberg, reviewed by brandonwilliams for CASSANDRA-16028
2020-08-05 13:44:34 -05:00
Caleb Rackliffe 47ac595036 Backport CASSANDRA-12189, formatting fixes
Patch by Caleb Rackliffe, reviewed by brandonwilliams for
CASSANDRA-15948
2020-07-15 14:20:53 -05:00
Caleb Rackliffe 5774415368 Backport CASSANDRA-12189, formatting fixes
Patch by Caleb Rackliffe, reviewed by brandonwilliams for
CASSANDRA-15948
2020-07-15 14:15:53 -05:00
Brandon Williams eebb9e02cd Merge branch 'cassandra-3.11' into trunk 2020-06-30 17:57:22 -05:00
yifan-c 9251b8116f Fix cqlsh output when fetching all rows in batch mode
Patch by Yifan Cai, reviewed by brandonwilliams for CASSANDRA-15905
2020-06-30 17:54:39 -05:00
Robert Stupp 4e47bfb3a1 Add support for server side DESCRIBE statements
patch by Robert Stupp; reviewed by Dinesh Joshi and Benjamin Lerer for CASSANDRA-14825
2020-06-29 18:01:02 +02:00
Joseph Lynch 9c1bbf3ac9 Flush with fast compressors by default
Previously Zstd, Deflate and LZ4HC could hold up the flush thread while
flushing due to their slow compression rates. With this patch we always
default to flush with a fast compressor (default to LZ4) and then
compress into the high compression strategy during normal compactions
that follow. Note that if the existing table compressor is fast (e.g.
LZ4 or Snappy) we use that.

Patch by Joey Lynch; reviewed by Dinesh Joshi for CASSANDRA-15379
2020-04-23 23:23:18 -07:00
Mick Semb Wever 1de8720b32
Fix python codestyle warning (and failing test_pycodestyle_compliance)
patch by Eduard Tudenhöfner; reviewed by Mick Semb Wever for CASSANDRA-15734
Co-authored-by: Eduard Tudenhöfner <eduard.tudenhoefner@datastax.com>
2020-04-17 10:54:35 +02:00
Eduard Tudenhoefner 24c8a21c1c
Add Python3.8 compatible SaferScanner
This is necessary because Python 3.8 renamed `sre_parse.Pattern` to `sre_parse.State` (see https://bugs.python.org/issue34681 and https://github.com/python/cpython/pull/9310/files for details)

 patch by Eduard Tudenhöfner, reviewed by Mick Semb Wever for CASSANDRA-15573
2020-04-14 21:10:08 +02:00
Eduard Tudenhoefner 58015fd681 Use Exception.message in copyutil.py only if it exists
Exception.message was removed in Python 3, so only refer to it when it
exists on an Exception instance.

Also fix code style compliance in formatting.py (missing blank lines)

patch by Eduard Tudenhoefner; reviewed by Stefania Alborghetti for CASSANDRA-15702
2020-04-09 11:44:30 -04:00
Eduard Tudenhoefner 39a0703b65 Mark system_views/system_virtual_schema as non-alterable keyspaces in cqlsh
patch by Eduard Tudenhoefner; reviewed by Benjamin Lerer for
CASSANDRA-15711
2020-04-09 16:53:22 +02:00
Stefania Alborghetti 2f781819b1 Merge branch 'cassandra-3.11' into trunk 2020-04-09 09:05:14 -04:00
Stefania Alborghetti 57b0bb93ab Merge branch 'cassandra-3.0' into cassandra-3.11 2020-04-09 09:01:42 -04:00
Stefania Alborghetti fe263ad9e9 Merge branch 'cassandra-2.2' into cassandra-3.0 2020-04-09 08:58:55 -04:00
Stefania Alborghetti c8081c2467 Merge branch 'cassandra-2.1' into cassandra-2.2 2020-04-09 08:56:38 -04:00
Eduard Tudenhoefner 3db7796c1b Fix cqlsh output test
patch by Eduard Tudenhoefner; reviewed by Michael Semb Wever for
CASSANDRA-15707
2020-04-09 14:54:32 +02:00
Eduard Tudenhoefner b3f27381a5 Mark system_views/system_virtual_schema as system keyspaces in cqlsh
patch by Eduard Tudenhoefner; reviewed by Benjamin Lerer for
CASSANDRA-15706

This is so that those keyspaces don't show up in tab completions. This
also fixes the cqlsh completion tests.
2020-04-09 11:09:01 +02:00
Aleksandr Sorokoumov f3568c0d50 Fix parse error in cqlsh COPY FROM and formatting for map of blobs
patch by Aleksandr Sorokoumov; reviewed by Stefania Alborghetti for CASSANDRA-15679
2020-04-07 12:32:15 -04:00
Patrick Bannister bf9a1d487b Make cqlsh and cqlshlib Python 2 & 3 compatible
Patch by Patrick Bannister; reviewed by Dinesh Joshi, Andy Tolbert and David Capwell for CASSANDRA-10190
2020-02-14 10:33:57 -08:00
Pedro Gordo 7c5904753f
Remove obsolete OldNetworkTopologyStrategy
Removed the strategy from cqlsh autocomplete, including an array for replication_factor autocomplete that was only used for SimpleStrategy and OldNetworkTopologyStrategy.

 patch by Pedro Gordo; reviewed by Anthony Grasso, Mick Semb Wever for CASSANDRA-13990
2019-11-29 10:50:10 +01:00
Sam Tunnicliffe 0388d89e29 Allow max protocol version to be capped
Patch by Sam Tunnicliffe; reviewed by Alex Petrov and Aleksey
Yeschenko for CASSANDRA-15193
2019-10-08 18:09:52 +01:00
Ariel Weisberg c291e8d815 Merge branch '14951-3.11' into 14951-trunk 2019-01-15 18:08:31 -05:00
Ariel Weisberg 25b72d08c0 Merge branch '14951-3.0' into 14951-3.11 2019-01-15 18:08:18 -05:00
Dinesh A. Joshi a9d1af96b5 Add a script to make running the cqlsh tests in cassandra repo easier
Patch by Dinesh Joshi; Reviewed by Ariel Weisberg for CASSANDRA-14951
2019-01-15 18:03:47 -05:00
Ariel Weisberg 4ae229f5cd Upgrade to 4.0 fails with NullPointerException
Patch by Ariel Weisberg; Reviewed by Dinesh Joshi for CASSANDRA-14820
2018-10-16 18:47:40 -04:00
Ariel Weisberg f7431b4328 Transient Replication and Cheap Quorums
Patch by Blake Eggleston, Benedict Elliott Smith, Marcus Eriksson, Alex Petrov, Ariel Weisberg; Reviewed by Blake Eggleston, Marcus Eriksson, Benedict Elliott Smith, Alex Petrov, Ariel Weisberg for CASSANDRA-14404

Co-authored-by: Blake Eggleston <bdeggleston@gmail.com>
Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
2018-08-31 21:34:22 -04:00
Blake Eggleston f25a765b6d Make monotonic read / read repair configurable
Patch by Blake Eggleston; Reviewed by Aleksey Yeschenko for CASSANDRA-14635
2018-08-24 09:34:52 -07:00
Blake Eggleston 54de771e64 Add network authz
Patch by Blake Eggleston; Reviewed by Sam Tunnicliffe for CASSANDRA-13985
2018-04-23 09:55:31 -07:00
Aleksey Yeshchenko 2fcd29b830 Eliminate background repair and probablistic read_repair_chance table options
patch by Aleksey Yeschenko; reviewed by Blake Eggleston for
CASSANDRA-13910
2018-04-18 11:41:17 +01:00
Alex Petrov 1b82de8c9f Fix cqlshtests
patch by Alex Petrov; reviewed by Robert Stupp for CASSANDRA-14007
2018-02-22 18:30:50 +01:00
Jason Brown 6d324f9d76 Merge branch 'cassandra-3.11' into trunk 2018-01-15 06:06:51 -08:00