Commit Graph

9249 Commits

Author SHA1 Message Date
Brandon Williams cf0be97894 Revert "Update debian packaging to python3"
This reverts commit 8c43f510a3.
2021-03-09 17:23:43 -06:00
Mick Semb Wever 3018499540
Merge branch 'cassandra-2.2' into cassandra-3.0 2021-03-09 22:31:01 +01:00
Mick Semb Wever b41873d671
Fix centos packaging for arm64, >=3.0 rpm's now require python3
patch by Mick Semb Wever; reviewed by Brandon Williams for CASSANDRA-16477
2021-03-09 22:30:06 +01:00
jacek-lewandowski 865b67b21d Fix ColumnFilter behaviour to prevent digest mitmatches during upgrades
patch by Jacek Lewandowski; reviewed by Andrés de la Peña and Yifan Cai for CASSANDRA-16415
2021-03-01 12:24:28 +00:00
Brandon Williams 8c43f510a3
Update debian packaging to python3
patch by Brandon Williams; reviewed by Mick Semb Wever for CASSANDRA-16396
2021-02-27 17:00:09 +01:00
Caleb Rackliffe 1f686fd634 Avoid pushing schema mutations when setting up distributed system keyspaces locally
patch by Caleb Rackliffe; reviewed by Aleksey Yeschenko, Benjamin Lerer
and Brandon Williams for CASSANDRA-16387
2021-02-15 13:41:40 +01:00
Andrés de la Peña 08be5e0c54 Merge branch 'cassandra-2.2' into cassandra-3.0
# Conflicts:
#	CHANGES.txt
#	src/java/org/apache/cassandra/locator/TokenMetadata.java
2021-02-01 17:23:37 +00:00
Caleb Rackliffe d3e48e4e00 Make TokenMetadata's ring version increments atomic
patch by Caleb Rackliffe; reviewed by Andrés de la Peña and Yifan Cai for CASSANDRA-16286
2021-02-01 17:11:31 +00:00
Alex Petrov f35ab19dbe Increment version to 3.0.25 2021-02-01 15:59:15 +01:00
Ekaterina Dimitrova 0a1e900a0a Prevent unbounded number of pending flushing tasks; Add PendingFlushTasks metric (CASSANDRA-16261)
Authored by Ekaterina Dimitrova; reviewed by Caleb Rackliffe and Andres de la Pena for CASSANDRA-16261
2021-01-19 17:31:24 -05:00
Marcus Eriksson f02e53568d Improve empty/corrupt hint file handling on startup
Patch by marcuse; reviewed by Benjamin Lerer and Yifan Cai for CASSANDRA-16162
2021-01-15 09:24:05 +01:00
Aleksandr Sorokoumov a542b86504 Allow empty string in collections with COPY FROM in cqlsh
Patch by Aleksandr Soromoukov, reviewed by brandonwilliams for
CASSANDRA-16372
2021-01-12 13:22:18 -06:00
Benjamin Lerer 77e2205aed Merge branch cassandra-2.2 into cassandra-3.0 2021-01-11 17:54:07 +01:00
Benjamin Lerer b5f52bfd0e Remove OpenJDK log warning
patch by Benjamin Lerer; reviewed by Brandon Williams for CASSANDRA-15563
2021-01-11 17:52:18 +01:00
Caleb Rackliffe f8500ee911
Fix skipping on pre-3.0 created compact storage sstables due to missing primary key liveness
Check primary key liveness information only if it exists, and fall back to checking cell contents, which makes skipping possible for COMPACT STORAGE tables after and upgrade to 3.0+

 patch by Caleb Rackliffe; reviewed by Alex Petrov, Mick Semb Wever for CASSANDRA-16226
2021-01-07 23:02:02 +01:00
Zhao Yang a2aa78d7f4 Avoid decimal-serializer.toString() creating huge string
patch by Zhao Yang; reviewed by Benjamin Lerer for CASSANDRA-14925
2020-12-20 01:49:41 +08:00
Stefan Miklosovic fa77676daa Extend the exclusion of replica filtering protection to other indices instead of just SASI
patch by Stefan Miklosovic; reviewed by Andrés de la Peña and Zhao Yang for CASSANDRA-16311#
2020-12-11 18:05:52 +00:00
Brandon Williams 2bcbd92a25 Ninja fix CASSANDRA-16225 and update changes. 2020-12-02 12:13:40 -06:00
Benjamin Lerer 6baeb9247b Fix the counting of cells per partition
patch by Benjamin Lerer; reviewed by Berenguer Blasi and ZhaoYang for
CASSANDRA-16259

The number of cells per partition is updated upon the closing of the
RowIterator. As UnfilteredRowIterator.close() was called twice the number
of cells could have been counted twice (depending on the
RowIterator implementation).
2020-12-02 14:36:42 +01:00
Benjamin Lerer d3770b45be Merge branch cassandra-2.2 into cassandra-3.0 2020-12-02 14:25:25 +01:00
Benjamin Lerer e96b60bd9f Fix the histogram merge of the table metrics
patch by Benjamin Lerer; reviewed by Berenguer Blasi and ZhaoYang for
CASSANDRA-16259

The logic to merge two histograms in the table metrics was wrong. It was
causing an IndexArrayOutOfBondsException if one of the SSTable histograms
has less buckets than the previous SSTable.
2020-12-02 14:16:59 +01:00
Sylvain Lebresne 2d0b168047 Fix serial read/non-applying CAS linearizability
Before this patch, a SERIAL read or a non-applying CAS replay any
in-progress commit by calling `beginAndRepairPaxos`, but only a quorum
of nodes is contacted, so a minority of nodes could have an unfinished
in-progress proposal in their Paxos state. If such in-progress proposal
is not replayed by a SERIAL read/non-applying CAS, it should never be
replayed by any following operation as that would break serializability,
but nothing was done to avoid this.

This patch ensures that both a SERIAL read or a non-applying CAS commit
an empty update before succeeding. This ensures that no prior incomplete
in-progress proposal can be replayed (such proposal will be discarded as
older than the last committed ballot).

As this fix has a performance impact on SERIAL reads, a flag is provided
to disable the new code (even if this is discouraged by a warning).

Patch by Sylvain Lebresne, reviewed by Benjamin Lerer for CASSANDRA-12126
2020-11-27 17:04:56 +01:00
Sam Tunnicliffe 068d87acfb Avoid potential NPE in JVMStabilityInspector
Patch by Sam Tunnicliffe; reviewed by David Capwell for CASSANDRA-16294
2020-11-23 15:27:40 +00:00
Stefan Miklosovic 8ef5a88631
Improved check of num_tokens against initial_token in the cassandra.yaml
patch by Stefan Miklosovic; reviewed by Mick Semb Wever for CASSANDRA-14477
2020-11-17 21:47:21 +01:00
Ekaterina Dimitrova 548ef43856 Fix a race condition on ColumnFamilyStore and TableMetrics
patch by Ekaterina Dimitrova; reviewed by Benjamin Lerer for
CASSANDRA-16228
2020-11-10 12:24:52 +01:00
Benjamin Lerer 3b970ddbd6 Remove the SEPExecutor blocking behavior
patch by Benjamin Lerer; reviewed by Andrés de la Peña for CASSANDRA-16186

If the number of tasks added to a SEPExecutor exceed the max queue size,
the threads adding those task will be block until enough space become
available for all the blocked tasks. At this point all the blocked threads
will be released at once.

As the maxTasksQueued was always set to INTEGER.MAX_VALUE, the code was in
practice never using. By consequence, removing the code was a better
option than trying to fix it.
2020-11-10 09:55:20 +01:00
Blake Eggleston 0845008061 Wait for schema agreement when bootstrapping
Patch by Blake Eggleston & Stefan Miklosovic;
Reviewed by Aleksey Yeschenko and Stefan Miklosovic for CASSANDRA-15158

Co-authored-by: Stefan Miklosovic <stefan.miklosovic@instaclustr.com>
2020-11-09 12:15:21 -08:00
Mick Semb Wever b6ef9b22f2
Merge branch 'cassandra-2.2' into cassandra-3.0 2020-11-04 12:42:20 +01:00
Mick Semb Wever 140048f5b7
Increment versions to 2.2.20, 3.0.24, 3.11.10, 4.0-beta4 2020-11-04 12:39:05 +01:00
jacek-lewandowski f106ef0697 Fix invalid cell value skipping when reading from disk
patch by Jacek Lewandowski; reviewed by Sylvain Lebresne for CASSANDRA-16223
2020-11-02 11:36:01 +01:00
yifan-c fee7a10823 Prevent invoking enable/disable gossip when not in NORMAL
Patch by Yifan Cai; Reviewed by Brandon Williams and Blake Eggleston for CASSANDRA-16146
2020-10-30 12:19:45 -07:00
Swen Fuhrmann 45ad38fb5a On forced shutdown, terminate all repair sessions.
Patch by Swen Fuhrmann, reviewed by Alexander Dejanovski and
brandonwilliams for CASSANDRA-15902
2020-10-28 08:49:34 -05:00
Marcus Eriksson 12604456f9 Avoid marking shutting down nodes as up after receiving gossip shutdown message
Patch by marcuse; reviewed by Sam Tunnicliffe for CASSANDRA-16094
2020-10-23 10:20:41 +02:00
Andrés de la Peña d44dbd91c1 Merge branch 'cassandra-2.2' into cassandra-3.0
# Conflicts:
#	CHANGES.txt
2020-10-21 13:19:13 +01:00
Angelo Polo 72941b9ec1 Package tools/bin scripts as executable
patch by Angelo Polo; reviewed by Andres de la Peña for CASSANDRA-16151
2020-10-21 13:09:51 +01:00
Ekaterina Dimitrova 0700dfa0bc Check SSTables for latest version before dropping compact storage
patch by Ekaterina Dimitrova; reviewed by Andrés de la Peña and Sylvain Lebresne for CASSANDRA-16063
2020-10-13 15:42:51 +01:00
David Capwell 42989cee28 Merge branch 'cassandra-2.2' into cassandra-3.0 2020-10-12 11:05:28 -07:00
David Capwell 521a6e2aa9 Fixed a NullPointerException when calling nodetool enablethrift
patch by David Capwell; reviewed by Ekaterina Dimitrova, Jordan West, Yifan Cai for CASSANDRA-16127
2020-10-12 11:04:37 -07:00
Blake Eggleston 31b9078a69 Handle unexpected columns due to schema races
Patch by Blake Eggleston; Reviewed by Sam Tunnicliffe for CASSANDRA-15899
2020-10-05 14:19:50 -07:00
Marcus Eriksson 8a4c1d7a48 Add flag to ignore unreplicated keyspaces during repair
patch by Marcus Eriksson; reviewed by Blake Eggleston, David Capwell for CASSANDRA-15160
2020-09-24 21:16:51 -07:00
Caleb Rackliffe 5a39ff4078 Avoid failing compactions with very large partitions
Patch by Caleb Rackliffe; Reviewed by Chris Lohfink and Benjamin Lerer for CASSANDRA-15164
2020-09-24 10:56:51 -05:00
Erick Ramirez ed80055523 Fix ExceptionInInitializerError when data_file_directories is not set
Patch by Erick Ramirez, reviewed by brandonwilliams for CASSANDRA-16008
2020-09-23 10:05:12 -05:00
Stefan Miklosovic 277d83961c Use IF NOT EXISTS for index and UDT create statements in snapshot schema
files

patch by Stefan Miklosovic; reviewed by Andrés de la Peña and Benjamin
Lerer for CASSANDRA-13935
2020-09-16 16:32:22 +02:00
Mick Semb Wever 0eaed71d1d
Merge branch 'cassandra-2.2' into cassandra-3.0 2020-08-31 20:59:29 +02:00
Mick Semb Wever 815de9982a
Merge branch 'cassandra-2.1' into cassandra-2.2 2020-08-31 20:57:58 +02:00
Mick Semb Wever 0271653f27
Increment versions after releases 2.1.22, 2.2.18, 3.0.22, 3.11.8, 4.0-beta2 2020-08-31 20:55:39 +02:00
Mick Semb Wever 81f8a9f29d
Merge branch 'cassandra-2.2' into cassandra-3.0 2020-08-28 09:48:11 +02:00
Mick Semb Wever 1caaa9c0b6
Merge branch 'cassandra-2.1' into cassandra-2.2 2020-08-28 09:41:15 +02:00
Brandon Williams 63f4da90c3
Only allow strings to be passed to JMX authentication
patch by Brandon Williams; reviewed by Mick Semb Wever for CASSANDRA-16077
2020-08-28 09:32:40 +02:00
Colm O hEigeartaigh d28f769fc6 Disable JMX rebinding
Patch by Colm O hEigeartaigh; reviewed by Sam Tunnicliffe for CASSANDRA-15653/CASSANDRA-16075
2020-08-26 13:22:44 +01:00