Commit Graph

1087 Commits

Author SHA1 Message Date
Mick Semb Wever 7337fc0ab4
Merge branch 'cassandra-3.11' into trunk 2021-04-19 17:39:10 +02:00
Mick Semb Wever 2ec96ae669
Merge branch 'cassandra-3.0' into cassandra-3.11 2021-04-19 17:34:05 +02:00
Sam Tunnicliffe dd6c261119 Add io.netty.tryReflectionSetAccessible=true to j11 server options in order to enable netty to use Unsafe direct byte buffer construction
Patch by Sam Tunnicliffe; reviewed by Brandon Williams, Ekaterina Dimitrova and Berenguer Blasi for CASSANDRA-16493
2021-03-19 17:36:13 -04:00
Jeff Widman 3d539d908f Update python2 doc references to point to py3
Patch by Jeff Widman; reviewed by brandonwilliams for CASSANDRA-16505
2021-03-09 17:15:07 -06:00
Yifan Cai 425f750a6f Document the side-effect of Zero Copy Streaming when using multiple data directories 2021-02-26 09:42:54 -08:00
Benjamin Lerer f69b11eee9 Improve system tables handling in case of disk failures
patch by Benjamin Lerer; reviewed by Andrés de la Peña and  Marcus
Eriksson for CASSANDRA-14793
2021-02-04 15:04:22 +01:00
Adam Holmberg 023eecb03a
Fix check for -Xlog in cassandra-env.sh
patch by Yakir Gibraltar; reviewed by Adam Holmberg, Mick Semb Wever for CASSANDRA-16279
2021-01-08 22:06:23 +01:00
Jeremy Hanna 3cfc8502b8
Updated default num_tokens from 256 to 16 with associated allocate_tokens_for_local_replication_factor set to 3
patch by Jeremy Hanna; reviewed by Alexander Dejanovski, Paulo Motta, Brandon Williams, Michael Semb Wever for CASSANDRA-13701
2020-12-17 22:18:17 +01:00
Benjamin Lerer 0d56f70ae7 Remove use of String.intern()
patch by Benjamin Lerer; reviewed by Brandon Williams for CASSANDRA-15810
2020-12-17 17:48:59 +01:00
Marcus Eriksson 786cb11e18 Send back client warning if creating too many tables/keyspaces
Patch by marcuse; reviewed by Alex Petrov, Brandon Williams, Yifan Cai for CASSANDRA-16309
2020-12-15 10:32:43 +01:00
yifan-c c6ea8fabf9 Add dedicated tcp user timeout for streaming connection
patch by Yifan Cai; reviewed by Berenguer Blasi, David Capwell, Adam
Holmberg and by Benjamin Lerer for CASSANDRA-16143
2020-12-09 13:33:33 +01:00
Yuki Morishita d9e2ed00af Remove windows scripts and their references
patch by Yuki Morishita; reviewed by Berenguer Blasi and Andrés de la Peña for CASSANDRA-16171
2020-12-02 16:43:45 +00:00
Sam Tunnicliffe a7c4ba9eee Improve checksumming and compression in protocol V5
This reverts the changes made to the native protocol V5 wire format in
CASSANDRA-13304 and subsequent follow up JIRAs (CASSANDRA-15556 &
CASSANDRA-14716). The framing format has been re-implemented based on the
internode messaging format developed in CASSANDRA-15066.

OPTIONS and STARTUP messages are unframed (i.e. identical to the V4 format).
After sending its response to a STARTUP message, the server modifies the
pipeline and all further messages are sent (and should be expected by the
client to be received) in the format determined by the protocol version of
the STARTUP message.

Patch by Sam Tunnicliffe; reviewed by Alex Petrov and Caleb Rackliffe
for CASSANDRA-15299
2020-12-01 18:49:06 +00:00
Jordan West fae1f88354 Set dynamic snitch default badness threshold to 1.0
Patch by Jordan West; Reviewed by David Capwell for CASSANDRA-16285
2020-11-18 16:04:30 -08:00
Jeff Jirsa 85f69cf394 Add a ratelimiter to snapshot creation and deletion
Patch by Jeff Jirsa; Reviewed by Aleksey Yeschenko, Chris Lohfink,
maxwellguo for CASSANDRA-13019
2020-11-09 15:03:10 +01:00
Zhao Yang 699a1f74fc CASSANDRA-15229: Segregate Network and Chunk Cache BufferPools and Recirculate Partially Freed Chunks
* initiate multiple buffer pool for different lifespan and usages
  - Chunk Cache Buffer Pool - conf.file_cache_size_in_mb=512mb
  - Networking Buffer Pool - conf.temporary_cache_size_in_mb=128mb

* Add overflowSize and usedSize to buffer pool metrics

* re-circulate buffer pool Chunk for ChunkCache whenever it has free space, even thoughput it may not be able to allocate due to fragmentation

patch by Zhao Yang; reviewed by Caleb Rackliffe and Aleksey Yeschenko for CASSANDRA-15229
2020-10-15 22:55:06 +08:00
David Capwell 79e693e16e Add flag to disable chunk cache and disable by default
patch by David Capwell; reviewed by Jon Meredith, Zhao Yang for CASSANDRA-16036
2020-09-29 17:07:07 -07:00
Caleb Rackliffe 292650d968 Merge branch 'cassandra-3.11' into trunk 2020-07-30 14:10:48 +01:00
Caleb Rackliffe 2ef1f1c150 Merge branch 'cassandra-3.0' into cassandra-3.11 2020-07-30 13:27:53 +01:00
Caleb Rackliffe e5c3d08a14 Operational improvements and hardening for replica filtering protection
patch by Caleb Rackliffe; reviewed by Andrés de la Peña for CASSANDRA-15907
2020-07-30 12:53:52 +01:00
Benedict Elliott Smith d8993934e9 Remove BackPressureStrategy
patch by Benedict; reviewed by Sergio Bossa and Robert Stupp for CASSANDRA-15375
2020-07-17 13:39:16 +01:00
Jeremy Hanna 688bb664c5 USING_G1 is incorrectly set in cassandra-env.sh if G1 is explicitly disabled with -UseG1GC
Patch by Jeremy Hanna, reviewed by David Capwell and brandonwilliams for
CASSANDRA-15931
2020-07-08 11:21:56 -05:00
Jeremy Hanna 8599f93d9a
Update compaction_throughput_mb_per_sec default from 16 to 64
patch by Jeremy Hanna; reviewed by Mick Semb Wever for CASSANDRA-14902
2020-07-08 12:10:32 +02:00
Bereng 4654ef09c1
FBUtilities.getJustLocalAddress falls back to lo ip on misconfigured nodes
patch by Berenguer Blasi; reviewed by Robert Stupp, Mick Semb Wever for CASSANDRA-15901
2020-07-07 10:12:12 +02:00
Jeremy Hanna 3cfe3c9f0d
Fail fast when -Xmn is set when the G1 garbage collector is enabled
patch by Jeremy Hanna; reviewed by Anthony Grasso for CASSANDRA-15839
2020-06-24 12:53:53 +02: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
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
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 dd1c811f87 Provide ability to configure IAuditLogger
Patch by Stefan Miklosovic; reviewed by Vinay Chella and marcuse for CASSANDRA-15748
2020-05-20 16:49:33 +02:00
Joseph Lynch 9c1bbf3ac9 Flush with fast compressors by default
Previously Zstd, Deflate and LZ4HC could hold up the flush thread while
flushing due to their slow compression rates. With this patch we always
default to flush with a fast compressor (default to LZ4) and then
compress into the high compression strategy during normal compactions
that follow. Note that if the existing table compressor is fast (e.g.
LZ4 or Snappy) we use that.

Patch by Joey Lynch; reviewed by Dinesh Joshi for CASSANDRA-15379
2020-04-23 23:23:18 -07:00
Ekaterina Dimitrova 9d2ffad6b6 Set cross_node_timeout to true by default.
Patch by Ekaterina Dimitrova, reviewed by brandonwilliams for
CASSANDRA-15216
2020-01-15 16:35:44 -06:00
Mick Semb Wever 2da9af002a
Merge branch 'cassandra-3.11' into trunk 2020-01-02 11:28:56 +01:00
Mick Semb Wever 1381c875e8
Merge branch 'cassandra-3.0' into cassandra-3.11 2020-01-02 11:27:33 +01:00
Mick Semb Wever 3edbb09e02
Configure the GC logs directory to be the same as other C* log directories, as defined by $CASSANDRA_LOG_DIR
patch by Angelo Polo; reviewed by Mick Semb Wever for CASSANDRA-14306
2020-01-02 11:23:09 +01:00
Per Otterström d5e5c459f5 Align record header of FQL and audit binary log
Patch by Per Otterström; reviewed by Vinay Chella and marcuse for CASSANDRA-15076
2019-11-28 09:43:07 +01:00
Mick Semb Wever 068d2d37c6
Add `allocate_tokens_for_local_rf` yaml option for token allocation that doesn't require keyspace knowledge/existence
patch by Mick Semb Wever; reviewed by Branimir Lambov for CASSANDRA-15260
2019-09-08 20:28:40 +02:00
Michael Shuler d4054e0cf8 ninja: Fix "No newline at end of file" in c*.yaml
After building artifacts, a diff is left over, so let's fix that:

diff --git a/conf/cassandra.yaml b/conf/cassandra.yaml
index 28d86fd10a..e776a5a620 100644
--- a/conf/cassandra.yaml
+++ b/conf/cassandra.yaml
@@ -1341,4 +1341,4 @@ enable_sasi_indexes: false

 # Enables creation of transiently replicated keyspaces on this node.
 # Transient replication is experimental and is not recommended for production use.
-enable_transient_replication: false
\ No newline at end of file
+enable_transient_replication: false
2019-09-04 10:31:22 -07:00
Alex Petrov 0240a4659d Introduce optional timeouts for idle client sessions
Patch by Alex Petrov, reviewed by Aleksey Yeshchenko for CASSANDRA-11097
2019-07-10 23:02:17 +02:00
Benedict Elliott Smith 310a48efcf Rewrite the internode messaging subsystem
patch by Aleksey Yeschenko and Benedict Elliott Smith; reviewed by Alex
Petrov, Aleksey Yeschenko, and Benedict Elliott Smith for CASSANDRA-15066

Co-authored-by: Aleksey Yeschenko <aleksey@apache.org>
Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
2019-06-12 16:26:54 +01:00
Mick Semb Wever 797ec05a6a
Merge branch 'cassandra-3.11' into trunk 2019-05-27 11:31:50 +10:00
Mick Semb Wever 60bdfb1731
Fix cassandra-env.sh to use $CASSANDRA_CONF to find cassandra-jaas.config
Patch by Angelo Polo; Reviewed by Mick Semb Wever for CASSANDRA-14305
2019-05-27 11:24:23 +10:00
Blake Eggleston aa762c6d52 Support building Cassandra with JDK 11
Patch by Blake Eggleston; Reviewed by Dinesh Joshi and Sam Tunnicliffe for CASSANDRA-15108
2019-05-10 13:46:27 -07:00
Mick Semb Wever 439c8278f0
Merge branch 'cassandra-3.11' into trunk 2019-04-01 20:51:06 +11:00
Mick Semb Wever 8ac2e4244d
Merge branch 'cassandra-3.0' into cassandra-3.11 2019-04-01 20:47:14 +11:00
Mick Semb Wever 47910df834
Merge branch 'cassandra-2.2' into cassandra-3.0 2019-04-01 20:46:17 +11:00
Mick Semb Wever 6fc3df93b8
Update comment link to mx4j in cassandra-env.sh
patch by Jearvon Dharrie; reviewed by Mick Semb Wever for CASSANDRA-14950
2019-04-01 20:40:19 +11:00
Andrés de la Peña 094689acf1 Merge branch 'cassandra-3.11' into trunk
# Conflicts:
#	CHANGES.txt
#	conf/cassandra.yaml
#	src/java/org/apache/cassandra/config/Config.java
#	src/java/org/apache/cassandra/config/DatabaseDescriptor.java
#	src/java/org/apache/cassandra/cql3/statements/CreateIndexStatement.java
#	src/java/org/apache/cassandra/cql3/statements/CreateViewStatement.java
#	src/java/org/apache/cassandra/db/view/View.java
#	test/unit/org/apache/cassandra/cql3/ViewTest.java
#	test/unit/org/apache/cassandra/index/sasi/SASICQLTest.java
2019-02-19 15:08:10 +00:00
Andrés de la Peña e6a61be8c8 Add flag to disable SASI indexes, and warning on creation
patch by Andres de la Peña; reviewed by Robert Stupp for CASSANDRA-14866
2019-02-19 14:20:06 +00:00
Blake Eggleston 70e6f2952f Merge branch 'cassandra-3.11' into trunk 2019-02-14 13:25:09 -08:00
Blake Eggleston 126853068d Merge branch 'cassandra-3.0' into cassandra-3.11 2019-02-14 13:21:38 -08:00