Commit Graph

7085 Commits

Author SHA1 Message Date
Stefan Miklosovic 5bcee5c06a
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-04-26 13:41:02 +02:00
Stefan Miklosovic 81e78192cb
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-04-26 13:36:40 +02:00
Stefan Miklosovic 4f348786bd
Do not remove truncated_at entry in system.local while dropping an index
patch by Stefan Miklosovic; reviewed by Caleb Rackliffe for CASSANDRA-18105
2023-04-26 11:00:06 +02:00
Andrés de la Peña 3f67827387 Merge branch 'cassandra-3.11' into cassandra-4.0 2023-04-17 14:48:27 +01:00
Maciej Sokol 2fce3025c4
Fix nested selection of reversed collections
patch by Maciej Sokol; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-17913
2023-04-14 11:33:46 +02:00
Maxim Muzafarov b3256f5bf2
Fix the number of running trees per thread for LongBTreeTest hanging test
patch by Maxim Muzafarov; reviewed by Mick Semb Wever for CASSANDRA-18131
2023-04-03 15:07:34 +02:00
Jacek Lewandowski 4b9c18235a Merge branch 'cassandra-3.11' into cassandra-4.0
* cassandra-3.11:
  Save host id to system.local and flush immediately after startup
2023-03-31 17:30:20 +02:00
Jacek Lewandowski ee586b53c2 Merge branch 'cassandra-3.0' into cassandra-3.11
* cassandra-3.0:
  Save host id to system.local and flush immediately after startup
  Remove asf.yaml from non-trunk branches
  Notify the corresponding JIRA issue as soon as the PR is raised
2023-03-31 17:30:19 +02:00
Jacek Lewandowski f96659c530 Save host id to system.local and flush immediately after startup
patch by Adriano Bonacin and Jacek Lewandowski; reviewed by Stefan Miklosovic and Sam Tunnicliffe for CASSANDRA-18153
2023-03-31 17:30:18 +02:00
Jaroslaw Grabowski 3cfb222122 Fix BufferPool.memoryInUse counter
The counter was incorrectly decremented by the size of the unused portion of the provided buffer.
It is now decremented by the number of bytes actually returned to the pool (that may be different than "size"). The number is calculated as a difference between original and resulting buffer capacity.

patch by Jaroslaw Grabowski <jtgrabowski>, reviewed by Jacek Lewandowski <jacek-lewandowski> for CASSANDRA-18311
2023-03-13 09:51:33 +01:00
Brandon Williams a874e02eec Merge branch 'cassandra-3.11' into cassandra-4.0 2023-03-09 10:03:14 -06:00
Brandon Williams 326b5aceb1 Merge branch 'cassandra-3.0' into cassandra-3.11 2023-03-09 10:02:21 -06:00
Brandon Williams be574fc34b Fix default file system error handler for disk_failure_policy die
Patch by Runtian Liu; reviewed by brandonwilliams and smiklosovic for
CASSANDRA-18294
2023-03-09 10:00:49 -06:00
Benedict Elliott Smith 40f9ca60f1 Improve memtable allocator accounting when updating AtomicBTreePartition
patch by Benedict Elliott Smith; reviewed by Benjamin Lerer, Jon Meredith for CASSANDRA-18125
2023-03-07 10:28:32 -07:00
Jacek Lewandowski 9bf128aaa3 Improve unit tests performance
- Don't flush schema on every schema update in unit tests
- Use unix command to delete test data
- Shorten teardown
- Stable processor count presented by JMX on Jenkins, CircleCI and local

Patch by <jacek-lewandowski>, reviewed by <michaelsembwever> and <josh-mckenzie> for CASSANDRA-17427
2023-02-01 09:40:50 +01:00
Stefan Miklosovic 2a8e1972fd
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-01-28 16:54:39 +01:00
Stefan Miklosovic 8076f37c06
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-01-28 16:33:36 +01:00
Stefan Miklosovic 4c8e9097bd
Introduce check for names of test classes
patch by Stefan Miklosovic; reviewed by Berenguer Blasi and David Capwell for CASSANDRA-17943
2023-01-28 16:18:51 +01:00
lzurovchak1 8bb9c72f58 Add safeguard so cleanup fails when node has pending ranges
Patch by Lindsey Zurovchak; Reviewed by Paulo Motta, Stefan Miklosovic for CASSANDRA-16418

Closes #2061
2023-01-23 17:26:47 -05:00
Andrés de la Peña 9a0af4112e Fix legacy clustering serialization for paging with compact storage
patch by Andrés de la Peña; reviewed by Berenguer Blasi and Piotr Kołaczkowski for CASSANDRA-17507
2023-01-23 11:40:45 +00:00
Stefan Miklosovic 815f7de346 Merge branch 'cassandra-3.11' into cassandra-4.0 2023-01-18 15:02:40 +01:00
Stefan Miklosovic fc3ad6525f Merge branch 'cassandra-3.0' into cassandra-3.11 2023-01-18 14:58:38 +01:00
German Eichberger 8ecd7616fe Default role is created with zero timestamp
patch by German Eichberger; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-12525

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2023-01-18 14:56:22 +01:00
Stefan Miklosovic 6e6846892a Fix sstable loading of keyspaces named snapshots or backups
Patch by Stefan Miklosovic; Reviewed by Paulo Motta for CASSANDRA-14013

Co-authored-by: Paulo Motta <paulo@apache.org>
2023-01-16 21:45:17 -05:00
Bereng a83de9bcd2 Merge branch 'cassandra-3.11' into cassandra-4.0 2023-01-12 08:18:13 +01:00
Bereng b8a87abba4 Do not leak 2015 synthetic memtable Epoch
patch by Berenguer Blasi; reviewed by Caleb Rackliffe for CASSANDRA-18118
2023-01-12 08:15:19 +01:00
Marcus Eriksson 95e26ad1ab Merge branch 'cassandra-3.11' into cassandra-4.0 2022-12-23 14:43:01 +01:00
Marcus Eriksson 0767c83416 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-12-23 14:41:50 +01:00
Marcus Eriksson 730b898b74 Don't group TWCS sstables for anticompaction
Patch by marcuse; reviewed by Aleksey Yeschenko for CASSANDRA-17970
2022-12-23 13:38:53 +01:00
Mick Semb Wever f01d2b4a3c
Restore custom param types over messaging system
patch by Mick Semb Wever; reviewed by Aleksey Yeschenko for CASSANDRA-17981
2022-12-17 15:48:26 -08:00
Yifan Cai f22263cd8a Merge branch 'cassandra-3.11' into cassandra-4.0 2022-12-05 18:52:22 -08:00
Yifan Cai eb91e2c354 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-12-05 18:50:28 -08:00
Yifan Cai 473656c1d5 Fix incorrect resource name in LIST PERMISSION output
patch by Yifan Cai; reviewed by Berenguer Blasi, Sam Tunnicliffe for CASSANDRA-17848
2022-12-05 18:48:36 -08:00
Stefan Miklosovic 2638051af1 Harden parsing of boolean values in CQL in PropertyDefinitions
patch by Stefan Miklosovic; reviewed by Aleksey Yeschenko for CASSANDRA-17878
2022-11-11 13:38:44 +01:00
Natnael Adere 35826b7447 Fix error message about type hints (CASSANDRA-17915)
Patch by Natnael Adere; reviewed by blerer and brandonwilliams for
CASSANDRA-17915
2022-11-10 13:35:56 -06:00
Brandon Williams 70478a1578 Fix testCommitLogInitWithException: signal condition instead of killing thread
Patch by brandonwilliams; reviewed by adelapena and bereng for
CASSANDRa-17928
2022-11-09 11:52:19 -06:00
Jacek Lewandowski 67c530171c Merge branch 'cassandra-3.11' into cassandra-4.0 2022-11-09 17:20:08 +01:00
Jacek Lewandowski 9213335f59 Fix Splitter sometimes creating more splits than requested
Spliter.splitOwnedRanges for some inputs creates an extra split. For example, when we request 7 ranges from 0..31 range, it will return 8 ranges. There is an assertion in that method which verifies whether it returns the requested number of splits. Since those numbers differs, when Cassandra is be started with assertions enabled, it would fail.

patch by Jacek Lewandowski; reviewed by Marcus Eriksson for CASSANDRA-18013
2022-11-09 17:17:01 +01:00
Stefan Miklosovic 488c0c75a8 Remove empty cq4 log files to prevent BinLog from failing to start
This patch also backports CASSANDRA-17595.

patch by Stefan Miklosovic; reviewed by Caleb Rackliffe for CASSANDRA-17933
2022-10-11 23:13:13 +02:00
Piotr Kołaczkowski e13356d75d Fix multiple BufferPool bugs
patch by Piotr Kołaczkowski; reviewed by Aleksey Yeschenko for
CASSANDRA-16681
2022-10-11 15:42:30 +01:00
Andy Tolbert 3bdd2caa22 Fix StorageService.getNativeaddress handling of IPv6 addresses
StorageService.getNativeaddress does not currently correctly handle
IPv6 addresses correctly when NATIVE_ADDRESS_AND_PORT are not present in
that it simply concatenates the IP address with the default native port,
e.g.:

0:0:0:0:0:0:5a:3:9042

This does not parse into an InetSocketAddress as the address and port
can't be disambiguated.

Such a case would usually be present when there are 3.x nodes present in a
cluster with 4.0 nodes.

Change updates RPC_ADDRESS and else case to create InetAddressAndPort instances
with DatabaseDescriptor.getNativeTransportPort and returns the
getHostAddress(withPort) which properly bracket encodes the address,
e.g.:

[0:0:0:0:0:0:5a:3]:9042

which can be parsed as an InetSocketAddress.

patch by Andy Tolbert; reviewed by Ariel Weisberg, Brandon Williams for CASSANDRA-17945
2022-10-06 14:10:58 -04:00
Aleksey Yeschenko 4e1d31e729 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-10-06 15:27:49 +01:00
Piotr Kołaczkowski dc2acba043 Make LongBufferPoolTest insensitive to timing
This commit changes the way how LongBufferPoolTest verifies
that all buffers were freed and recycled. Now, the delay between
rounds can be arbitrarily short and timing does not affect the
validity of checks.

patch by Piotr Kołaczkowski; reviewed by Aleksey Yeschenko for
CASSANDRA-16681
2022-10-05 15:46:10 +01:00
Josh McKenzie 29c0ad80c9 Fix repair failure on assertion if two peers have overlapping mismatching ranges
Patch by Marcus Eriksson; reviewed by Benedict Elliott Smith and Josh McKenzie for CASSANDRA-17900

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Josh McKenzie <jmckenzie@apache.org>
2022-09-20 12:55:24 -04:00
Jacek Lewandowski 76be530a36 Fix schema reset functionality
Patch by Jacek Lewandowski, reviewed by Andrés de la Peña and Ekaterina Dimitrova for CASSANDRA-17819
2022-09-16 09:50:03 +02:00
Josh McKenzie f65f123780 Prevent flakiness in MixedModeMessageForwardTest
Patch by Jon Meredith; reviewed by Josh McKenzie for CASSANDRA-17866
2022-09-12 13:03:54 -04:00
Caleb Rackliffe c56952efb5 HintedHandoffAddRemoveNodesTest now accounts for the fact that StorageMetrics.totalHints is not updated synchronously w/ writes
patch by Caleb Rackliffe; reviewed by Ekaterina Dimitrova for CASSANDRA-16679
2022-09-07 15:16:13 -05:00
Marcus Eriksson 5beab63b55 Improve the way we handle repair message timeouts to avoid hanging repairs
Patch by marcuse; reviewed by David Capwell for CASSANDRA-17613
2022-08-29 13:27:16 +02:00
Jacek Lewandowski 2b492f17b9 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-08-26 17:19:59 +02:00
Jacek Lewandowski 04c3e816e8 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-08-26 17:17:07 +02:00
Jacek Lewandowski a78db628b0 Fix scrubber falling into infinite loop
Fixes scrubber falling into infinite loop when the last partition is broken in data file and compression is enabled.

Patch by Jacek Lewandowski, reviewed by Brandon Williams, for CASSANDRA-17862
2022-08-26 17:06:10 +02:00
Josh McKenzie 73bea0ac1e Merge branch 'cassandra-3.11' into cassandra-4.0
-s ours; applying 4.0+ patch for CASSANDRA-17840
2022-08-24 15:23:52 -04:00
Josh McKenzie ab481be81d Fix potential IndexOutOfBoundsException in PagingState in mixed mode clusters
Patch by Alex Petrov; reviewed by Josh McKenzie, Sam Tunnicliffe, and Aleksey Yeschenko for CASSANDRA-17840

Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
Co-authored-by: Josh McKenzie <jmckenzie@apache.org>
2022-08-24 15:04:21 -04:00
Josh McKenzie 0353df7542 Prevent infinite loop in repair coordinator on FailSession
Patch by Marcus Eriksson; reviewed by David Capwell, Blake Eggleston, and Josh McKenzie for CASSANDRA-17834

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Josh McKenzie <jmckenzie@apache.org>
2022-08-19 12:33:24 -04:00
Bereng 9f97adf63c Test Failure: org.apache.cassandra.net.OutboundMessageQueueTest.testRemove-cdc
Patch by Berenguer Blasi; reviewed by Brandon Williams for CASSANDRA-17422

Co-authored-by: shylaja kokoori <shylaja.kokoori@intel.com>
Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
2022-08-18 09:31:13 +02:00
Bereng 6591048051 Flaky DescribeStatementTest
patch by Berenguer Blasi; reviewed by Brandon Williams for CASSANDRA-17809
2022-08-16 09:37:52 +02:00
Andrés de la Peña 174e0dc399 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-08-12 10:28:42 +01:00
Andrés de la Peña 4e410fc46d Document usage of closed token intervals in manual compaction
patch by Andrés de la Peña; reviewed by Ekaterina Dimitrova for CASSANDRA-17575
2022-08-12 10:21:19 +01:00
Ekaterina Dimitrova 04901913d6 Fix Setting Virtual Table to update after startup config properties gc_log_threshold_in_ms, gc_warn_threshold_in_ms, conf.index_summary_capacity_in_mb, prepared_statements_cache_size_mb, key_cache_size_in_mb, counter_cache_size_in_mb
patch by Ekaterina Dimitrova; reviewed by Andres de la Pena for CASSANDRA-17737
2022-07-28 16:17:55 -04:00
Stefan Miklosovic 6388fd3a16 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-07-27 14:34:35 +02:00
Stefan Miklosovic afaeb93020 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-07-27 14:21:56 +02:00
Stefan Miklosovic a7b53217bd fix restarting of services on gossipping-only member
patch by Stefan Miklosovic; reviewed by Brandon Williams (CASSANDRA-17752)
2022-07-27 14:13:25 +02:00
Stefan Miklosovic a1ac1efbb7 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-07-23 22:27:20 +02:00
Stefan Miklosovic e83d95d1ac creating of a keyspace on insufficient number of replicas should filter out gosspping-only members
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-17759
2022-07-23 22:22:06 +02:00
Ekaterina Dimitrova 860ec627a1 Fix issues with index_summary_resize_interval and index_summary_capacity
patch by Ekaterina Dimitrova; reviewed by Andres de la Pena for CASSANDRA-17735
2022-07-22 09:25:54 -04:00
Caleb Rackliffe d51f90201b Clean up ScheduledExecutors, CommitLog, and MessagingService shutdown for in-JVM dtests
patch by Caleb Rackliffe; reviewed by David Capwell for CASSANDRA-17731
2022-07-14 11:12:11 -05:00
Marten Kenbeek dd51df6734 Only use statically defined subcolumns when determining column definition for supercolumn cell
Patch by Marten Kenbeek; review by Benjamin Lerer and Brandon Williams for CASSANDRA-14113
2022-07-11 16:46:12 +02:00
Benedict Elliott Smith c378874a9f Utilise BTree improvements to reduce garbage and improve throughput
Patch by Benedict Elliott Smith; review by Branimir Lambov and Benjamin Lerer for CASSANDRA-15511
2022-07-07 13:52:52 +02:00
Jon Meredith 008bf8607c Disable mock internode messaging during startup/shutdown
patch by Jon Meredith; reviewed by David Capwell for CASSANDRA-17636
2022-06-30 13:34:00 -06: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
Andrés de la Peña 09692d5a58 Fix writetime and ttl functions forbidden for collections instead of multicell columns
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-17628
2022-06-27 15:09:35 +01:00
Ekaterina Dimitrova c8481836e6 Fix flaky ProxyHandlerConnectionsTest
patch by Ekaterina Dimitrova; reviewed by Berenguer Blasi for CASSANDRA-17301
2022-06-20 20:57:30 -04:00
Stefan Miklosovic 7da28ef378 SSL storage port in sstableloader is deprecated
this is the follow-up commit which deprecates ssl storage port for backward compatibility

patch by Stefan Miklosovic; reviewed by Jon Meredith for CASSANDRA-17602
2022-06-16 19:26:02 +02:00
Sam Tunnicliffe 28690e0ebc Ensure test messages are actually corrupted when expected
Patch by Sam Tunnicliffe; reviewed by Brandon Williams for CASSANDRA-17630
2022-06-15 11:55:22 +01:00
Stefan Miklosovic 2531dd1eba remove ssl storage port from sstableloader
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-17602
2022-06-13 10:36:56 +02:00
Jon Meredith 943184b194 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-06-06 11:07:07 -06:00
Jon Meredith c9a7269874 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-06-06 11:05:48 -06:00
Jon Meredith ba0555e965 Fix flaky test - org.apache.cassandra.distributed.test.MessageForwardingTest.mutationsForwardedToAllReplicasTest
patch by Jon Meredith; reviewed by David Capwell for CASSANDRA-17583
2022-06-06 11:04:37 -06:00
Andrés de la Peña 52f6ac4af9 Fix flaky CompactionsCQLTest by reseting the commitlog
patch by Andrés de la Peña; reviewed by Brandon Williams for CASSANDRA-17609
2022-06-06 12:18:57 +01:00
Caleb Rackliffe a00d8fd5ba Ensure FileStreamTask cannot compromise shared channel proxy for system table when interrupted
patch by Caleb Rackliffe; reviewed by Jon Meredith and David Capwell for CASSANDRA-17663
2022-06-02 11:59:19 -05:00
Andrés de la Peña fbad08979e Merge branch 'cassandra-3.11' into cassandra-4.0 2022-05-31 17:11:36 +01:00
Andrés de la Peña 8a9ba8866d Split compact storage upgrade tests to prevent OOM
patch by Andrés de la Peña; reviewed by Ekaterina Dimitrova for CASSANDRA-17213
2022-05-31 17:10:40 +01:00
Andrés de la Peña 5cf6db30f6 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-05-20 11:47:06 +01:00
Andrés de la Peña 0e1d068d92 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-05-20 11:43:56 +01:00
Doug Rohrer ffc4c89c3d Fix issue where frozen maps may not be serialized in the correct order
patch by Doug Rohrer, Francisco Guerrero and Yifan Cai; reviewed by Andrés de la Peña and Caleb Rackliffe for CASSANDRA-17623

Co-authored-by: Doug Rohrer <drohrer@apple.com>
Co-authored-by: Francisco Guerrero <frank.guerrero@gmail.com>
Co-authored-by: Yifan Cai <ycai@apache.org>
2022-05-20 11:38:19 +01:00
Bereng af24242af9 Flaky org.apache.cassandra.tools TopPartitionsTest testServiceTopPartitionsSingleTable
patch by Berenguer Blasi; reviewed by Brandon Williams for CASSANDRA-17455
2022-05-19 09:57:31 +02:00
Bereng 27b5a017ea Flaky org.apache.cassandra.cql3.KeywordTest
patch by Berenguer Blasi; reviewed by Brandon Williams for CASSANDRA-17615
2022-05-18 08:25:25 +02:00
Jon Meredith 2405d523fa Merge branch 'cassandra-3.11' into cassandra-4.0 2022-04-27 12:03:28 -06:00
Benedict Elliott Smith 018c8e0d5e Optimise BTree build, update and transform operations
Patch Benedict Elliott Smith; reviewed by Branimir Lambov and Benjamin Lerer for CASSANDRA-15510
2022-04-22 19:27:19 +02:00
Andrés de la Peña 2873c91269 Split ReadRepairQueryTypesTest to avoid JUnit timeouts
patch by Andrés de la Peña; reviewed by Caleb Rackliffe for CASSANDRA-17543
2022-04-22 17:20:00 +01:00
Ekaterina Dimitrova a46e467737 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-04-17 14:29:18 -04:00
Ekaterina Dimitrova eeb89ea53b Merge branch 'cassandra-3.0' into cassandra-3.11 2022-04-17 14:22:57 -04:00
Ekaterina Dimitrova fb66800a00 Fix data corruption in AbstractCompositeType due to static boolean byte buffers
patch by Stefania Alborghetti and Marcus Eriksson; reviewed by Marcus Eriksson, Benjamin Lerer and Ekaterina Dimitrova for CASSANDRA-14752

Co-authored-by: Stefania Alborghetti <stefania.alborghetti@datastax.com>
Co-authored-by: Marcuse Eriksson <marcuse@apache.orgp>
2022-04-17 14:02:49 -04:00
Jon Meredith ce6a65cb29 Clean up schema migration coordinator and tests
patch by Jon Meredith; reviewed by David Capwell for CASSANDRA-17533
2022-04-08 14:39:33 -06:00
Brandon Williams f32d2b06de Upgrade slf4j to 1.7.25
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17474
2022-03-31 07:21:25 -05:00
Caleb Rackliffe 0089858819 Shut repair task executor down without interruption to avoid compromising shared channel proxies
patch by Caleb Rackliffe; reviewed by David Capwell, Marcus Eriksson, and Josh McKenzie for CASSANDRA-17466
2022-03-28 15:30:53 -05:00
Yash Ladha d0458abdb3 generate valid KEYSPACE / MATERIALIZED VIEW for CQL for views
patch by Yash Ladha; reviewed by Benjamin Lerer for CASSANDRA-17266

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2022-03-26 10:16:48 +01:00
Brandon Williams 3a7e5f8ed8 Revert "Upgrade slf4j to 1.7.25"
This reverts commit 234bdc87a5.
2022-03-25 15:00:43 -05:00
jacek-lewandowski 05fa92475c Remove accidentally committed wrong legacy sstables
patch by Jacek Lewandowski; reviewed by Andrés de la Peña and Benjamin Lerer for CASSANDRA-17482
2022-03-25 13:09:34 +00:00
Brandon Williams 234bdc87a5 Upgrade slf4j to 1.7.25
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17474
2022-03-25 06:14:42 -05:00
Brandon Williams 4f5feac0df Fix timestamp tz parsing
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17467
2022-03-23 09:21:38 -05: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
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
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
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
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
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
jacek-lewandowski a690f339ab Fix ObjectSizes implementation and usages
patch by Jacek Lewandowski; reviewed by Andrés de la Peña and Branimir Lambov for CASSANDRA-17402
2022-03-07 16:22:30 +00:00
Dmitry Potepalov 0e249fd15e Fix ignored streaming encryption settings in sstableloader
Patch by Dmitry Potepalov; reviewed by bereng and brandonwilliams for
CASSANDRA-17367

Encryption settings were silently lost in BulkLoadConnectionFactory.
Forced the bulk loader test to do some actual streaming besides just
handshaking on the native port, the test does not pass without the
change in BulkLoadConnectionFactory.
2022-03-02 07:45:13 -06:00
Aleksandr Sorokoumov a8b67e3dd9 Streaming tasks handle empty SSTables correctly
patch by Aleksandr Sorokoumov; reviewed by Marcus Eriksson and Zhao Yang for CASSANDRA-16349
2022-02-25 15:45:45 -05:00
Marcus Eriksson 702824a99d Merge branch 'cassandra-3.11' into cassandra-4.0 2022-02-17 10:36:54 +01:00
Marcus Eriksson e53ad64612 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-02-17 10:30:27 +01:00
Marcus Eriksson b58a5c86e8 LeveledCompactionStrategy disk space check improvements
Patch by marcuse; reviewed by Caleb Rackliffe for CASSANDRA-17272
2022-02-17 10:25:43 +01:00
Marcus Eriksson 2687cf1edf Merge branch 'cassandra-3.11' into cassandra-4.0 2022-02-16 11:08:20 +01:00
Marcus Eriksson eeec360e75 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-02-16 10:14:41 +01:00
Marcus Eriksson 85c202d8a8 Lazy transaction log replica creation allows incorrect replica content divergence during anticompaction
Patch by marcuse; reviewed by Caleb Rackliffe for CASSANDRA-17273
2022-02-16 10:12:14 +01:00
Paul Chandler c60ad61b3b Improve start up processing of Incremental Repair information read from system.repairs
Patch by Paul Chandler, reviewed by Brandon Williams and Marcus Eriksson for CASSANDRA-17342
2022-02-11 14:07:51 +01:00
Josh McKenzie f2816f5a7c Better isolate tests from each other in SSTableReaderTest
Patch by Josh McKenzie; reviewed by Aleksei Zotov and Jeremiah Jordan for CASSANDRA-17078
2022-02-07 12:47:17 -05:00
Alex Petrov 371add40ae Merge branch 'cassandra-3.11' into cassandra-4.0 2022-02-07 11:26:13 +01:00
Alex Petrov 5d0aeb1996 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-02-07 11:10:54 +01:00
Alex Petrov 242f7f9b18 Fix Prepared Statements behaviours after 15252
Patch by Alex Petrov; reviewed by Marcus Eriksson for CASSANDR-17248.

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
2022-02-07 11:06:14 +01:00
Jon Meredith 965fe0decf Merge branch 'cassandra-3.11' into cassandra-4.0 2022-02-03 14:27:16 -07:00
Jon Meredith beb456305a Merge branch 'cassandra-3.0' into cassandra-3.11 2022-02-03 14:24:05 -07:00
Jon Meredith 9ff28fc717 Fixes for intermittent in-JVM dtest failures
patch by Jon Meredith, Caleb Rackliffe, Marcus Eriksson, Benedict Elliott Smith <benedict@apache.org>; reviewed by Caleb Rackliffe for CASSANDRA-17256
2022-02-03 14:22:46 -07:00
Bereng 95257c0805 Sstableverify unit test operate on SSTables
patch by Brian Houser; reviewed by Andres de la Peña, Berenguer Blasi for CASSANDRA-17009

Co-authored-by: Brian Houser <brianh@amazon.com>
Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
2022-01-26 08:09:03 +01:00
Bereng 85248da628 PasswordObfuscator should not assume PASSWORD is the last item in the WITH clause
patch by Berenguer Blasi; reviewed by Benjamin Lerer, Ekaterina Dimitrova for CASSANDRA-16801
2022-01-25 07:08:48 +01:00
Brandon Williams 7e68448235 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-01-20 09:48:13 -06:00
Brandon Williams 28004d9c60 Upgrade logback to 1.2.9
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-17204

includes backported test changes from CASSANDRA-14183
2022-01-20 09:47:11 -06:00
Marcus Eriksson 9a1bb62822 Merge branch 'cassandra-3.11' into cassandra-4.0 2022-01-17 14:09:45 +01:00
Marcus Eriksson b5d0626824 Merge branch 'cassandra-3.0' into cassandra-3.11 2022-01-17 14:08:03 +01:00
Marcus Eriksson b1a8a56c56 Avoid race in AbstractReplicationStrategy endpoint caching
Patch by marcuse; reviewed by Alex Petrov and Jon Meredith for CASSANDRA-16673

Co-authored-by: Jon Meredith <jonmeredith@apache.org>
2022-01-17 14:06:25 +01:00
Marcus Eriksson 98e798f567 Don't block gossip when clearing repair snapshots
Patch by marcuse; reviewed by David Capwell for CASSANDRA-17168
2022-01-17 09:11:00 +01:00
Jon Meredith 57a7b8a70d Merge branch 'cassandra-3.11' into cassandra-4.0 2022-01-06 14:32:58 -07:00
Jon Meredith 78f50573ad Merge branch 'cassandra-3.0' into cassandra-3.11 2022-01-06 14:31:42 -07:00
Jon Meredith 071ecb5246 Race in CompactionExecutorTest
patch by Jon Meredith; reviewed by Josh McKenzie for CASSANDRA-17239
2022-01-06 14:30:22 -07:00
tejavadali c420d754d8 CASSANDRA-16308: Add droppable tombstone metrics to nodetool tablestats
patch by Krishna Vadali; reviewed by Paulo Motta and Brandon Williams for CASSANDRA-16308

Closes #1359
2022-01-03 11:56:14 -03:00
Joseph Lynch e73d05bf85 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-12-09 10:29:08 -05:00
Joseph Lynch 1fce84f983 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-12-09 10:26:00 -05:00
Venkata Harikrishna Nukala 1911a887e8 Fix slow keycache load which blocks startup for tables with many sstables.
Patch by Venkata Harikrishna Nukala; reviewed by Marcus Eriksson and Joseph Lynch for CASSANDRA-14898
2021-12-09 10:14:16 -05:00
Bereng 8cef32ae83 Flaky CompactionsBytemanTest
patch by Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17171
2021-12-09 07:40:56 +01:00
Bereng 15eaa95f09 Flaky RecomputingSupplierTest
patch by Berenguer Blasi; reviewed by Aleksandr Sorokoumov, Andres de la Peña for CASSANDRA-17169
2021-12-03 11:33:35 +01:00
Bereng 0764273608 ViewTests flaky on timeouts
patch by Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17167
2021-11-26 07:12:01 +01:00
Jacek Lewandowski 1bcfa087f4 DebuggableThreadPoolExecutor does not propagate client warnings
patch by Jacek Lewandowski; reviewed by Andres de la Peña, Berenguer Blasi, David Capwell for CASSANDRA-17072
2021-11-18 17:22:27 -08:00
Ekaterina Dimitrova 44ace88585 internode_send_buff_size_in_bytes and internode_recv_buff_size_in_bytes have new names. Backward compatibility with the old names added
patch by Ekaterina Dimitrova; reviewed by David Capwell for CASSANDRA-17141
2021-11-16 14:34:04 -05:00
Aleksey Yeschenko dd6242037b Queries performed with NODE_LOCAL consistency level do not update request metrics
patch by Aleksey Yeschenko; reviewed by Alex Petrov for CASSANDRA-17052
2021-11-12 11:26:18 +00:00
Alex Petrov ddf5c581b8 Use com.google.common.collect.Lists instead of com.google.monitoring.runtime.instrumentation.common.collect.Lists in RowUtil.
Patch by Alex Petrov; reviewed by Benjamin Lerer for CASSANDRA-17022/
2021-11-12 07:21:20 +01:00
Benedict Elliott Smith 07b908c78c Merge branch 'cassandra-3.11' into cassandra-4.0 2021-11-10 11:12:29 +00:00
Benedict Elliott Smith bfe4a90852 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-11-10 11:11:43 +00:00
Benedict Elliott Smith e4d96721bf Merge branch 'cassandra-2.2' into cassandra-3.0 2021-11-10 11:10:04 +00:00
Benedict Elliott Smith 4884e9b58f Upgrade tests fail with InvocationTargetException
patch by Benedict; reviewed by Mick Semb Wever for CASSANDRA-17050
2021-11-10 10:48:23 +00:00
Doug Rohrer c96131035b Backward compatibility for CQLSSTableWriter Date fields
Patch by Doug Rohrer; reviewed by Brandon Williams and Sam Tunnicliffe
for CASSANDRA-17117
2021-11-05 07:47:07 +00:00
Bereng 8ba8f0b841 ViewComplexTest hardening
patch by Andres de la Peña, Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-17070

Co-authored-by: Andres de la Peña <a.penya.garcia@gmail.com>
Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
2021-11-04 08:07:53 +01:00
Andrés de la Peña 6c9d5abbc5 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-10-27 18:12:42 +01:00
Bereng 5aa2fb83e7 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-10-26 07:39:22 +02:00
Bereng fa532a61f8 Prevent broken concurrent schema read/writes
patch by Berenguer Blasi; reviewed by Caleb Rackliffe for CASSANDRA-16996

Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
Co-authored-by: Caleb Rackliffe <calebrackliffe@gmail.com>
2021-10-26 07:33:56 +02:00
Alex Petrov 25f67a75e2 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-10-15 11:26:26 +02:00
Alex Petrov 610d5d4eb5 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-10-15 11:22:28 +02:00
Sumanth Pasupuleti 11af037fd9 Add blocking pendingranges calculation when keyspace is added
Patch by Sumanth Pasupuleti, reviewed by Alex Petrov for CASSANDRA-15433
2021-10-15 11:05:26 +02:00
Alex Petrov 3660a58ab4 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-10-03 23:23:31 +02:00
Alex Petrov 32a15f0e9b Merge branch 'cassandra-3.0' into cassandra-3.11 2021-10-01 18:05:52 +02:00
Alex Petrov 13632e9a99 Avoid re-prepare storm on qualified statements after `use`
Patch by Alex Petrov; reviewed by Marcus Eriksson for CASSANDRA-15252
2021-10-01 18:02:18 +02:00
Andrés de la Peña 339e8b74bf Merge branch 'cassandra-3.11' into cassandra-4.0 2021-10-01 11:55:30 +01:00
Andrés de la Peña c6e897d2d4 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-10-01 11:52:07 +01:00
Andrés de la Peña 4f8afe85bf Immediately apply stream throughput, considering negative values as unthrottled
patch by Andrés de la Peña; reviewed by Aleksei Zotov, Brandon Williams and Berenguer Blasi for CASSANDRA-16959

Co-authored-by: Niteshwar Kumar <niteshwar_kumar@persistent.com>
Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
2021-10-01 11:27:28 +01:00
Andrés de la Peña c0916d67be Merge branch 'cassandra-3.11' into cassandra-4.0
# Conflicts:
#	src/java/org/apache/cassandra/db/compaction/CompactionTask.java
#	test/unit/org/apache/cassandra/db/compaction/CompactionTaskTest.java
2021-09-30 13:11:33 +01:00
Andrés de la Peña dcc95492e9 Merge branch 'cassandra-3.0' into cassandra-3.11
# Conflicts:
#	CHANGES.txt
#	src/java/org/apache/cassandra/db/compaction/CompactionTask.java
2021-09-30 13:07:26 +01:00
Aleksandr Sorokoumov 3e6faca572 Do not release new SSTables in offline transactions
patch by Aleksandr Sorokoumov; reviewed by Andrés de la Peña and Branimir Lambov for CASSANDRA-16975
2021-09-30 13:01:02 +01:00
Marcus Eriksson 84ec1dc97d Correct the internode message timestamp if sending node has wrapped
Patch by marcuse; reviewed by Jon Meredith for CASSANDRA-16997
2021-09-30 11:21:54 +02:00
Marcus Eriksson 41b43a46c1 Avoid rewriting all repaired sstables during cleanup when transient replication is disabled
Patch by marcuse; reviewed by Alex Petrov for CASSANDRA-16966
2021-09-30 11:21:38 +02:00
Aleksei Zotov 5d457bc683 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-09-29 13:20:54 +04:00
Aleksei Zotov 25d2a872d3 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-09-29 13:20:19 +04:00
Aleksei Zotov 660dace43c Add tests for Resource fromName/getName
patch by Aleksei Zotov; reviewed by Berenguer Blasi, Sam Tunnicliffe for CASSANDRA-16995
2021-09-29 13:06:58 +04:00
Stefan Miklosovic e365908ee4 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-09-29 07:57:05 +02:00
Stefan Miklosovic 095475b9cc Merge branch 'cassandra-3.0' into cassandra-3.11 2021-09-29 07:49:10 +02:00
Stefan Miklosovic 6b16b67cd4 update jBCrypt dependency to version 0.4
patch by Stefan Miklosovic; reviewed by Dinesh Joshi for CASSANDRA-9384
2021-09-29 07:39:29 +02:00
Benjamin Lerer 984f763939 Merge branch cassandra-3.11 into cassandra-4.0 2021-09-28 16:27:59 +02:00
Benjamin Lerer 4d64ff7a8c Merge branch cassandra-3.0 into cassandra-3.11 2021-09-28 15:23:33 +02:00
Benjamin Lerer 9f492844d5 Avoid useless SSTable reads during single partition queries
patch by Benjamin Lerer; reviewed by Caleb Rackliffe for CASSANDRA-16944
2021-09-28 15:16:24 +02:00
Ekaterina Dimitrova 91077975df Merge branch 'cassandra-3.0' into cassandra-3.11 2021-09-24 12:11:07 -04:00
Ekaterina Dimitrova bd406c7ca9 Ignore LongSharedExecutorPoolTest until SEPThreadpool is re-evaluated
patch by Ekaterina Dimitrova; reviewed by Ekaterina Dimitrova, Brandon Williams for CASSANDRA-16973
2021-09-24 12:09:17 -04:00
Andrés de la Peña 6a3440bd61 Merge branch 'cassandra-3.0' into cassandra-3.11 2021-09-24 11:42:21 +01:00
Andrés de la Peña af85e7ad49 Fix flaky ViewTest#testTruncateWhileBuilding
patch by Andrés de la Peña; reviewed by Berenguer Blasi for CASSANDRA-16972
2021-09-24 11:42:07 +01:00
Bereng e8c675250a Merge branch 'cassandra-3.11' into cassandra-4.0 2021-09-24 08:35:59 +02:00
Bereng 1aa7fb172f ArrayIndexOutOfBoundsException in FunctionResource#fromName
patch by kamlesh_ghoradkar, Berenguer Blasi; reviewed by Berenguer Blasi, Aleksei Zotov for CASSANDRA-16977

Co-authored-by: kamlesh_ghoradkar <kamlesh_ghoradkar@persistent.com>
Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
2021-09-24 08:30:59 +02:00
Marcus Eriksson 50e0b40184 Fix org.apache.cassandra.distributed.test.OptimiseStreamsRepairTest.randomTest
Patch by marcuse; reviewed by Ekaterina Dimitrova for CASSANDRA-16971
2021-09-23 11:33:38 +02:00
Marcus Eriksson 86aaf22f15 CASSANDRA-16942 followup; move SSTableExport schema loading tests to a separate class
Patch by marcuse; reviewed by Berenguer Blasi for CASSANDRA-16942
2021-09-21 12:27:53 +02:00
Ekaterina Dimitrova 4018084bf7 Merge branch 'cassandra-3.11' into cassandra-4.0 2021-09-20 17:09:56 -04:00
Aleksei Zotov 876f7b0591 Fix flaky test DatabaseDescriptorRefTest.
Patch by Aleksei Zotov; reviewed by Ekaterina Dimitrova and John Meredith for CASSANDRA-16862
2021-09-20 16:59:20 -04:00
Marcus Eriksson b9d8700355 Avoid trying to acquire 0 permits from the rate limiter when taking snapshot
Patch by marcuse; reviewed by Alex Petrov for CASSANDRA-16872
2021-09-20 14:31:17 +02:00
Marcus Eriksson 9e9dffb704 Remove OrderedJUnit4ClassRunner
Patch by marcuse; reviewed by Caleb Rackliffe for CASSANDRA-16942
2021-09-20 13:37:32 +02:00
Bereng e98be8e3ec Merge branch 'cassandra-3.11' into cassandra-4.0 2021-09-20 09:46:30 +02:00
Bereng 8f4ae7d825 Improve MV TTL error message
patch by Brandon Williams, Berenguer Blasi; reviewed by Brandon Williams, Benjamin Lerer, Aleksei Zotov for CASSANDRA-16960

Co-authored-by: Brandon Williams <brandonwilliams@apache.org>
Co-authored-by: Berenguer Blasi <berenguerblasi@gmail.com>
2021-09-20 09:43:25 +02:00
Brandon Williams fa6dbc4dda Merge branch 'cassandra-3.11' into cassandra-4.0 2021-09-17 08:46:16 -05:00
Aleksei Zotov b3af67f0ee Add test to ensure Caffeine cache does not return stale entries
Patch by Aleksei Zotov; reviewed by brandonwilliams and mck for
CASSANDRA-15153
2021-09-17 08:41:14 -05:00
Stefan Miklosovic 57c1c6183a Merge branch 'cassandra-3.11' into cassandra-4.0 2021-09-16 13:56:11 +02:00
Vincent White 24b084fcf8 include SASI components to snapshots
patch by Vincent White; reviewed by Stefan Miklosovic and Andrés de la Peña for CASSANDRA-15134
2021-09-16 13:35:03 +02:00