Commit Graph

27453 Commits

Author SHA1 Message Date
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
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
Stefan Miklosovic 7fdb88d10a
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-11-20 10:29:09 +01:00
Stefan Miklosovic 13d44774a1
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-11-20 10:28:23 +01:00
Stefan Miklosovic 8c69f85502
ninja fix CASSANDRA-19002: Set gcgs in HintsMaker to Integer.MAX_VALUE
HintsMaker was creating hint files which ttl'ed after 10 days which started to fail the tests.
By setting it explicitly to Integer.MAX_VALUE, newly generated hint files will expire in cca 68 years.

Branches 3.0 to trunk introduce the fix to HintsMaker. Branches 5.0 and trunk contain regenerated hint files as well.
2023-11-20 10:26:59 +01:00
Bereng 3ba6de70c7 Test failure: org.apache.cassandra.db.commitlog.CommitLogSegmentManagerCDCTest
patch by Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-18948
2023-11-20 07:34:57 +01:00
Brandon Williams a912085f5e Merge branch 'cassandra-3.11' into cassandra-4.0 2023-11-13 14:16:00 -06:00
Brandon Williams 46996c24bf Merge branch 'cassandra-3.0' into cassandra-3.11 2023-11-13 14:14:59 -06:00
Brandon Williams d41afac8bf Set cqlshlib.serverversion to UNKNOWN if not found
Patch by brandonwilliams; reviewed by mck and paulo for CASSANDRA-19020
2023-11-13 14:12:21 -06:00
Abe Ratnofsky fe1be800b4
Remove completed coordinator sessions
patch by Abe Ratnofsky; reviewed by Caleb Rackliffe, Marcus Eriksson for CASSANDRA-18903
2023-11-13 15:17:47 +01:00
Isaac Reath 26a7d574f0
Make StartupConnectivityChecker only run a connectivity check if there are no nodes which are running a version prior to Cassandra 4
patch by Isaac Reath; reviwed by Paulo Motta, Stefan Miklosovic for CASSANDRA-18968
2023-11-10 11:23:23 +01:00
Stefan Miklosovic ac8a8687a3
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-11-08 14:17:42 +01:00
Stefan Miklosovic 997ad8e03b
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-11-08 14:14:58 +01:00
Stefan Miklosovic 359700dde2
Create / update tests to ensure commit logs and hints for all versions in MessagingService are ingestible by 5.0
Patches for 3.0, 3.11, 4.0 and 4.1 are just adding HintsMaker class to generate hint files.
Patches for 5.0 and trunk are adding tests for commit log upgrading and hints which were generated by HintsMaker.

Patches for 5.0 and trunk are also adding version 1 in HintsDescriptor back as it was removed in CASSANDRA-18314 by mistake.

patch by Stefan Miklosovic; reviewed by Michael Semb Wever for CASSANDRA-19002
2023-11-08 14:07:26 +01:00
Jacek Lewandowski 86e07595f7 Retrieve keyspaces metadata and schema version concistently in DescribeStatement
The fix makes the DescribeStatement to wait for the in-progress schema transformations to finish before returning the first page. This way, the metadata and schema version encoded in the result set metadata are guaranteed to be consistent.

Patch by Jacek Lewandowski; reviewed by Benjamin Lerer, Ekaterina Dimitrova for CASSANDRA-18921
2023-10-31 11:15:43 +01:00
Mike Adamson 9697be1131 Fix dtests returning ordering columns that have not been selected
patch by Mike Adamson; reviewed by adelapena, brandonwilliams and
Jeremiah Jordan for CASSANDRA-18892
2023-10-30 08:14:09 -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 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
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 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
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 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 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 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 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 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
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 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
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 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
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
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 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
Stefan Miklosovic 1f79c84925
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-09-05 16:51:37 +02:00
Stefan Miklosovic caad2f24f9
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-09-05 16:50:00 +02:00
Stefan Miklosovic 65ee0d082c
Ninja fix for CASSANDRA-18745 2023-09-05 16:47:23 +02:00
Stefan Miklosovic 8e34d1306b
Merge branch 'cassandra-3.11' into cassandra-4.0 2023-09-05 15:40:01 +02:00
Stefan Miklosovic 50dae280d8
Merge branch 'cassandra-3.0' into cassandra-3.11 2023-09-05 15:37:48 +02:00