Commit Graph

8064 Commits

Author SHA1 Message Date
Jyothsna Konisa bfcb21fbeb Set right client auth for creating SSL context in mTLS optional mode
patch by Jyothsna Konisa; reviewed by Francisco Guerrero, Jon Meredith for CASSANDRA-18811
2023-12-19 13:54:28 -07:00
Stefan Miklosovic 447d2bcee7
Merge branch 'cassandra-5.0' into trunk 2023-12-19 20:32:36 +01:00
Claude Warren e6ffd8b4f7
UCS min_sstable_size should not be lower than target_sstable_size lower bound
patch by Claude Warren; reviewed by Ethan Brown, Branimir Lambov and Stefan Miklosovic for CASSANDRA-19112
2023-12-19 20:26:14 +01:00
Jacek Lewandowski 08c46d0963 Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Fix the correspondingMessagingVersion of SSTable format and improve TTL overflow tests coverage
2023-12-15 09:44:46 +01:00
Jacek Lewandowski 2fc2be54ca Fix the correspondingMessagingVersion of SSTable format and improve TTL overflow tests coverage
Patch by Jacek Lewandowski; reviewed by Berenguer Blasi for CASSANDRA-19197
2023-12-15 09:40:37 +01:00
Marcus Eriksson 901786ec27 Avoid race inserting new data in compaction_history during truncation in SystemKeyspaceMigrator41Test.testMigrateCompactionHistory
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19098
2023-12-12 10:28:54 +01:00
Marcus Eriksson 1a46e96890 Don't start MessagingService unnecessarily to speed up tests and to avoid memory leak
Patch by marcuse; reviewed by Alex Petrov for CASSANDRA-19125
2023-12-08 12:42:53 +01:00
Sam Tunnicliffe 1df9148ed1 Fix FetchLogFromPeersTest with vnodes
Patch by Sam Tunnicliffe; reviewed by Alex Petrov for CASSANDRA-19072
2023-12-07 17:11:02 +00:00
Sam Tunnicliffe b470117733 Fix potential for unintended address clash in test case
Patch by Sam Tunnicliffe; reviewed by Alex Petrov for CASSANDRA-19171
2023-12-07 16:35:02 +00:00
Sam Tunnicliffe 28630ccbbf Update expected error message which is too specific
Patch by Sam Tunnicliffe; reviewed by Alex Petrov for CASSANDRA-19102
2023-12-07 16:35:02 +00:00
Marcus Eriksson c5a2781b22 Enable bytebuddy rule after starting nodes to fix DecommissionAvoidWriteTimeoutsTest
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19090
2023-12-06 10:09:43 +01:00
Sam Tunnicliffe 3ed0903131 In in-jvm dtests, don't mark internode messaging as started until it actually is
Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for CASSANDRA-19087
2023-12-05 07:50:05 +00:00
Marcus Eriksson f74c07d2d3 Lower the number of tables and repairs to avoid timeouts in ClearSnapshotTest
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19070
2023-12-01 16:33:04 +01:00
Sam Tunnicliffe 11358bd3a8 Rewrite RegisterTest to verify serialization version ceiling
Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for CASSANDRA-19073
2023-12-01 14:46:50 +00:00
Mick Semb Wever 64cdebdb69
Merge branch 'cassandra-5.0' into trunk
* cassandra-5.0:
  Fix SAI intersection queries
2023-12-01 13:50:15 +01:00
Mike Adamson 6a7bef12ec
Fix SAI intersection queries
- Fix comparison in PostingListRangeIterator for updating skip token
 - Fix binary search in KeyLookup.clusteredSeekToKey
 - Added new on-disk component for storing partition sizes by partition ID

 patch by Mike Adamson; reviewed by Caleb Rackliffe, Mick Semb Wever for CASSANDRA-19011
2023-12-01 13:47:43 +01:00
Alex Petrov e182744cd0 Introduce 5.1 messaging format that brings in Epoch
Patch by Alex Petrov; reviewed by Sam Tunnicliffe CASSANDRA-19066.
2023-12-01 13:02:33 +01:00
Alex Petrov a98a5a1d9d Reduce time the tests run to avoid timeouts
Patch by Alex Petrov; reviewed by Marcus Eriksson for CASSANDRA-19123
2023-12-01 12:09:07 +01:00
Alex Petrov 179711eab6 Improve the situation with timeouts of all fuzz tests.
Since we would wait for request timeout, even if one progress barrier message gets lost,
we would fail the test, since we would wait for 10 minutes of timeout. But since _commit_
is paused, we could just attempt to retry, and only one of the attempts will succeed.

Patch by Alex Petrov; reviewed by Marcus Eriksson for CASSANDRA-19123
2023-12-01 12:06:09 +01:00
Leo Toff ac201d2f04
Make nodetool tablestats use number of significant digits for time and average values consistently
patch by Leo Toff; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-19015
2023-12-01 10:55:42 +01:00
Marcus Eriksson 5613d0a4fe Test failure: org.apache.cassandra.distributed.test.ring.DecommissionTest.test*Version*
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19078
2023-11-30 13:06:50 +01:00
Marcus Eriksson da868ab607 Test Failure: org.apache.cassandra.distributed.upgrade.ClusterMetadataUpgradeTest.upgradeWithHintsTest
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-19063
2023-11-30 13:04:52 +01:00
Alex Petrov 5f2ff4f932 Merge branch 'cassandra-5.0' into trunk 2023-11-30 12:43:49 +01:00
Alex Petrov f46444b628 Remove relocated.shadedad.io.netty.transport.noNative prop
Patch by Alex Petrov, reviewed by Francisco Guerrero for CASSANDRA-19119;
2023-11-30 12:43:40 +01:00
Yifan Cai cbabfd39b1 Merge branch 'cassandra-5.0' into trunk 2023-11-30 17:48:23 +08:00
Yifan Cai 9dc0378c2f Merge branch 'cassandra-4.1' into cassandra-5.0 2023-11-30 17:45:45 +08:00
Yifan Cai 350e968565 Merge branch 'cassandra-4.0' into cassandra-4.1 2023-11-30 17:44:07 +08:00
Yifan Cai 50273d98e4 Support max SSTable size in sorted CQLSSTableWriter
patch by Yifan Cai; reviewed by Alex Petrov, Francisco Guerrero, Maxwell Guo for CASSANDRA-18941
2023-11-30 17:39:00 +08: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
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