Commit Graph

273 Commits

Author SHA1 Message Date
Marcus Eriksson a85196246c Merge branch 'cassandra-3.11' into trunk 2019-03-15 10:02:00 +00:00
Dinesh Joshi dccf53061a Add Zstd compressor
Patch by Dinesh Joshi; Reviewed by Blake Eggleston for CASSANDRA-14482
2019-02-22 15:06:06 -08:00
Marcus Eriksson 6e27e65f15 Only cancel conflicting compactions when starting anticompactions and sub range compactions
Patch by marcuse; reviewed by Blake Eggleston for CASSANDRA-14935
2019-01-17 08:01:16 +01:00
Zhao Yang f100024eb3 fix handleRepairStatusChangedNotification to remove first then add
Patch by ZhaoYang reviewed by marcuse for CASSANDRA-14720
2018-09-12 08:32:51 +02:00
Ariel Weisberg f7431b4328 Transient Replication and Cheap Quorums
Patch by Blake Eggleston, Benedict Elliott Smith, Marcus Eriksson, Alex Petrov, Ariel Weisberg; Reviewed by Blake Eggleston, Marcus Eriksson, Benedict Elliott Smith, Alex Petrov, Ariel Weisberg for CASSANDRA-14404

Co-authored-by: Blake Eggleston <bdeggleston@gmail.com>
Co-authored-by: Benedict Elliott Smith <benedict@apache.org>
Co-authored-by: Marcus Eriksson <marcuse@apache.org>
Co-authored-by: Alex Petrov <oleksandr.petrov@gmail.com>
2018-08-31 21:34:22 -04:00
Chris Lohfink d5ae2ae481 Add a virtual table to expose thread pools
patch by Chris Lohfink; reviewed by Aleksey Yeschenko for
CASSANDRA-14523
2018-08-06 19:06:16 +01:00
Dinesh A. Joshi 47a12c52a3 Stream entire SSTables when possible
patch by Dinesh Joshi; reviewed by Aleksey Yeschenko and Ariel Weisberg
for CASSANDRA-14566
2018-07-27 17:50:25 +01:00
Paulo Motta d3b6a67bbf Merge branch 'cassandra-3.11' into trunk 2018-06-06 15:44:42 -03:00
Iuri Sitinschi 01439740bc Replace deprecated junit.framework.Assert usages with org.junit.Assert
patch by Iuri Sitinschi; reviewed by jasobrown for CASSANDRA-14431
2018-05-01 19:20:35 -07:00
Ariel Weisberg 59b5b6bef0 Allow storage port to be configurable per node
Patch by Ariel Weisberg; Reviewed by Jason Brown for CASSANDRA-7544
2018-01-25 14:32:24 -05:00
Jay Zhuang 7533ff089a Remove unused on-heap Bloomfilter implementation
patch by Jay Zhuang; reviewed by jasobrown for CASSANDRA-14152
2018-01-17 14:16:31 -08:00
Jay Zhuang 62e46f7190 Split CommitLogStressTest to avoid timeout
patch by Jay Zhuang; reviewed by jasobrown for CASSANDRA-14143
2018-01-10 06:44:26 -08:00
Paulo Motta 0d70789fda Merge branch 'cassandra-3.11' into trunk 2017-12-07 08:21:37 +11:00
Paulo Motta f77b663d1b Merge branch 'cassandra-3.0' into cassandra-3.11 2017-12-07 08:17:49 +11:00
Zhao Yang 461af5b9a6 Fix updating base table rows with TTL not removing materialized view entries
Patch by Zhao Yang; Reviewed by Paulo Motta for CASSANDRA-14071
2017-12-07 08:17:06 +11:00
Jason Brown f58072142c ninja-remove commented out code, missed on commit for CASSANDRA-13530 2017-12-01 14:15:03 -08:00
Yuji Ito f3f90c1896 Add GroupCommitLogService
patch by Yuji Ito and jasobrown; reviewed by Ariel Weisberg for CASSANDRA-13530
2017-12-01 13:12:20 -08:00
Paulo Motta 00022bfa61 Merge branch 'cassandra-3.11' into trunk 2017-09-25 01:29:46 -05:00
Paulo Motta 3e3d56ecd4 Merge branch 'cassandra-3.0' into cassandra-3.11 2017-09-25 01:01:47 -05:00
Jason Brown fc92db2b9b move streaming to use netty
patch by jasobrown, reviewed by aweisberg for CASSANDRA-12229
2017-08-22 13:54:44 -07:00
Yuki Morishita ac21013057 Merge branch 'cassandra-3.11' into trunk 2017-02-23 11:13:13 +09:00
Yuki Morishita b887ae944b Merge branch 'cassandra-3.0' into cassandra-3.11 2017-02-23 11:12:46 +09:00
Yuki Morishita 61f0c988f7 Merge branch 'cassandra-2.2' into cassandra-3.0 2017-02-23 11:01:32 +09:00
Marcus Eriksson 6ffd5cc5d2 run LongLeveledCompactionStrategyTest.testLeveledScanner in a separate table
patch by marcuse; reviewed by yukim for CASSANDRA-12202
2017-02-23 10:35:50 +09:00
Dikang Gu 67cda763b2 NoReplicationTokenAllocator should support zero replication factor
Patch by Dikang Gu; reviewed by Branimir Lambov for CASSANDRA-12983
2017-02-05 16:59:08 +00:00
Robert Stupp cecbe17e3e Move to FastThreadLocalThread and FastThreadLocal
patch by Robert Stupp; reviewed by Jason Brown for CASSANDRA-13034
2017-02-05 16:54:19 +00:00
Dave Brosius e96ce6d132 clean up dead imports 2017-01-29 21:22:18 -05:00
Aleksey Yeschenko af3fe39dca Make TableMetadata immutable, optimize Schema
patch by Aleksey Yeschenko; reviewed by Sylvain Lebresne for
CASSANDRA-9425
2017-01-27 22:17:46 +00:00
Yuki Morishita 66f1aaf88d Temporarily fix bug that creates commit log when running offline tools
patch by yukim; reviewed by thobbs for CASSANDRA-8616
2016-12-13 15:51:37 -08:00
Robert Stupp d596a47cf1 Merge branch 'cassandra-3.X' into trunk 2016-12-13 17:38:18 +01:00
Robert Stupp 707c364309 Move to FastThreadLocalThread and FastThreadLocal
patch by Robert Stupp; reviewed by Jason Brown for CASSANDRA-13034
2016-12-13 17:37:47 +01:00
Dikang Gu 04687c3a36 Merge branch 'cassandra-3.X' into trunk
* cassandra-3.X:
  NoReplicationTokenAllocator should support zero replication factor
2016-12-02 18:08:48 -08:00
Dikang Gu 0e357991b2 NoReplicationTokenAllocator should support zero replication factor
Patch by Dikang Gu; reviewed by Branimir Lambov for CASSANDRA-12983
2016-12-02 18:06:41 -08:00
Sylvain Lebresne 4a2464192e Remove pre-3.0 compatibility code for 4.0
patch by Sylvain Lebresne; reviewed by Aleksey Yeschenko for CASSANDRA-12716
2016-11-30 10:23:18 +01:00
Stefania Alborghetti e0adc166a3 Extend native protocol request flags, add versions to SUPPORTED, and introduce ProtocolVersion enum
patch by Stefania Alborghetti; reviewed by Benjamin Lerer for CASSANDRA-12838
2016-10-31 21:14:42 +08:00
Dikang Gu e2a0d75b02 Implement the NoReplicationTokenAllocator
Patch by Dikang Gu; reviewed by Branimir Lambov for CASSANDRA-12777
2016-10-25 16:56:07 +01:00
Dikang Gu 9fc14bc5a5 Make the fanout size for LeveledCompactionStrategy to be configurable
Patch by Dikang Gu; reviewed by Marcus Eriksson for CASSANDRA-11550
2016-10-18 08:46:35 +02:00
Stefania Alborghetti c6ec31bada Fix timeout in ReplicationAwareTokenAllocatorTest
patch by Stefania Alborghetti; reviewed by Branimir Lambov for CASSANDRA-12784
2016-10-18 09:08:56 +08:00
Dikang Gu c1a9a47df2 Make randompartitioner work with new vnode allocation
patch by Dikang Gu; reviewed by Branimir Lambov for CASSANDRA-12647
2016-09-19 16:36:34 -07:00
Jeremiah D Jordan 0026e4eeec Put CQLSSTableWriter back to the old interface/behavior before CASSANDRA-11844
Patch by Jeremiah Jordan; reviewed by Jake Luciani for CASSANDRA-12551
2016-09-12 11:48:45 -04:00
Robert Stupp 29239c765c Replace Config.setClientMode with DatabaseDescriptor.clientInit()
patch by Robert Stupp; reviewed by Jeremiah Jordan for CASSANDRA-12550
2016-08-27 09:59:11 +02:00
Robert Stupp 9797511c56 Let DatabaseDescriptor not implicitly startup services
patch by Robert Stupp; reviewed by Blake Eggleston for CASSANDRA-9054
2016-08-18 11:44:03 +10:00
Sylvain Lebresne 624ed7838b Merge branch 'cassandra-3.9' into trunk
* cassandra-3.9:
  Change commitlog and sstables to track dirty and clean intervals.
  Disable passing control to post-flush after flush failure to prevent data loss.
2016-08-05 15:48:18 +02:00
Sylvain Lebresne 7b1021733b Merge commit '904cb5d10e0de1a6ca89249be8c257ed38a80ef0' into cassandra-3.9
* commit '904cb5d10e0de1a6ca89249be8c257ed38a80ef0':
  Change commitlog and sstables to track dirty and clean intervals.
  Disable passing control to post-flush after flush failure to prevent data loss.
2016-08-05 15:39:56 +02:00
Branimir Lambov 904cb5d10e Change commitlog and sstables to track dirty and clean intervals.
patch by Branimir Lambov; reviewed by Sylvain Lebresne for
CASSANDRA-11828
2016-08-05 15:38:37 +02:00
T Jake Luciani 47d3b7e7a0 compaction stress tool
patch by tjake; reviewed by Marcus Eriksson for CASSANDRA-11844
2016-08-01 11:06:52 -04:00
Branimir Lambov d40ac784d3 Garbage-collecting compaction operation and schema option.
patch by Branimir Lambov; reviewed by Marcus Eriksson for CASSANDRA-7019
2016-08-01 14:20:50 +02:00
Sylvain Lebresne cfb0505927 Merge branch 'cassandra-3.9' into trunk
* cassandra-3.9:
  Rerun ReplicationAwareTokenAllocatorTest on failure to avoid flakiness.
2016-07-28 16:34:36 +02:00
Sylvain Lebresne 68b3f6e71c Merge branch 'cassandra-3.0' into cassandra-3.9
* cassandra-3.0:
  Rerun ReplicationAwareTokenAllocatorTest on failure to avoid flakiness.
2016-07-28 16:34:22 +02:00
Branimir Lambov a5cbb02619 Rerun ReplicationAwareTokenAllocatorTest on failure to avoid flakiness.
patch by Branimir Lambov; reviewed by Sylvain Lebresne for CASSANDRA-12277.
2016-07-28 16:25:07 +02:00
T Jake Luciani dc9ed46341 Improve write path performance
Patch by tjake; reviewed by Stefania Alborghetti for CASSANDRA-12269
2016-07-26 14:55:54 -04:00
Josh McKenzie ed9014818c Fix CommitLogStressTest timeout
Patch by jmckenzie; reviewed by blambov for CASSANDRA-12207
2016-07-22 12:34:52 -04:00
Branimir Lambov e8907c16ab Simplify commit log code
patch by Branimir Lambov; reviewed by Ariel Weisberg for CASSANDRA-10202
2016-07-20 15:59:38 +01:00
Dave Brosius 087264f29c imports cleanup 2016-07-16 12:40:05 -04:00
Josh McKenzie a13add64fe Fix CommitLogStressTest
Patch by jmckenzie; reviewed by blambov for 12082
2016-06-24 12:58:08 -04:00
Josh McKenzie e31e216234 Add Change Data Capture
Patch by jmckenzie; reviewed by cyeksigian and blambov for CASSANDRA-8844
2016-06-16 10:01:39 -04:00
Carl Yeksigian 693e52d66a Merge branch 'cassandra-3.0' into trunk 2016-06-15 10:57:30 -04:00
Carl Yeksigian 05bacc756e Merge branch 'cassandra-2.2' into cassandra-3.0 2016-06-15 10:52:55 -04:00
Carl Yeksigian dbefa854b4 Merge branch 'cassandra-2.1' into cassandra-2.2 2016-06-15 10:39:09 -04:00
Benjamin Lerer adfbf518e0 Merge branch cassandra-3.7 into trunk 2016-06-02 12:52:10 +02:00
Benjamin Lerer dc6ffc25a8 Merge branch cassandra-3.0 into cassandra-3.7 2016-06-02 12:50:19 +02:00
Benjamin Lerer 1e82695115 Merge branch cassandra-2.2 into cassandra-3.0 2016-06-02 12:44:45 +02:00
Benjamin Lerer 6c445d6b7f Run CommitLog tests with different compression settings
patch by Benjamin Lerer; reviewed by Branimir Lambov for CASSANDRA-9039
2016-06-02 12:31:31 +02:00
Marcus Eriksson 3f46df541a Merge branch 'cassandra-3.7' into trunk 2016-05-13 09:13:18 +02:00
Marcus Eriksson 590d20b0a1 Run LongLeveledCompactionStrategyTests in separate tables
Patch by marcuse; reviewed by yukim for CASSANDRA-11657
2016-05-13 09:11:19 +02:00
Sylvain Lebresne bd39d73a6b Merge branch 'cassandra-3.7' into trunk 2016-05-12 15:21:30 +02:00
Sylvain Lebresne c9ac0506c4 Merge commit '78a3d2bba95b9efcda152a157f822f4970f22636' into cassandra-3.7 2016-05-12 15:20:41 +02:00
Sylvain Lebresne 78a3d2bba9 Merge commit '849a438690aa97a361227781108cc90355dcbcd9' into cassandra-3.0 2016-05-12 15:19:15 +02:00
Benedict Elliott Smith 849a438690 Fix commit log replay after out-of-order flush completion.
Patch by Benedict Elliott Smith; reviewed by Branimir Lambov for
CASSANDRA-9669
2016-05-12 15:17:15 +02:00
T Jake Luciani 1e92ce43a5 Faster Streaming
Patch by tjake; reviewed by Stefania Alborghetti for CASSANDRA-9766
2016-05-04 17:04:12 -04:00
Branimir Lambov 30bb255ec9 Add uncompressed chunk cache for RandomAccessReader
patch by Branimir Lambov; reviewed by Pavel Yaskevich for CASSANDRA-5863
2016-04-28 22:14:42 -07:00
Marcus Eriksson 16ea55b0ef Merge branch 'cassandra-3.0' into trunk 2016-04-26 09:32:12 +02:00
Marcus Eriksson bf7d4334ed Merge branch 'cassandra-2.2' into cassandra-3.0 2016-04-26 08:28:33 +02:00
Marcus Eriksson 3128802a5f Merge branch 'cassandra-2.1' into cassandra-2.2 2016-04-26 08:25:45 +02:00
Paulo Motta cc75de6912 Validate levels when building LeveledScanner to avoid overlaps with orphaned sstables
Patch by Paulo Motta; reviewed by marcuse for CASSANDRA-9935
2016-04-26 08:21:05 +02:00
Paulo Motta 209ebd380b Add unit test for CASSANDRA-11548
Patch by Paulo Motta; reviewed by Marcus Eriksson for CASSANDRA-11548
2016-04-19 15:42:36 +02:00
Dikang Gu a17120adff Optimize the overlapping lookup by calculating all the bounds in advance.
Patch by Dikang Gu; reviewed by marcuse for CASSANDRA-11571
2016-04-19 13:25:58 +02:00
Michael Kjellman e06d411f6a Make LZ4 compression level configurable
Patch by mkjellman; reviewed by marcuse for CASSANDRA-11051
2016-04-08 08:09:36 +02:00
Jason Brown 7374e9b5ab Encrypted commit logs
patch by jasobrown; reviewed by blambov for (CASSANDRA-6018)
2016-01-19 07:00:32 -08:00
Marcus Eriksson e2c6341898 Make sure the same token does not exist in several data directories
Patch by marcuse; reviewed by Yuki Morishita and Carl Yeksigian for CASSANDRA-6696
2016-01-05 16:48:50 +01:00
Carl Yeksigian a3a8dbca5c Improve MV schema representation
patch by Carl Yeksigian; reviewed by Aleksey Yeschenko for
CASSANDRA-9921
2015-09-16 15:34:18 +01:00
Stefania Alborghetti 53a177a915 Improve batchlog write path
patch by Stefania Alborghetti; reviewed by Aleksey Yeschenko for
CASSANDRA-9673
2015-09-02 08:43:42 +01:00
Branimir Lambov 01a11fd262 Fixes race during construction of commit log:
- Moves thread start outside of constructor for all commit log classes.
- Removes all references to CommitLog.instance from commitlog package.

patch by Branimir Lambov; reviewed by tjake for CASSANDRA-10049
2015-08-28 09:43:34 -04:00
T Jake Luciani f00a3da835 Fix LWW bug affecting MaterializedViews
Patch by tjake; reviewed by carl for CASSANDRA-10197
2015-08-27 14:36:11 -04:00
Blake Eggleston 9ed2727739 Give compaction strategies more control over sstable creation
Patch by Blake Eggleston; reviewed by marcuse for CASSANDRA-8671
2015-08-20 20:47:40 +02:00
Aleksey Yeschenko 96d41f0e0e Rewrite hinted handoff
patch by Aleksey Yeschenko; reviewed by Benedict Elliott Smith for
CASSANDRA-6230
2015-08-19 17:27:22 +03:00
Branimir Lambov f8f6fd2d7e Fixes race during construction of commit log:
- Moves thread start outside of constructor for all commit log classes.
- Removes all references to CommitLog.instance from commitlog package.

patch by Branimir Lambov; reviewed by tjake for CASSANDRA-10049
2015-08-14 10:38:30 -04:00
Stefania Alborghetti 605bcdcf11 Fix split and scrub tool sstable cleanup
Follow up to CASSANDRA-9978

patch by stefania; reviewed by benedict for CASSANDRA-7066
2015-08-07 10:00:56 +02:00
Aleksey Yeschenko b31845c4a7 Factor out TableParams from CFMetaData
patch by Aleksey Yeschenko; reviewed by Robert Stupp for CASSANDRA-9712
2015-08-04 12:12:34 +03:00
Aleksey Yeschenko 0a08525ad2 Revert "Revert "Stop accessing the partitioner directly via StorageService""
This reverts commit a22ce89e86.
2015-08-01 01:33:51 +03:00
Jonathan Ellis a22ce89e86 Revert "Stop accessing the partitioner directly via StorageService"
This reverts commit 69f77cbddd.
2015-07-31 12:24:52 -05:00
Branimir Lambov 69f77cbddd Stop accessing the partitioner directly via StorageService
Changes the way the partitioner is accessed. Partitioner is now stored
and accessed according to the reason for needing it:
* if it is to access a table / prepare a statement, the partitioner
relevant to this table can be found in its CFMetaData.
* if it is to route messages to the relevant member of the cluster, the
partitioner in TokenMetadata is to be used.

patch by Branimir Lambov; reviewed by Aleksey Yeschenko for
CASSANDRA-8143
2015-07-31 14:42:47 +03:00
T Jake Luciani 3c43775c75 Revert "Revert "Materialized Views""
This reverts commit 24d185d72b.
2015-07-29 18:29:32 -04:00
Jonathan Ellis 24d185d72b Revert "Materialized Views"
This reverts commit 3bdcaa336a.
2015-07-29 17:03:52 -05:00
Carl Yeksigian 3bdcaa336a Materialized Views
patch by carl; reviewed by jmckenzie for CASSANDRA-6477
2015-07-29 16:15:53 -04:00
Benedict Elliott Smith ad8cad7c4d Make choice of SSTableReader types explicit
All accessors of a collection of SSTableReader must now
specify whether they desire the LIVE or CANONICAL set, so
that no internal clients are accidentally exposed to a partial
sstable they are not capable of safely handling.

patch by benedict; reviewed by marcus for CASSANDRA-9699
2015-07-28 10:28:31 +01:00
Stefania Alborghetti b09e60f72b Introduce safer durable sstable membership management
(and simplify cleanup of compaction leftovers)

Instead of using temporary files and system tables,
this patch introduces a simple transaction log for sstable
membership edits that can be committed/aborted atomically
and simply replayed on startup.

patch by stefania; reviewed by benedict for CASSANDRA-7066
2015-07-24 14:41:51 +01:00
Ariel Weisberg c4c9eaeb13 Fix NIODataInputStream varint decoding and EOF behavior
patch by ariel; reviewed by benedict for CASSANDRA-9863
2015-07-23 23:23:16 +01:00
Sylvain Lebresne 2457599427 Simplify some 8099's implementations
patch by slebresne; reviewed by iamalesky for CASSANDRA-9705
2015-07-22 18:05:09 +02:00
Sylvain Lebresne 4feaa7a3db Merge branch 'cassandra-2.2' into trunk
Conflicts:
	test/unit/org/apache/cassandra/locator/DynamicEndpointSnitchTest.java
2015-07-16 15:29:02 +02:00