Commit Graph

28421 Commits

Author SHA1 Message Date
Brandon Williams d3cc2a65b8 Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-26 06:05:42 -05:00
Brandon Williams 2fa7c1204c Merge branch 'cassandra-3.11' into cassandra-4.0 2023-10-26 05:59:42 -05:00
Brandon Williams 349ec3e02d Merge branch 'cassandra-3.0' into cassandra-3.11 2023-10-26 05:58:22 -05:00
Brandon Williams 0a91114dd5 Merge branch 'cassandra-3.11' into cassandra-4.0 2023-10-26 05:56:47 -05:00
Brandon Williams cec0e1b864 Merge branch 'cassandra-3.0' into cassandra-3.11 2023-10-26 05:55:46 -05:00
Brandon Williams 5bf1d2f8d5 Suppress CVE-2023-44487
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-18943
2023-10-26 05:54:19 -05:00
Stefan Miklosovic d6bf4fd98f
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-24 16:26:07 +02:00
Stefan Miklosovic d6fcca95b4
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-10-24 16:20:31 +02:00
Stefan Miklosovic 3987160bb2
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-10-24 16:14:49 +02:00
Stefan Miklosovic b51ee83a29
Fix nodetool enable/disablebinary to correctly set rpc readiness in gossip
patch by Stefan Miklosovic; reviewed by Brandon Williams for CASSANDRA-18935
2023-10-24 16:12:37 +02:00
Jacek Lewandowski ac71d0f56e Fixed the inconsistency between distributedKeyspaces and distributedAndLocalKeyspaces
Patch by Jacek Lewandowski; reviewed by Benjamin Lerer, Berenguer Blasi, Ekaterina Dimitrova, Jeremiah Jordan for CASSANDRA-18747
2023-10-19 12:56:09 +02:00
Stefan Miklosovic ede18e6c9f
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-18 12:55:49 +02:00
Stefan Miklosovic 85285fa0f9
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-10-18 12:54:15 +02:00
Stefan Miklosovic 6212b0aaa5
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-10-18 12:52:19 +02:00
maoling f27c6c8e6e
Implement the logic in bin/stop-server
patch by Ling Mao; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-18838

Co-authored-by: Stefan Miklosovic <smiklosovic@apache.org>
2023-10-18 12:49:58 +02:00
David Capwell 1920571861 Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-10 14:07:17 -07:00
David Capwell 2bab3f27ba Gossip NPE due to shutdown event corrupting empty statuses
patch by David Capwell; reviewed by Brandon Williams for CASSANDRA-18913
2023-10-10 14:05:15 -07:00
Alex Petrov e562d6a3a9 Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-10 10:49:41 +02:00
Francisco Guerrero 26c374da4f Synchronize CQLSSTableWriter#build on the Schema.instance object
In this commit the `org.apache.cassandra.io.sstable.CQLSSTableWriter#build` method synchronizes on the
`Schema.instance` object (instead of the `CQLSSTableWriter.class`) to prevent concurrent schema operations
to fail when the offline tools also updates the schema.

For example, a table creation operation, which modifies the keyspace tables metadata, might end up
missing the update when a concurrent call to the `CQLSSTableWriter#build` method is accessing the
singleton Schema instance.

Patch by Francisco Guerrero, reviewed by Yifan Cai, Maxwell Guo, Alex Petrov for CASSANDRA-18317.
2023-10-10 10:46:47 +02:00
Stefan Miklosovic ea6461b870
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-10 10:04:42 +02:00
Stefan Miklosovic b57c13603a
Remove byteman-related files from production sources
This patch also removes compress-lzf library (leftover from CASSANDRA-12229)
as well as it makes byte-buddy dependencies to be test scoped.

patch by Stefan Miklosovic; reviewed by Michael Semb Wever for CASSANDRA-18877
2023-10-10 09:51:11 +02:00
Jacek Lewandowski 59790da813 Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Fix closing iterator in SecondaryIndexBuilder
2023-10-05 15:33:30 +02:00
Jacek Lewandowski 016d91a7d7 Fix closing iterator in SecondaryIndexBuilder
Patch by Jacek Lewandowski; reviewed by Andres de la Peña, Piotr Kolaczkowski for CASSANDRA-18361
2023-10-05 15:33:28 +02:00
Bereng b5bfd1e314 Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Test failure: junit.framework.TestSuite.org.apache.cassandra.distributed.test.CASMultiDCTest
2023-10-05 09:24:35 +02:00
Bereng 9ccec3dc8c Test failure: junit.framework.TestSuite.org.apache.cassandra.distributed.test.CASMultiDCTest
Patch by Berenguer Blasi; reviewed by Ekaterina Dimitrova for CASSANDRA-18707
2023-10-05 09:22:18 +02:00
Jacek Lewandowski 29c3136763 Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  Fix CQLConnectionTest and SimpleClient
2023-10-04 18:45:52 +02:00
Jacek Lewandowski 8486d678b0 Fix CQLConnectionTest and SimpleClient
There are a couple of fixes in this patch. As explained on the ticket, some of the flaky failures are a race of two events that cause the termination of the connection. First is a legitimate close as a result of expected failures. In this case, the server sends the error message and closes the connection. The test expects to receive that message. However, the test was sending more messages that couldn't be received because the server already closed the connection, and they were bounced by the OS, causing immediate connection shutdown on the client side, even before it could receive the error message.

The fix is to stop sending the messages after sending the message, which is expected to cause a failure. Some other accompanying modifications include using Awaitility to wait for specific events and consider the configured maximum number of consecutive failures.

Also added some more logging to help investigate failures in the future.

Patch by Jacek Lewandowski; reviewed by Sam Tunnicliffe for CASSANDRA-16949
2023-10-04 18:45:50 +02:00
Ekaterina Dimitrova 486acc68f1 Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-03 10:50:41 -04:00
Ekaterina Dimitrova 4eeaf6a6ee Update hdrhistogram to 2.1.12
patch by Ekaterina Dimitrova; reviewed by Brandon Williams and Tobias Lindaaker for CASSANDRA-18893
2023-10-03 10:39:22 -04:00
Stefan Miklosovic 4974a8237c
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-10-02 13:18:40 +02:00
Cameron Zemek cb1f1399b1
Improve performance of compactions when table does not have an index
patch by Cameron Zemek; reviewed by Branimir Lambov, Stefan Miklosovic for CASSANDRA-18773
2023-10-02 13:16:39 +02:00
Stefan Miklosovic 27fe757636
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-09-27 20:57:23 +02:00
Stefan Miklosovic b039f72e6b
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-09-27 20:54:09 +02:00
Stefan Miklosovic 058621a446
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-09-27 20:51:35 +02:00
Maxim Muzafarov dc7234134c
Upgrade snappy-java to 1.1.10.4
patch by Maxim Muzafarov; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-18878
2023-09-27 20:49:09 +02:00
Jon Meredith b9586501a6 Internode legacy SSL storage port certificate is not hot reloaded on update
patch by Jon Meredith; reviewed by Dinesh Joshi, Francisco Guerrero for CASSANDRA-18681
2023-09-25 14:25:14 -06:00
Jacek Lewandowski 2747dbf091 Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0:
  JMH improvements - faster build and async profiler
2023-09-25 12:39:38 +02:00
Jacek Lewandowski 3658ba58c7 JMH improvements - faster build and async profiler
- Don't create uber jar for microbenchmarks
- Add async profiler to jmh tests
- Benchmark classes names validation
- Add jmh.args property to make it possible passing extra args to JMH
- Add missing test/anttasks to idea configuration

Patch by Jacek Lewandowski; reviewed by Branimir Lambov, Maxim Muzafarov, Stefan Miklosovic for CASSANDRA-18871
2023-09-25 12:39:36 +02:00
Branimir Lambov db6641fbb6 Merge branch 'cassandra-4.0' into cassandra-4.1 2023-09-21 16:59:04 +03:00
Branimir Lambov c6385ac3dd Merge branch 'cassandra-3.11' into cassandra-4.0 2023-09-21 16:02:01 +03:00
Ethan Brown 87c2af85c1 Fix delayed SSTable release with unsafe_aggressive_sstable_expiration
patch by Ethan Brown; reviewed by Branimir Lambov and Mick Semb Wever for CASSANDRA-18756
2023-09-21 15:53:27 +03:00
Stefan Miklosovic 1acab45e4f
Merge branch 'cassandra-4.0' into cassandra-4.1 2023-09-19 20:29:27 +02:00
Jackson Fleming 31aede3275
Enable 3rd party JDK installations for Debian package
java11-runtime and java8-runtime for Cassandra 4.x branches and
java17-runtime with java11-runtime for Cassandra 5.x branches enable
users to use arbitrary JDK installation if it provides such runtime by
installing it from 3rd-party repositories.

By specifying only OpenJDK-based packages in Depends in debian/control file,
it was not possible to use other JDKs but that one.

patch by Jackson Fleming; reviewed by Stefan Miklosovic and Brandon Williams for CASSANDRA-18844
2023-09-19 20:26:22 +02:00
Doug Rohrer 8bfe0e5878 InstanceClassLoader leak in 5.0/trunk
patch by Doug Rohrer; reviewed by Francisco Guerrero, Jon Meredith, David Capwell for CASSANDRA-18841
2023-09-15 14:07:29 -06:00
Brandon Williams b8209a06fb Merge branch 'cassandra-4.0' into cassandra-4.1 2023-09-15 12:28:11 -05:00
Brandon Williams edde699a06 Merge branch 'cassandra-3.11' into cassandra-4.0 2023-09-15 12:23:59 -05:00
Brandon Williams edf22ed776 Revert 18543 but retain properties
Patch by brandonwilliams; reviewed by dcapwell for CASSANDRA-18854
2023-09-15 12:22:10 -05:00
Brandon Williams 3d220b5a6e Merge branch 'cassandra-4.0' into cassandra-4.1 2023-09-12 06:13:00 -05:00
Brandon Williams b2093ef321 Select automatic native port when starting the server in CQLTester
Patch by brandonwilliams; reviewed by bereng for CASSANDRA-18829
2023-09-12 06:11:44 -05:00
Jacek Lewandowski b053027680 Set the delay to 0 for unit tests and fix GuardrailDiskUsageTest
Patch by Jacek Lewandowski; reviewed by Berenguer Blasi and Jeremiah Jordan for CASSANDRA-18821

# Conflicts:
#	test/distributed/org/apache/cassandra/distributed/test/ColumnMaskTest.java
#	test/unit/org/apache/cassandra/cql3/CQLTester.java
2023-09-12 11:07:08 +02:00