Commit Graph

4207 Commits

Author SHA1 Message Date
Eduard Tudenhoefner 8ffdd26cbe Interned ColumnIdentifiers should use minimal ByteBuffers. MemoryMeter shouldn't take ColumnDefinition into account when measuring object sizes.
Patch by Eduard Tudenhoefner; reviewed by Joel Knighton for CASSANDRA-13533
2017-05-26 13:48:54 -05:00
Sam Tunnicliffe 62092e45c8 Fix current position calculation in OldFormatDeserializer
Patch by Sam Tunnicliffe; reviewed by Jeff Jirsa for CASSANDRA-13525

This patch also adds a unit test for CASSANDRA-13236.
2017-05-24 19:01:25 +01:00
Stefan Podkowinski 3872580245 Stop merkle tree recursion at leafs
patch by Stefan Podkowinski; reviewed by Blake Eggleston for CASSANDRA-13052
2017-05-24 13:55:11 +02:00
adelapena 263740daa4 Fix 2ndary indexes on primary key columns to don't create expiring entries (CASSANDRA-13412) 2017-05-10 11:55:45 +01:00
Christian Esken 617c8ebadb Expire OTC messages by a single Thread
patch by Christian Esken; reviewed by Ariel Weisberg for CASSANDRA-13265
2017-05-03 16:30:43 -04:00
Robert Stupp b77e754a0c UDA fails without input rows
patch by Robert Stupp; reviewed by Benjamin Lerer for CASSANDRA-13399
2017-05-02 16:12:10 -07:00
Marcus Eriksson 8dbf808c3d Merge branch 'cassandra-2.2' into cassandra-3.0 2017-04-26 09:38:34 +02:00
Marcus Eriksson bd540bc51f Fix NeverPurgeTest - wait for compactions to finish
Patch by marcuse; reviewed by Stefania for CASSANDRA-12841
2017-04-26 09:36:32 +02:00
Alex Petrov b063b38f33 Merge branch 'cassandra-2.2' into cassandra-3.0 2017-04-20 11:44:58 +02:00
Alex Petrov 31590f5da1 Avoid starting gossiper in RemoveTest
Patch by Alex Petrov; reviewed by Joel Knighton for CASSANDRA-13407
2017-04-20 11:40:53 +02:00
Alex Petrov e5c2a1839f Avoid name clashes in CassandraIndexTest
Patch by Alex Petrov; reviewed by Andrés de la Peña for CASSANDRA-13427
2017-04-20 11:26:25 +02:00
Alex Petrov 5e130209d3 Make reading of range tombstones more reliable
Patch by Alex Petrov; reviewed by Benjamin Lerer for CASSANDRA-12811
2017-04-10 09:38:30 +02:00
Benjamin Lerer 833c993b8e Merge branch cassandra-2.2 into cassandra-3.0 2017-04-07 11:39:41 +02:00
Benjamin Lerer 194329d3c3 Merge branch cassandra-2.1 into cassandra-2.2 2017-04-07 11:32:12 +02:00
Andrés de la Peña 64d8a1d9fd Fix 2ndary index queries on partition keys for tables with static columns
patch by Andrés de la Peña; reviewed by Benjamin Lerer for CASSANDRA-13147
2017-04-07 11:15:54 +02:00
T Jake Luciani 2f1ab4a424 Avoid filtering sstables based on generation when ViewBuilder restarts
Patch by tjake; reviewed by Paulo Motta for CASSANDRA-13405
2017-04-04 12:45:52 -04:00
Andrés de la Peña 828ca7cc92 Fix 2i page size calculation when there are no regular columns
patch by Andrés de la Peña; reviewed by Benjamin Lerer for CASSANDRA-13400
2017-04-04 14:23:19 +02:00
Marcus Eriksson ac1b7c17db Merge branch 'cassandra-2.2' into cassandra-3.0 2017-04-03 08:33:48 +02:00
Marcus Eriksson e5a5fb96c3 Use explicit timestamp to avoid getting sstables in different windows
Patch by marcuse; reviewed by yukim for CASSANDRA-12825
2017-04-03 08:32:13 +02:00
Stefania Alborghetti 849f8cd616 Fix possible NPE on upgrade to 3.0/3.X in case of IO errors
patch by Stefania Alborghetti; reviewed by Alex Petrov for CASSANDRA-13389
2017-03-30 09:05:34 +08:00
Sylvain Lebresne 451fe9d8ac Legacy deserializer can create empty range tombstones
patch by Sylvain Lebresne; reviewed by Branimir Lambov for CASSANDRA-13341
2017-03-29 13:17:58 +02:00
Jeff Jirsa 6edc268247 Legacy caching options can prevent 3.0 upgrade
Patch by Jeff Jirsa; Reviewed by Jeremiah Jordan for CASSANDRA-13384
2017-03-28 17:28:01 -07:00
Benjamin Lerer 9b8692c6a4 Use the Kernel32 library to retrieve the PID on Windows and fix startup checks
patch by Benjamin Lerer; reviewed by Michael Kjellman for CASSANDRA-13333
2017-03-28 16:17:10 +02:00
Sylvain Lebresne 5262bb17b4 Dropping column results in "corrupt" SSTable
patch by Sylvain Lebresne; reviewed by Alex Petrov for CASSANDRA-13337
2017-03-27 11:58:32 +02:00
Sylvain Lebresne f53e502c3c Bugs handling range tombstones in the sstable iterators
patch by Sylvain Lebresne; reviewed by Branimir Lambov for CASSANDRA-13340
2017-03-23 17:04:07 +01:00
Mikkel Andersen 0eebc6e6b7 Fix CONTAINS filtering for null collections
patch by Mikkel Andersen; reviewed by Benjamin Lerer for CASSANDRA-13246
2017-03-20 12:22:40 +01:00
Alex Petrov 1dcb3131a4 Use a unique metric reservoir per test run when using Cassandra-wide metrics residing in MBeans
Patch by Alex Petrov; reviewed by Michael Kjellman for CASSANDRA-13216.
2017-03-17 15:26:14 -07:00
Jeff Jirsa 44f79bf2f7 Merge branch 'cassandra-2.2' into cassandra-3.0 2017-03-12 21:56:00 -07:00
Jeff Jirsa beb9658dd5 Commitlog replay may fail if last mutation is within 4 bytes of end of segment
Patch by Jeff Jirsa; Reviewed by Branimir Lambov for CASSANDRA-13282
2017-03-12 21:54:04 -07:00
Benjamin Lerer aeca1d2bd8 Merge branch cassandra-2.2 into cassandra-3.0 2017-03-10 10:02:21 +01:00
Benjamin Lerer 5ef8a8b408 Fix queries updating multiple time the same list
patch by Benjamin Lerer; reviewed by Sylvain Lebresne for CASSANDRA-13130
2017-03-10 09:57:20 +01:00
Sylvain Lebresne 31dec3d548 Slice.isEmpty() returns false for some empty slices
patch by Sylvain Lebresne; reviewed by Branimir Lambov for CASSANDRA-13305
2017-03-09 11:58:40 +01:00
Alex Petrov 60d3292b04 Add a formatted row output to assertEmpty in CQL Tester
Patch by Alex Petrov; reviewed by Jason Brown for CASSANDRA-13238
2017-03-08 17:58:46 +01:00
Stefania Alborghetti 1ba68a1e5d Prevent data loss on upgrade 2.1 - 3.0 by adding component separator to LogRecord absolute path
patch by Stefania Alborghetti; reviewed by Marcus Eriksson for CASSANDRA-13294
2017-03-06 10:32:32 +08:00
Jason Brown 77d45ea53e Merge branch 'cassandra-2.2' into cassandra-3.0 2017-03-04 15:38:20 -08:00
Michael Kjellman 44fefeffa5 org.apache.cassandra.db.DirectoriesTest(testStandardDirs) unit test failing
patch by mkjellman, reviewed by jasobrown for CASSANDRA-13231
2017-03-04 15:37:19 -08:00
Michael Kjellman e3968cfd1e Improve testing on macOS by eliminating sigar logging
patch by mkjellman, reviewed by jasobrown for CASSANDRA-13233
2017-03-03 11:15:52 -08:00
Jeff Jirsa adbe2cc4df Test fixes for CASSANDRA-13038
Patch by Jeff Jirsa; Reviewed by Joel Knighton for CASSANDRA-13038
2017-03-02 09:42:38 -08:00
Jeff Jirsa a5ce963117 Faster streaming histograms
In ttl-heavy use cases (especially tables with default time to live set), the
streaming histograms calculated during compaction and streaming are very inefficient.

This patch addresses that in two ways:
1) It creates a system property -Dcassandra.streaminghistogram.roundseconds=60,
and rounds all histograms to the next highest multiple of that value, and
2) Rather than maintaining a histogram of 100 bins that have to be merged
on every new value, we keep a temporary spool of 100000 bins, and merge
down to the 100 bin final histogram only when the temporary spool overflows.

Patch by Jeff Jirsa; Reviewed by Nate McCall for CASSANDRA-13038
2017-02-27 17:21:48 -08:00
Sylvain Lebresne ab71748495 Legacy deserializer can create unexpected boundary range tombstones
patch by Sylvain Lebresne; reviewed by Branimir Lambov for CASSANDRA-13237
2017-02-23 14:32:34 +01: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
Jay Zhuang 51796ea634 Remove unnecessary assertion from AntiCompactionTest
patch by Jay Zhuang; reviewed by yukim for CASSANDRA-13070
2017-02-23 10:08:37 +09:00
Sam Tunnicliffe 0020e79f8e Merge branch 'cassandra-2.2' into cassandra-3.0 2017-02-20 12:00:25 +00:00
Sam Tunnicliffe 3f45010774 Fix ColumnCounter::countAll behaviour for reverse queries
Patch by Sam Tunnicliffe; reviewed by Jason Brown for CASSANDRA-13222
2017-02-20 11:43:52 +00:00
Ariel Weisberg 3d01e90615 Merge branch 'cassandra-2.2' into cassandra-3.0 2017-02-13 13:23:39 -05:00
Corentin Chary 5725e2c422 Coalescing strategies improvements CASSANDRA-13090
With the previous code TIMEHORIZON and MOVINGAVERAGE
coalesing strategy would wait even when the backlog
still contains data which would make it grow even more.

Also:
- cleanups parkLoop()
- add otc_coalescing_max_coalesced_messages
- add otc_coalescing_enough_coalesced_messages
- add other otc_* settings to cassandra.yaml

patch by Corentin Chary <c.chary@criteo.com> reviewed by Ariel Weisberg <aweisberg@apple.com> for CASSANDRA-13090
2017-02-13 12:58:29 -05:00
Jay Zhuang 3a570d744e Add vm.max_map_count StartupCheck
patch by Jay Zhuang; reviewed by Stefania Alborghetti for CASSANDRA-13008
2017-02-13 10:57:30 +00:00
Jeff Jirsa 51e3660c77 Merge branch 'cassandra-2.2' into cassandra-3.0 2017-02-11 23:29:11 -08:00
Per Otterstrom 7e05f393f3 Fix negative mean latency metric
Patch by Per Otterstrom; Reviewed by Chris Lohfink for CASSANDRA-12876
2017-02-11 23:28:35 -08:00