Commit Graph

25345 Commits

Author SHA1 Message Date
bryn 02a80ef94f Update driver version to prevent issues with extra events being received when a node is decommissioned.
Patch by Bryn Cooke, reviewed by brandonwilliams for CASSANDRA-15677
2020-06-22 09:18:22 -05:00
Brandon Williams 03612b3224 Merge branch 'cassandra-3.11' into trunk 2020-06-22 09:11:31 -05:00
Stefan Miklosovic d6d55d24b5 changed imports for jackson classes for CompactionLogger
Patch by Stefan Miklosovic and brandonwilliams, reviewed by
brandonwilliams for CASSANDRA-15867
2020-06-22 09:08:06 -05:00
Brandon Williams 678fdf4ae9 Merge branch 'cassandra-3.11' into trunk 2020-06-22 09:00:00 -05:00
Brandon Williams 0c9043d2eb Merge branch 'cassandra-3.0' into cassandra-3.11 2020-06-22 08:59:21 -05:00
Joseph Lynch 674b6cc1a5 Update defaults for server and client TLS settings
This fixes backwards compatibility with the 3.11 server_encryption_options
while exposing the correct defaults after the 4.0 Netty refactor.

Patch by Joseph Lynch; Reviewed by Ekaterina Dimitrova for CASSANDRA-15262
2020-06-20 18:59:41 -07:00
Zhao Yang ebba613b0b Differentiate follower/initator in StreamMessageHeader
patch by ZhaoYang; reviewed by Benjamin Lerer for CASSANDRA-15665
2020-06-19 17:24:17 +02:00
David Capwell c04f9f448d Add a startup check to detect if LZ4 uses java rather than native implementation
patch by David Capwell; reviewed by Aleksey Yeschenko for
CASSANDRA-15884
2020-06-19 14:23:25 +01:00
Stefan Miklosovic d31ea25f42 Update Netty dependencies to latest
patch by Stefan Miklosovic; reviewed by Aleksey Yeschenko for
CASSANDRA-15868
2020-06-18 14:43:41 +01:00
Brandon Williams 4d1463f601 Merge branch 'cassandra-3.11' into trunk 2020-06-17 11:22:14 -05:00
Stefan Miklosovic 576cb2b8a4 update Jackson to 2.9.10
Patch by Stefan Miklosovic, reviewed by brandonwilliams for
CASSANDRA-15867
2020-06-17 11:21:35 -05:00
Brandon Williams eacdfc4978 Merge branch 'cassandra-3.11' into trunk 2020-06-16 12:37:15 -05:00
Bereng 4f50a6712a Catch exception on bootstrap resume and init native transport
Patch by Berenguer Blasi, reviewed by brandonwilliams for CASSANDRA-15863
2020-06-16 12:34:01 -05:00
Bereng 184303220b Catch exception on bootstrap resume and init native transport
Patch by Berenguer Blasi, reviewed by brandonwilliams for CASSANDRA-15863
2020-06-16 12:28:48 -05:00
Zhao Yang 7cdad3ce61 Avoid overflow when bloom filter size exceeds 2GB
Patch by Zhao Yang, reviewed by brandonwilliams for CASSANDRA-15869
2020-06-12 09:15:17 -05:00
Sam Tunnicliffe be572f2741 Merge branch 'cassandra-3.11' into trunk 2020-06-12 11:36:59 +01:00
Sam Tunnicliffe 408f969f3c Merge branch 'cassandra-3.0' into cassandra-3.11 2020-06-12 11:27:12 +01:00
Sam Tunnicliffe 0a1e8d168b Merge branch 'cassandra-2.2' into cassandra-3.0 2020-06-12 11:25:34 +01:00
Sam Tunnicliffe c8c3c269bf Fix nomenclature of deny and allow lists
Patch by Sam Tunnicliffe; reviewed by Jordan West for CASSANDRA-15862
2020-06-12 11:20:35 +01:00
Stefan Miklosovic 259c63f18e update version of Jackson to 2.9.10
Patch by Stefan Milosovic, reviewed by brandonwilliams for
CASSANDRA-15867
2020-06-11 15:12:01 -05:00
bryn 6dad660039 CASSANDRA-15677 Add shutdown to JMX thread pool to avoid metaspace errors associated with thread leaks. There are still other thread shutdown issues remaining, but this seems to be the most serious one. 2020-06-10 10:16:55 -05:00
bryn 58141308ba CASSANDRA-15677 Add the ability to run dTests on the same interface. 2020-06-10 10:16:55 -05:00
Alan Boudreault 6317fefec8 Fix missing topology events when running multiple nodes on the same network interface
Patch by Alan Boudrealt and Bryn Cook, reviewed by brandonwilliams for
CASSANDRA-15677
2020-06-10 10:16:07 -05:00
Brandon Williams 66cd0324c4 Revert "Make sure topology events are sent to clients when using a single network interface"
This reverts commit 595a4528dc.
2020-06-09 15:54:02 -05:00
Alan Boudreault 595a4528dc Make sure topology events are sent to clients when using a single network interface
Patch by Alan Boudrealt and Bryn Cooke; reviewed by brandonwilliams for CASSANDRA-15677
2020-06-09 15:37:13 -05:00
Ekaterina Dimitrova 6755487dcd Create config.yml.MIDRES
Patch by Ekaterina Dimitrova, reviewed by brandonwilliams for CASSANDRA-15712
2020-06-09 12:10:02 -05:00
Sam Tunnicliffe 4d1bdb129c Improve handling of static rows in repaired data tracking
Patch by Sam Tunnicliffe; reviewed by Marcus Eriksson for CASSANDRA-15848
2020-06-09 15:17:08 +01:00
Sam Tunnicliffe 04533e6cda Avoid blocking AntiEntropyStage when submitting validation requests
Patch by Sam Tunnicliffe; reviewed by Benjamin Lerer for CASSANDRA-15812

Switches ValidationExecutor's work queue to LinkedBlockingQueue to
avoid blocking AntiEntropyStage when the executor is saturated. This
requires VE.corePoolSize to be set to concurrent_validations as now
it will always prefer to queue requests rather than start new threads.

This commit also adds a hard limit on concurrent_validations, as allowing
an unbounded number of validations to run concurrently is never safe.
This was always true, but setting a high value here is now more
dangerous as it controls the number of core, not max, threads.
This hard limit is linked to concurrent_compactors, so operators may
set concurrent_validations between 1 and concurrent_compactors.
The meaning of setting it < 1 has changed from "unbounded" to
"whatever concurrent_compactors is set to".

This safety valve can be overridden with a system property at startup
and/or a JMX property.

CASSANDRA-9292 removed the 1hr timeout on prepare messages, but this
was inadvertently undone when CASSANDRA-13397 was committed. As nothing
long running is done in the repair phase anymore, this timeout can
safely be reduced.

If using RepairCommandPoolFullStrategy.queue, the core pool size
for repairCommandExecutor must be increased from the default
value of 1 or else all concurrent tasks will be queued and no
more threads created.
2020-06-09 13:41:05 +01:00
Stephen Mallette bc600f1bd5 Add BufferPoolMetricsTest
patch by Stephen Mallette; reviewed by David Capwell and by Benjamin Lerer
for CASSANDRA-15773
2020-06-09 11:14:54 +02:00
Bereng 2621e07e87 Fix SchemaTest.testTransKsMigration-cdc and CQLSSTableWriterTest-cdc
patch by Berenguer Blasi; reviewed by Benjamin Lerer for CASSANDRA-15842

The tests were constantly failing for the cdc test run due to the fact
that CDCSizeTracker.shutdown was throwing a NPE if the method was called
while CDCSizeTracker was not started.
The fix ensure that the test start the commitlog and that
CDCSizeTracker.shutdown is a NOOP if the tracker has not been started.
2020-06-09 10:33:04 +02:00
Mick Semb Wever 6978307b79
Merge branch 'cassandra-3.11' into trunk 2020-06-09 09:48:14 +02:00
Mick Semb Wever e49853914b
Merge branch 'cassandra-3.0' into cassandra-3.11 2020-06-09 09:45:52 +02:00
Mick Semb Wever c092c4610e
Merge branch 'cassandra-2.2' into cassandra-3.0 2020-06-09 09:44:24 +02:00
Mick Semb Wever 334024751c
Remove generated files from apache-cassandra-*-src.tar.gz artifacts
patch by Mick Semb Wever; reviewed by Robert Stupp for CASSANDRA-15849
2020-06-08 22:31:41 +02:00
Alex Petrov 7bbc97e583 Merge branch 'cassandra-3.11' into trunk 2020-06-05 19:34:13 +02:00
Alex Petrov 04b0049831 Merge branch 'cassandra-3.0' into cassandra-3.11 2020-06-05 19:26:56 +02:00
Alex Petrov 880b07c2e6 Merge branch 'cassandra-2.2' into cassandra-3.0 2020-06-05 19:25:27 +02:00
David Capwell 4fef917f98 In-jvm dtest builder should be provided to the factory and expose state
Patch by David Capwell; reviewed by Alex Petrov for CASSANDRA-15733.
2020-06-05 19:15:52 +02:00
Andrés de la Peña 69ea5ffdbc Merge branch 'cassandra-3.11' into trunk
# Conflicts:
#	CHANGES.txt
#	src/java/org/apache/cassandra/db/PartitionRangeReadCommand.java
#	src/java/org/apache/cassandra/db/ReadCommand.java
#	src/java/org/apache/cassandra/db/SinglePartitionReadCommand.java
#	src/java/org/apache/cassandra/db/filter/RowFilter.java
#	src/java/org/apache/cassandra/db/partitions/UnfilteredPartitionIterators.java
#	src/java/org/apache/cassandra/metrics/TableMetrics.java
#	src/java/org/apache/cassandra/service/DataResolver.java
#	src/java/org/apache/cassandra/utils/concurrent/Accumulator.java
2020-06-05 13:15:46 +01:00
Andrés de la Peña 7014cd5ab0 Merge branch 'cassandra-3.0' into cassandra-3.11
# Conflicts:
#	CHANGES.txt
#	src/java/org/apache/cassandra/db/filter/RowFilter.java
2020-06-05 12:25:28 +01:00
Andrés de la Peña dd255ffa07 Fix replica-side filtering returning stale data with CL > 1
patch by Andres de la Peña; reviewed by Benjamin Lerer, Caleb Rackliffe and ZhaoYang for CASSANDRA-8272
2020-06-05 12:01:13 +01:00
Alex Petrov da8fe7a2c2 Merge branch 'cassandra-3.11' into trunk 2020-06-04 20:17:45 +02:00
Alex Petrov 056c9eff4b Merge branch 'cassandra-3.0' into cassandra-3.11 2020-06-04 20:17:31 +02:00
Alex Petrov c4064dd80e Allow recovery from the cases when CQL-created compact sense tables have bytes in EmptyType columns.
Patch by Alex Petrov; reviewed by Sylvain Lebresne for CASSANDRA-15778.
2020-06-04 20:04:27 +02:00
Robert Stupp d6552ce3a4 Use Docker image for dtests in CircleCI w/ JAVA8_HOME environment variable & Allow different pip-source-install repos in requirements.txt
Related changes in cassandra-dtests + ccm fix more issues w/ upgraded-dtests

Patch by Robert Stupp; reviewed by Eduard Tudenhöfner for CASSANDRA-15835
2020-06-04 10:34:43 +02:00
polandll 57a63f8551 Improving Cassandra configuration docs
* Update copyright date to 2020
* Add glossary
* Rearranged rackdc for better flow
* Add topologies properties file
* Add commitlog_archiving file
* Add logback.xml info
* jvm.options files
* Removed invalid reference to wiki from configuration file

Patch by Lorina Poland; Reviewed by Jon Haddad for CASSANDRA-15822
2020-06-03 11:24:38 -07:00
Stefan Miklosovic ecf2c9ccd4
Add fqltool and auditlogviewer to rpm and deb packages
patch by Stefan Miklosovic; reviewed by Mick Semb Wever for CASSANDRA-14712
2020-06-03 18:31:26 +02:00
Jon Meredith c230ec9ed0 Include DROPPED_COLUMNS in schema digest computation.
CASSANDRA-11050 introduced dropped columns but excluded it from schema digest computations, with
a comment to include the table in the next major release - 4.0.

The patch now includes DROPPED_COLUMNS in the schema digest computation.

Patch by Jon Meredith; reviewed by Aleksey Yeschenko for CASSANDRA-15843
2020-06-02 19:00:48 +01:00
Mick Semb Wever ec1808a34f
Fixes version used inside the rpm package
patch by Mick Semb Wever; reviewed by Benjamin Lerer for CASSANDRA-15830
2020-05-29 15:18:15 +02:00
Bereng 595dc61290 Improve handling of 2i initialization failures
patch by Berenguer Blasi; reviewed by Andres de la Peña for CASSANDRA-13606
2020-05-29 12:37:00 +01:00