Paulo Motta
1c3ff9242a
Invalidate row/counter cache after stream receive task is completed
...
patch by Paulo Motta; reviewed by yukim for CASSANDRA-10341
2015-11-11 15:52:37 -06:00
Joshua McKenzie
7d6dbf897c
Merge branch 'cassandra-3.1' into trunk
2015-11-11 15:06:23 -05:00
Stefania Alborghetti
9a90e9894e
10089 - 3.0 patch
2015-11-11 15:05:35 -05:00
Stefania Alborghetti
6bb6bb0051
10089 - 2.2 patch
2015-11-11 15:04:25 -05:00
Stefania Alborghetti
6bad57fc3c
Fix NPE in Gossip handleStateNormal
...
Patch by stefania; reviewed by jknighton for CASSANDRA-10089
2015-11-11 15:02:26 -05:00
Marcus Eriksson
55811e5610
Merge branch 'cassandra-3.1' into trunk
2015-11-11 08:56:12 +01:00
Marcus Eriksson
49c9c01f5b
Keep the file open in trySkipCache
...
Patch by marcuse; reviewed by Stefania Alborghetti for CASSANDRA-10669
2015-11-11 08:52:28 +01:00
Aleksey Yeschenko
3ea35bda6e
Merge branch 'cassandra-3.1' into trunk
2015-11-10 14:43:04 +00:00
Aleksey Yeschenko
d766f4fb20
Fix CQLSSTableWriterTest
2015-11-10 14:42:01 +00:00
Aleksey Yeschenko
41c69ac556
Merge branch 'cassandra-3.1' into trunk
2015-11-10 13:47:27 +00:00
Aleksey Yeschenko
1e64a9d036
Merge branch 'cassandra-2.2' into cassandra-3.0
2015-11-10 13:46:21 +00:00
Aleksey Yeschenko
ef0e447add
Merge branch 'cassandra-2.1' into cassandra-2.2
2015-11-10 13:44:49 +00:00
Paulo Motta
3674ad9dab
Reject counter writes in CQLSSTableWriter
...
patch by Paulo Motta; reviewed by Aleksey Yeschenko for CASSANDRA-10258
2015-11-10 13:41:01 +00:00
Aleksey Yeschenko
48b685e852
Revert "Simplify row cache invalidation code"
...
This reverts commit d867ac1f41 .
2015-11-09 20:15:44 +00:00
Jonathan Ellis
d867ac1f41
Simplify row cache invalidation code
...
patch by Jonathan Ellis; reviewed by Aleksey Yeschenko for
CASSANDRA-10396
2015-11-09 20:05:32 +00:00
T Jake Luciani
be01d8eb8f
Merge branch 'cassandra-3.0' into trunk
2015-11-06 14:33:29 -05:00
Tyler Hobbs
2998bb3cc4
Fix AssertionError while flushing memtable due to materialized views incorrectly inserting empty rows
...
Patch by thobbs; reviewed by tjake for CASSANDRA-10614
2015-11-06 14:32:51 -05:00
Aleksey Yeschenko
59a32211a0
Merge branch 'cassandra-2.1' into cassandra-2.2
2015-11-06 19:21:28 +00:00
Paulo Motta
ff9b6bb973
Improve json2sstable error reporting on nonexistent columns
...
patch by Paulo Motta; reviewed by Ariel Weisberg for CASSANDRA-10401
2015-11-06 19:19:13 +00:00
Robert Stupp
fb9e75eb32
Merge branch 'cassandra-3.0' into trunk
2015-11-06 18:28:51 +01:00
Robert Stupp
e94032a234
Store UDA initcond as CQL literal in the schema table, instead of a blob
...
patch by Robert Stupp; reviewed by Aleksey Yeschenko for CASSANDRA-10650
2015-11-06 18:28:48 +01:00
Sylvain Lebresne
9084428782
Merge branch 'cassandra-3.0' into trunk
2015-11-06 15:03:52 +01:00
Sylvain Lebresne
5343a75bf5
Don't use -1 as position for partition key in schema
...
patch by slebresne; reviewed by beobal for CASSANDRA-10491
2015-11-06 15:00:20 +01:00
Robert Stupp
155859641a
Merge branch 'cassandra-3.0' into trunk
2015-11-06 14:56:45 +01:00
Robert Stupp
0b83c188b9
Make UFTest.testAmokUDF non-flappy
...
patch by Robert Stupp; reviewed by Sylvain Lebresne for CASSANDRA-10662
2015-11-06 14:56:26 +01:00
Robert Stupp
a38f362a04
Merge branch 'cassandra-3.0' into trunk
2015-11-05 18:42:13 +01:00
Robert Stupp
5289a564cf
Fix failing DeleteTest
...
patch by Robert Stupp; reviewed by Aleksey Yeschenko for CASSANDRA-10656
2015-11-05 18:42:02 +01:00
Aleksey Yeschenko
1b876bc600
Merge branch 'cassandra-3.0' into trunk
2015-11-04 17:08:43 +00:00
Aleksey Yeschenko
340df43fb7
Use CQL type names in schema metadata tables
...
patch by Aleksey Yeschenko; reviewed by Sylvain Lebresne for
CASSANDRA-10365
2015-11-04 17:06:07 +00:00
Aleksey Yeschenko
81e1b15dbd
Merge branch 'cassandra-3.0' into trunk
2015-11-04 13:13:32 +00:00
Branimir Lambov
1492be07cd
Guard batchlog replay against integer division by zero
...
patch by Branimir Lambov; reviewed by Stefania Alborghetti for
CASSANDRA-9223
2015-11-04 13:12:59 +00:00
Sylvain Lebresne
b40527fcc7
Merge branch 'cassandra-3.0' into trunk
2015-11-04 11:49:22 +01:00
Sylvain Lebresne
c0c955537b
Remove fully commented (and obsolete) test file (as it bothers CI)
2015-11-04 11:49:07 +01:00
Sylvain Lebresne
5a1d6553e6
Merge branch 'cassandra-3.0' into trunk
2015-11-04 11:40:56 +01:00
Mike Adamson
2c9976150f
Check for primary key columns in decodeCellName
...
patch by mike_tr_adamson; reviewed by slebresne for CASSANDRA-10608
2015-11-04 11:39:02 +01:00
Benedict Elliott Smith
663cd43ab1
Merge branch 'cassandra-3.0' into trunk
2015-11-02 19:46:27 +00:00
Benedict Elliott Smith
fd59549a39
comment out NativeCellTest, since we don't support it in 3.0
2015-11-02 19:46:19 +00:00
Benedict Elliott Smith
fbdeef836a
Merge branch 'cassandra-3.0' into trunk
2015-11-02 18:59:35 +00:00
Benedict Elliott Smith
79f230f30d
Merge branch 'cassandra-2.2' into cassandra-3.0
...
Conflicts:
src/java/org/apache/cassandra/utils/btree/TreeBuilder.java
test/unit/org/apache/cassandra/db/NativeCellTest.java
2015-11-02 18:59:24 +00:00
Benedict Elliott Smith
82aa7969c1
Merge branch 'cassandra-2.1' into cassandra-2.2
...
Conflicts:
src/java/org/apache/cassandra/utils/btree/NodeBuilder.java
2015-11-02 18:57:37 +00:00
Benedict Elliott Smith
986a1a7694
10579: fix NativeCell behaviour when clustering components > 32K in size
2015-11-02 16:40:35 +00:00
Sylvain Lebresne
b1f2d14f44
Merge branch 'cassandra-3.0' into trunk
2015-11-02 15:16:57 +01:00
Sylvain Lebresne
4beb54da50
Don't use the timestamp ordered path for name queries with counters/collections
...
patch by slebresne; reviewed by iamaleksey for CASSANDRA-10572
Name queries usually query sstable sequentially in recency order in the
hope of only needing the more recent sstable(s). We cannot ever save
sstable that way for counters and collections however.
The patch makes name queries with either counters or collections use the
more generic path of looking at all sstables simultaneously. For that,
the patch remove the sublcasses of SinglePartitionReadCommand: those
classes were mostly justified by having name and slice queries using
different path, but it's not fully the case anymore. Both path
(timestamp ordered and all sstable simultaneously) are moved to
SinglePartitionReadCommand and used when relevant.
This actually fix a bug with counters since those were previously using
the timestamp ordered path and were potentially skipping older sstable
which is incorrect.
2015-11-02 15:11:08 +01:00
Sam Tunnicliffe
ca8e9a97b6
Merge branch 'cassandra-2.1' into cassandra-2.2
2015-10-29 10:50:45 +00:00
Andrés de la Peña
7f1fec1908
Add validation method to PerRowSecondaryIndex
...
Patch by Andrés de la Peña; reviewed by Sam Tunnicliffe for
CASSANDRA-10092
2015-10-29 10:49:19 +00:00
Sam Tunnicliffe
a88d3e8962
Merge branch 'cassandra-3.0' into trunk
2015-10-28 17:26:43 +00:00
Sam Tunnicliffe
8210075c57
On CFS::reload, execute the reload task for each secondary index
...
Patch by Sam Tunnicliffe; reviewed by Tyler Hobbs for CASSANDRA-10604
2015-10-28 17:23:57 +00:00
Benjamin Lerer
a4fe865d4f
Merge branch cassandra-3.0 into trunk
2015-10-28 17:47:33 +01:00
Benjamin Lerer
3615da5831
Fix PartitionUpdate.operationCount()for updates with static column
...
patch by Benjamin Lerer; reviewed by Sylvain Lebresne for CASSANDRA-10606
2015-10-28 17:41:03 +01:00
Sam Tunnicliffe
7297b3ca22
Merge branch 'cassandra-3.0' into trunk
2015-10-28 11:37:08 +00:00
Sam Tunnicliffe
13e9fd55ff
Correctly mark indexes built/removed when rebuilding
...
Patch by Sam Tunnicliffe; reviewed by Benjamin Lerer for CASSANDRA-10601
2015-10-28 11:36:44 +00:00
Sam Tunnicliffe
81183d6e2f
Merge branch 'cassandra-3.0' into trunk
2015-10-28 09:41:01 +00:00
Sam Tunnicliffe
5bc3c4b6d5
Secondary indexes which aren't registered are not initialized
...
This commit also removes Index::getIndexName in favour of accessing
IndexMetadata.name directly
Patch by Sam Tunnicliffe; reviewed by Sergio Bossa for CASSANDRA-10595
2015-10-28 09:38:43 +00:00
Marcus Eriksson
5995de3b63
Merge branch 'cassandra-3.0' into trunk
2015-10-28 09:06:01 +01:00
Marcus Eriksson
27ca4915e9
Merge branch 'cassandra-2.2' into cassandra-3.0
2015-10-28 09:04:30 +01:00
Marcus Eriksson
5a356a7063
Merge branch 'cassandra-2.1' into cassandra-2.2
2015-10-28 08:50:44 +01:00
Marcus Eriksson
cedcf07c54
Do size tiered compaction in date tiered compaction windows
...
Patch by marcuse; reviewed by Jeff Jirsa for CASSANDRA-10276
2015-10-28 08:40:12 +01:00
Sylvain Lebresne
d3617a347d
Merge branch 'cassandra-3.0' into trunk
2015-10-27 13:55:21 +01:00
Sylvain Lebresne
f901a74c88
Keep columns for different tables separated in BatchStatement
...
patch by slebresne; reviewed by blambov for CASSANDRA-10554
2015-10-27 13:54:50 +01:00
Jaebin Lee
c0f2dc5d3d
Fix build, change to ASCII char
...
Patch by Jaebin Lee; reviewed by Robert Stupp for CASSANDRA-10597
2015-10-27 12:29:35 +01:00
Benedict Elliott Smith
928e4c28c6
Merge branch 'cassandra-3.0' into trunk
...
Conflicts:
src/java/org/apache/cassandra/service/pager/AbstractQueryPager.java
src/java/org/apache/cassandra/service/pager/MultiPartitionPager.java
src/java/org/apache/cassandra/service/pager/QueryPager.java
2015-10-26 21:08:07 +00:00
Benedict Elliott Smith
6094974714
9975: Flatten Iterator Transformation Hierarchy
...
To improve clarity of control flow, all iterator transformations
are applied via a single class that manages an explicit stack of
named transformation objects.
patch by benedict; reviewed by branimir for CASSANDRA-9975
2015-10-26 20:59:06 +00:00
Joshua McKenzie
3a2dd0cf60
Merge branch 'cassandra-3.0' into trunk
2015-10-23 17:43:32 -04:00
Stefania Alborghetti
73781a9a49
Fix potential issue with LogTransaction only checking single dir for files
...
Patch by stefania; reviewed by aweisberg for CASSANDRA-10421
2015-10-23 17:40:46 -04:00
Robert Stupp
71d9dba063
Merge branch 'cassandra-3.0' into trunk
2015-10-23 14:44:32 +02:00
Norman Maurer
535c3ac759
Support encrypted and plain traffic on the same port
...
patch by Norman Maurer; reviewed by Robert Stupp for CASSANDRA-10559
2015-10-23 14:44:18 +02:00
Yuki Morishita
04fa645743
Merge branch 'cassandra-3.0' into trunk
2015-10-22 09:47:29 -05:00
Yuki Morishita
079890579b
Make ScrubTest pass
...
patch by yukim; reviewed by slebresne for CASSANDRA-10558
2015-10-22 09:44:01 -05:00
Sylvain Lebresne
05eb6022c3
Merge branch 'cassandra-3.0' into trunk
2015-10-21 15:38:14 +02:00
Blake Eggleston
c0a1cce4c8
Truncate cfs between SinglePartitionSliceCommandTest tests
...
patch by bdeggleston; reviewed by slebresne for CASSANDRA-10336
2015-10-21 15:37:10 +02:00
Robert Stupp
f8fa3a4271
Merge branch 'cassandra-3.0' into trunk
2015-10-20 17:45:43 +02:00
Robert Stupp
615945d275
Aggregate with Initial Condition fails with C* 3.0
...
patch by Robert Stupp; reviewed by Sylvain Lebresne for CASSANDRA-10367
2015-10-20 17:45:30 +02:00
Jeff Jirsa
881e2da0a4
Fix ReadCommandTest
...
Patch by jjirsa; reviewed by stefania for CASSANDRA-10555
2015-10-20 11:32:52 -04:00
blerer
fcdc4e1d70
Merge branch cassandra-3.0 into trunk
2015-10-20 14:12:41 +02:00
blerer
a880739187
Merge branch cassandra-2.2 into cassandra-3.0
2015-10-20 14:10:15 +02:00
blerer
a33790730a
Merge branch cassandra-2.1 into cassandra-2.2
...
Conflicts:
CHANGES.txt
src/java/org/apache/cassandra/cql3/statements/ModificationStatement.java
2015-10-20 14:06:45 +02:00
blerer
9b3b1cb03c
Fix conditions on static columns
...
patch by Benjamin Lerer; reviewed by Sylvain Lebresne for CASSANDRA-10264
2015-10-20 13:54:46 +02:00
Sam Tunnicliffe
dec76593f9
Merge branch 'cassandra-3.0' into trunk
2015-10-16 20:24:47 +01:00
Sam Tunnicliffe
bc89bc66cb
Partially revert #9839 to remove reference loop
...
Patch by Sam Tunnicliffe; reviewed by Benedict Elliot Smith for
CASSANDRA-10543
2015-10-16 20:19:37 +01:00
Sam Tunnicliffe
09c94a667a
Merge branch 'cassandra-3.0' into trunk
2015-10-16 18:01:11 +01:00
Sam Tunnicliffe
aad3ae2cbe
Ensure indexed values are only validated once per partition
...
Patch by Sam Tunnicliffe; reviewed by Aleksey Yeschenko for
CASSANDRA-10536
2015-10-16 17:59:51 +01:00
Sylvain Lebresne
89293efc7d
Update current format sstables for LegacySSTableTest
2015-10-16 17:18:45 +02:00
Sylvain Lebresne
4034dc904e
Merge branch 'cassandra-3.0' into trunk
2015-10-16 14:58:21 +02:00
Sylvain Lebresne
d413ddff8b
Followup to CASSANDRA-10468: fix reverse case and add unit test
...
patch by slebresne; reviewed by blerer for CASSANDRA-10468
2015-10-16 14:57:32 +02:00
blerer
737a3385ce
Merge branch cassandra-3.0 into trunk
2015-10-16 14:51:54 +02:00
blerer
1b93eb403b
Merge branch cassandra-2.2 into cassandra-3.0
2015-10-16 14:48:12 +02:00
blerer
f497c13ee3
Merge branch cassandra-2.1 into cassandra-2.2
2015-10-16 14:45:08 +02:00
blerer
f587397c9c
Fix sorting for queries with an IN condition on partition key columns
...
patch by Benjamin Lerer; reviewed by Sam Tunnicliffe for CASSANDRA-10363
2015-10-16 14:41:54 +02:00
Aleksey Yeschenko
6f2b855c6e
Merge branch 'cassandra-3.0' into trunk
2015-10-16 13:29:30 +01:00
Aleksey Yeschenko
56cfc6ea35
Remove Pig support
...
patch by Aleksey Yeschenko; reviewed by Sylvain Lebresne for
CASSANDRA-10542
2015-10-16 13:23:20 +01:00
Marcus Eriksson
3b7ccdfb15
Merge branch 'cassandra-2.1' into cassandra-2.2
...
Conflicts:
CHANGES.txt
2015-10-15 15:33:29 +02:00
Branimir Lambov
a61fc01f41
Skip redundant tombstones on compaction.
...
Patch by Branimir Lambov; reviewed by marcuse for CASSANDRA-7953
2015-10-15 15:28:42 +02:00
Aleksey Yeschenko
1b23b2a1ca
Merge branch 'cassandra-3.0' into trunk
2015-10-14 16:49:16 +01:00
Ariel Weisberg
0556fbfa59
Fix TeeingAppender causing some logs to be truncated/empty
...
patch by Ariel Weisberg; reviewed by Paulo Motta for CASSANDRA-10447
2015-10-14 16:48:52 +01:00
Sylvain Lebresne
8644338fc8
Merge branch 'cassandra-3.0' into trunk
...
Conflicts:
CHANGES.txt
2015-10-13 11:04:28 +02:00
Jeff Jirsa
dc61fa6cff
When more than one table exists, be sure the MV base table matches query table
...
patch by jjirsa; reviewed by carlyeks for CASSANDRA-10503
2015-10-13 11:00:16 +02:00
blerer
d8994896c5
Merge branch cassandra-3.0 into trunk
2015-10-12 21:44:45 +02:00
blerer
fce444f683
Merge branch cassandra-2.2 into cassandra-3.0
2015-10-12 21:40:55 +02:00
blerer
20c0acc149
Fix regression in select count with limit
...
patch by Benjamin Lerer; reviewed by Sylvain Lebresne for CASSANDRA-10487
2015-10-12 21:37:06 +02:00
Benedict Elliott Smith
4acc3a69d3
ninja comment out broken test line in MmappedFileDataInputTest
2015-10-12 15:13:09 +01:00
Benedict Elliott Smith
352928467b
Merge branch 'cassandra-2.1' into cassandra-2.2
...
Conflicts:
CHANGES.txt
2015-10-10 09:22:46 +01:00
Benedict Elliott Smith
f87e34ed3c
Fix seeking to end of mmap segment
...
patch by benedict; reviewed by jake for CASSANDRA-10478
2015-10-10 09:20:16 +01:00
Sylvain Lebresne
e8d8941cc8
Merge branch 'cassandra-3.0' into trunk
2015-10-09 18:07:18 +02:00
Sylvain Lebresne
6584331c88
Add row size to sstable format for faster skipping
...
patch by slebresne; reviewed by benedict for CASSANDRA-10378
2015-10-09 18:07:01 +02:00
Sylvain Lebresne
f8358b8ea7
Merge branch 'cassandra-3.0' into trunk
2015-10-09 14:58:54 +02:00
Sylvain Lebresne
028c3f779f
Merge branch 'cassandra-2.2' into cassandra-3.0
...
Conflicts:
test/unit/org/apache/cassandra/db/KeyCacheTest.java
2015-10-09 14:58:40 +02:00
Sylvain Lebresne
3573faf49e
Merge fixup
2015-10-09 14:49:34 +02:00
Sylvain Lebresne
757dac9c0e
Merge branch 'cassandra-2.1' into cassandra-2.2
2015-10-09 14:01:54 +02:00
Sylvain Lebresne
94b6471b93
Add Branimir's test from CASSANDRA-10219
2015-10-09 14:00:30 +02:00
Sam Tunnicliffe
38d1fced1a
Merge branch 'cassandra-3.0' into trunk
2015-10-09 11:37:05 +01:00
Sam Tunnicliffe
cf365e3021
Fix bug in schema conversion of index options to thrift format
...
Patch by Sam Tunnicliffe; reviewed by Sylvain Lebresne for
CASSANDRA-10483
2015-10-09 11:28:39 +01:00
Robert Stupp
f5b3962a78
Merge branch 'cassandra-3.0' into trunk
2015-10-08 20:45:50 +02:00
Robert Stupp
e1eed527f8
Problem upgrading to 3.0 with UDA
...
patch by Robert Stupp; reviewed by Aleksey Yeschenko for CASSANDRA-10434
2015-10-08 20:45:29 +02:00
Sylvain Lebresne
9515fca769
Merge branch 'cassandra-3.0' into trunk
2015-10-08 12:07:04 +02:00
Carl Yeksigian
d76d3a5d59
Validate ALTER for involved views as well as to the base table
...
patch by carlyeks; reviewed by slebresne for CASSANDRA-10424
2015-10-08 12:06:48 +02:00
Sam Tunnicliffe
7a7fb8e362
Merge branch 'cassandra-3.0' into trunk
2015-10-08 10:55:28 +01:00
Sam Tunnicliffe
4f4918f6ff
Only include modified column data in indexing delta
...
Patch by Sam Tunnicliffe; reviewed by Ariel Weisberg for CASSANDRA-10438
2015-10-08 10:34:59 +01:00
Yuki Morishita
3971452197
Merge branch 'cassandra-3.0' into trunk
2015-10-07 16:54:31 -05:00
Carl Yeksigian
9415c8460c
Do not load keyspace when creating sstable writer
...
patch by carlyeks; reviewed by yukim for CASSANDRA-10443
2015-10-07 16:53:55 -05:00
Branimir Lambov
127f7c5844
Clean resource usage warnings.
...
Patch by Branimir Lambov; reviewed by tjake for CASSANDRA-10385
2015-10-07 14:04:02 -04:00
Branimir Lambov
e77730179c
Clean resource usage warnings.
...
Patch by Branimir Lambov; reviewed by tjake for CASSANDRA-10385
2015-10-07 13:20:18 -04:00
Sylvain Lebresne
07782aa4a5
Merge branch 'cassandra-3.0' into trunk
2015-10-07 10:48:48 +02:00
Sylvain Lebresne
566799f567
Remove (unsupported) offheap_objects option
...
patch by slebresne; reviewed by aweisberg for CASSANDRA-10437
The 'objects offheap' allocator is currently not implemented for
Cassandra 3.0. The option will be re-introduced by CASSANDRA-9472
in a future release but in the meantime, the patch properly remove
the (now broken) option.
2015-10-07 10:45:40 +02:00
Stefania Alborghetti
557bbbccb0
Abort in-progress queries that time out
...
patch by Stefania; reviewed by aweisberg for CASSANDRA-7392
2015-10-07 10:28:37 +02:00
Sam Tunnicliffe
5860efa9ad
Merge branch 'cassandra-3.0' into trunk
2015-10-02 18:10:10 +01:00
Sam Tunnicliffe
5ffae4f45a
Custom index expression in SELECT forces index selection
...
Patch by Sam Tunnicliffe; reviewed by Sylvain Lebresne for
CASSANDRA-10436
2015-10-02 18:05:41 +01:00
Sam Tunnicliffe
e0dce5f856
Merge branch 'cassandra-3.0' into trunk
2015-10-02 17:06:38 +01:00
Sam Tunnicliffe
2d472370b4
Fix index selectivity comparison
...
Patch by Sam Tunnicliffe; reviewed by Sylvain Lebresne for
CASSANDRA-10435
2015-10-02 17:05:42 +01:00
Sylvain Lebresne
30e14a30da
Make CQLMetricsTest tests independent of each other
2015-10-02 17:53:40 +02:00
Sylvain Lebresne
2d991a7e4c
Minor optimizations
...
patch by slebresne; reviewed by blambov for CASSANDRA-10410
The patch includes the 3 minor optimizations desribed below:
1) Faster copy in CompositeType.build(). We call CompositeType.build()
relatively often when a table has a composite partition key. When
copying source buffers into the composite result in that method, we
can use our existing ByteBuffer.arrayCopy() method which is supposed
to be faster since it uses FastByteOperations and saves the
duplication of the buffer to copy
2) Faster UUID->ByteBuffer. We convert UUID to their ByteBuffer
representation in a few places and do that by converting the UUID to
a byte[] and then wrapping it. But our convertion of UUID to byte[]
writes the 2 long the UUID is composed of byte by byte, while for a
ByteBuffer we can easily just "put" both long. So the patch
introduces a specific method to do that. That's arguably cleaner
anyway.
3) Memoize hash value for DataResource. Every request does a hash map
lookup on a DataResource (for validating access rights) which imply
calling DataResource.hashCode(). Currently that uses
Objects.hashCode(), which is a varargs methods and allocate an array
(which, according to MissionControl seems to not be stack allocated).
The patch does 2 things: it computes the hash only once in the ctor
and it stores the DataResource for each table in the CFMetaData and
uses that when checking access permissions for SelectStatement and
ModificationStatement (the 2 statements where performance matters).
The 2nd point also saves some unecessary test that the table exists
when we actually know it does.
2015-10-02 15:51:07 +02:00
Tyler Hobbs
c3be5ab022
Merge branch 'cassandra-3.0' into trunk
2015-10-01 14:26:42 -05:00
Tyler Hobbs
5c2912d1ce
Flush system schema tables after local schema changes
...
Patch by Tyler Hobbs; reviewed by Aleksey Yeschenko for CASSANDRA-10429
2015-10-01 14:25:54 -05:00
Benedict Elliott Smith
5d38559908
Merge branch 'cassandra-3.0' into trunk
2015-09-30 19:57:02 +01:00
Benedict Elliott Smith
40f4daa367
Save space in WriteCallbackInfo (CASSANDRA-9833)
...
Performs decision to save hint mutation eagerly, and
saves only the mutation itself
patch by benedict; reviewed by branimir for CASSANDRA-9833
2015-09-30 19:56:49 +01:00
Benedict Elliott Smith
25de92e321
Merge branch 'cassandra-2.1' into cassandra-2.2
...
Conflicts:
src/java/org/apache/cassandra/io/sstable/SSTableSimpleUnsortedWriter.java
src/java/org/apache/cassandra/io/sstable/format/SSTableReader.java
src/java/org/apache/cassandra/io/util/MmappedSegmentedFile.java
2015-09-30 19:47:14 +01:00
Benedict Elliott Smith
c37562e345
Fix Mmapped File Boundaries
...
This patch fixes two bugs with mmap segment boundary
tracking, and introduces automated correction of
this bug on startup
patch by benedict; reviewed by tjake for CASSANDRA-10357
2015-09-30 19:45:49 +01:00
Robert Stupp
247bc2e67e
Merge branch 'cassandra-3.0' into trunk
2015-09-30 13:25:13 +02:00
Robert Stupp
3ae01ddcc0
UFPureScriptTest fails with pre-3.0 java-driver
...
patch by Robert Stupp; reviewed by Joshua McKenzie for CASSANDRA-10141
2015-09-30 13:24:55 +02:00
Joshua McKenzie
8765e6a869
Merge branch 'cassandra-3.0' into trunk
2015-09-29 12:14:46 -04:00
Joshua McKenzie
cf0b737f1f
Merge branch 'cassandra-2.2' into cassandra-3.0
2015-09-29 12:14:34 -04:00
Joshua McKenzie
a323641ef3
Merge branch 'cassandra-2.1' into cassandra-2.2
2015-09-29 12:14:18 -04:00
Paul Macintosh
39ab9e0524
Inspect cause and suppressed exceptions in JVMStabilityInspector
...
Patch by Paul Macintosh; reviewed by aweisberg for CASSANDRA-10228
2015-09-29 12:11:32 -04:00
blerer
56d81ac53b
Merge branch cassandra-3.0 into trunk
2015-09-22 20:53:18 +02:00
blerer
96eb58a0fb
Add a NEWS.txt entry about LIMIT behavior change and unit tests
...
patch by Benjamin Lerer; reviewed by Sylvain Lebresne for CASSANDRA-10380
2015-09-22 20:49:48 +02:00
Aleksey Yeschenko
4bb5976a7b
Merge branch 'cassandra-3.0' into trunk
2015-09-19 17:50:38 +01:00
Aleksey Yeschenko
cffa93c629
Set hints_directory in cassandra_pig.yaml
2015-09-19 17:50:06 +01:00
Tyler Hobbs
e44e21ce55
Merge branch 'cassandra-3.0' into trunk
2015-09-19 10:07:31 -05:00
Tyler Hobbs
5a4253b6a1
Allow MV's SELECT to restrict PK columns
...
Patch by Tyler Hobbs; reviewed by Sylvain Lebresne for CASSANDRA-9664
2015-09-19 10:06:45 -05:00
Sam Tunnicliffe
fe15e6c3c4
Merge branch 'cassandra-3.0' into trunk
2015-09-19 11:47:50 +01:00
Paulo Motta
e25453ba55
Moved crc_check_chance out of compression options
...
Patch by Paulo Motta; reviewed by Sam Tunnicliffe for CASSANDRA-9839
2015-09-19 11:38:55 +01:00