Commit Graph

29710 Commits

Author SHA1 Message Date
Marcus Eriksson 01d8cbdd1e Merge branch 'cassandra-5.0' into trunk 2023-11-30 08:32:46 +01:00
Marcus Eriksson 806a395b9c Clone EndpointState before sending GossipShutdown message
Patch by marcuse; reviewed by David Capwell for CASSANDRA-19115
2023-11-30 08:29:05 +01:00
Raymond Huffman 64ae866095 Upgrade jackson to 2.15.3 and snakeyaml to 2.1
Patch by Raymond Huffman; reviewed by brandonwilliams and smiklosovic
for CASSANDRA-18875
2023-11-29 16:50:02 -06:00
Stefan Miklosovic d40c9d1abf
Merge branch 'cassandra-5.0' into trunk 2023-11-29 18:36:57 +01:00
Stefan Miklosovic 0b8f889213
Merge branch 'cassandra-4.1' into cassandra-5.0 2023-11-29 18:36:12 +01:00
Stefan Miklosovic df64a5aa0d
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-11-29 18:34:05 +01:00
Szymon Miężał 9affcf169f
Fix nodetool repair_admin summarize-pending command to not throw exception
Fixed a bug causing the `OpenDataException` being thrown
when executing the `repair_admin summarize-pending` command.
This patch addresses the problem by including a missing composite
in `PendingStats.toComposite`, ensuring proper data conversion.

patch by Szymon Miezal; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-19014
2023-11-29 18:32:53 +01:00
Stefan Miklosovic 97bee6abc1
Merge branch 'cassandra-5.0' into trunk 2023-11-29 17:52:09 +01:00
Stefan Miklosovic bfd93eafdd
Merge branch 'cassandra-4.1' into cassandra-5.0 2023-11-29 17:48:36 +01:00
Stefan Miklosovic e8b638c2ae
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-11-29 17:47:18 +01:00
dmi0 0f2af6ab3f
Fix cassandra-stress in simplenative mode with prepared statements
patch by Dmitry Bychkov; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-18744
2023-11-29 17:45:15 +01:00
Sam Tunnicliffe 30ed828c87 [CEP-21] Add log message for backwards compatibility
Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for CASSANDRA-19068
2023-11-29 14:59:40 +00:00
Sam Tunnicliffe de1766a2f8 [CEP-21] Don't log unknown endpoint errors unnecessarily
Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for CASSANDRA-19092
2023-11-29 14:58:55 +00:00
Mick Semb Wever 7b7f79253d
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Provide truncate task for SAI
2023-11-29 13:56:29 +01:00
Mike Adamson 3928f2992f
Provide truncate task for SAI
If a table is truncated during the initial build of an index there is a chance that the index build will get interrupted and it won't get marked queryable. This patch provides a truncate task for SAI that marks the index queryable during truncation.

 patch by Mike Adamson; reviewed by Caleb Rackliffe, Michael Semb Wever for CASSANDRA-19032
2023-11-29 13:52:46 +01:00
Stefan Miklosovic f41ca379dd
Merge branch 'cassandra-5.0' into trunk 2023-11-29 12:15:36 +01:00
Stefan Miklosovic 3396ce9f08
Merge branch 'cassandra-4.1' into cassandra-5.0 2023-11-29 12:14:27 +01:00
Stefan Miklosovic c8d6182148
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-11-29 12:12:56 +01:00
Stefan Miklosovic 8dc32c5dd7
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-11-29 12:12:22 +01:00
Stefan Miklosovic 6d7cd61412
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-11-29 12:11:29 +01:00
Stefan Miklosovic c1b12058e7
Do not set RPC_READY to false on transports shutdown in order to not fail counter updates for deployments with coordinator and storage nodes with transports turned off
This is the follow-up commit of CASSANDRA-18935 where we set RPC_READY to false
when transports were shut down in runtime. The problem is that the current logic in StorageProxy.findSuitableEndpoint method,
used for the selection of a leader for counter mutations, is filtering out all endpoints which do not have RPC_READY
set to true. Hence, if there is a deployment of a coordinator node (not joining a ring) and storage nodes which
have transports turned off (e.g. for security reasons), then a coordinator node will select no endpoint as a
counter mutation leader which renders counter mutations impossible.

This change just reverts the original fix which was setting RPC_READY to false when transports were shut down in runtime
(e.g. by nodetool disablebinary).

For trunk (to be 5.1 at time of writing this), there is already TCM in place and the correct fix yet to be implemented
is to decouple from checking RCP_READY state and base it e.g. on JOINED state from TCM perspective. Please follow
CASSANDRA-19103 where this will be addressed.

patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-18935
2023-11-29 12:09:59 +01:00
Jacek Lewandowski 008c1b397b Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Enable Direct-IO feature for CommitLog files using Java native API's.
2023-11-29 11:48:30 +01:00
Amit Pawar 3259bea533 Enable Direct-IO feature for CommitLog files using Java native API's.
Patch by Amit Pawar and Jacek Lewandowski; reviewed by Branimir Lambov and Maxwell Guo for CASSANDRA-18464

Co-authored-by: Amit Pawar <Amit.Pawar@amd.com>
Co-authored-by: Jacek Lewandowski <lewandowski.jacek@gmail.com>
2023-11-29 11:29:23 +01:00
Jacek Lewandowski 3b47b5e473 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Fix filtering system ks sstables for relocation on startup
2023-11-28 18:51:03 +01:00
Jacek Lewandowski 3cdf71defe Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1:
  Fix filtering system ks sstables for relocation on startup
2023-11-28 18:50:18 +01:00
Jacek Lewandowski 78dd963481 Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Fix filtering system ks sstables for relocation on startup
2023-11-28 14:21:16 +01:00
Jacek Lewandowski dece96f21d Fix filtering system ks sstables for relocation on startup
Patch by Jacek Lewandowski; reviewed by Benjamin Lerer for CASSANDRA-18963
2023-11-28 14:20:26 +01:00
Marcus Eriksson 9167d599f3 Test Failure: org.apache.cassandra.db.compaction.writers.CompactionAwareWriterTest.test*CompactionWriter-trie
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19091
2023-11-28 09:40:01 +01:00
Marcus Eriksson db52bef03a Test failure: org.apache.cassandra.db.CorruptPrimaryIndexTest.bigPrimaryIndexDoesNotDetectDiskCorruption
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19061
2023-11-28 09:38:28 +01:00
Marcus Eriksson f6ea362d71 Test failure: org.apache.cassandra.tools.JMXCompatabilityTest
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19060
2023-11-28 09:37:31 +01:00
Marcus Eriksson 31a3ff1768 Test failure: org.apache.cassandra.db.RepairedDataInfoTest
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19059
2023-11-28 09:34:37 +01:00
Mick Semb Wever 58d2132afc
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Prepare debian changelog for 5.0-beta1
2023-11-26 17:59:06 +01:00
Mick Semb Wever e0c0c31c7f
Prepare debian changelog for 5.0-beta1 2023-11-26 13:14:51 +01:00
Mick Semb Wever 85b94c561d
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Fix broken indexing tests when using SAI  - This fixes a number of broken tests when the default index is set to SAI  - Composite partition indexes were being filtered prior to row filtering in the    index searcher resulting in incorrect results  - Static and non-static index intersection was failing because static primary keys    were not comparing correctly against non-static primary keys
2023-11-26 12:34:38 +01:00
Mike Adamson a9e6ed3787
Fix broken indexing tests when using SAI
- This fixes a number of broken tests when the default index is set to SAI
 - Composite partition indexes were being filtered prior to row filtering in the
   index searcher resulting in incorrect results
 - Static and non-static index intersection was failing because static primary keys
   were not comparing correctly against non-static primary keys

 patch by Mike Adamson; reviewed by Andres de la Peña, Michael Semb Wever for CASSANDRA-19034
2023-11-26 12:27:23 +01:00
Mick Semb Wever 87ce597ad0
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Improve code model around IndexContext
2023-11-25 10:09:50 +01:00
Mike Adamson 0e42b77c97
Improve code model around IndexContext
- Replace IndexContext with IndexTermType and IndexDefinition
 - Move index specific managers, factories and metrics to StorageAttachedIndex
 - Refactor Expression to explicitly define indexed and unindexed expressions

 patch by Mike Adamson; reviewed by Andres de la Peña, Caleb Rackliffe for CASSANDRA-18166
2023-11-25 09:53:40 +01:00
Marcus Eriksson d464c206e1 Revert bad dtest repo in circleci conf 2023-11-24 15:01:15 +01:00
Sam Tunnicliffe ae0842372f Implementation of Transactional Cluster Metadata as described in CEP-21
An overview of the core components can be found in the included
TransactionalClusterMetadata.md

patch by Alex Petrov, Marcus Eriksson and Sam Tunnicliffe; reviewed by
Alex Petrov, Marcus Eriksson and Sam Tunnicliffe for CASSANDRA-18330

Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
Co-authored-by: Sam Tunnicliffe <samt@apache.org>
2023-11-24 10:26:08 +00:00
Stefan Miklosovic 360128b3eb
Merge branch 'cassandra-5.0' into trunk 2023-11-23 16:21:09 +01:00
Ethan Brown 9c6e671434
Fixed bug where UnifiedCompactionTask constructor was calling the wrong base constructor of CompactionTask
patch by Ethan Brown; reviewed by Branimir Lambov, Stefan Miklosovic for CASSANDRA-18757
2023-11-23 16:19:10 +01:00
Andrés de la Peña 06dabb8b3a Merge branch 'cassandra-5.0' into trunk 2023-11-23 11:52:57 +00:00
Andrés de la Peña c26f2a3d69 Fix SAI unindexed contexts not considering CONTAINS KEY
patch by Andrés de la Peña; reviewed by Maxwell Guo and Michael Semb Wever for CASSANDRA-19040
2023-11-23 11:51:52 +00:00
Andrés de la Peña 1793c3fd36 Merge branch 'cassandra-5.0' into trunk 2023-11-22 15:15:36 +00:00
Andrés de la Peña e8fb4b2f63 Ensure that empty SAI column indexes do not fail on validation after full-SSTable streaming
patch by Andrés de la Peña; reviewed by Caleb Rackliffe for CASSANDRA-19017

Co-authored-by: Andrés de la Peña <a.penya.garcia@gmail.com>
Co-authored-by: Caleb Rackliffe <calebrackliffe@gmail.com>
2023-11-22 15:13:06 +00:00
Ekaterina Dimitrova 316a239c7c Merge branch 'cassandra-5.0' into trunk 2023-11-20 16:47:18 -05:00
Ekaterina Dimitrova a2911c7391 Merge branch 'cassandra-4.1' into cassandra-5.0 2023-11-20 16:42:39 -05:00
Ekaterina Dimitrova 08d9b70b4d Merge branch 'cassandra-4.0' into cassandra-4.1 2023-11-20 16:34:51 -05:00
Ekaterina Dimitrova 55fecfb65e Fix BulkLoaderTest.testBulkLoader_WithArgs2
patch by Ekaterina Dimitrova; reviewed by Michael Semb Wever and Andres de la Pena for CASSANDRA-19000
2023-11-20 15:56:50 -05:00
Andrés de la Peña 1b7e895f56 Merge branch 'cassandra-5.0' into trunk 2023-11-20 16:04:40 +00:00