You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by ja...@apache.org on 2016/11/11 19:27:13 UTC

[1/8] cassandra git commit: Disallow offheap_buffers memtable allocation

Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 9ce74db48 -> d6a3ef486
  refs/heads/cassandra-3.X a394ba053 -> 9259a2a56
  refs/heads/trunk ad1203349 -> 1b91cd595


Disallow offheap_buffers memtable allocation

Patch by tjake; reviewed by Michael Shuler for CASSANDRA-11039


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9ce74db4
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9ce74db4
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9ce74db4

Branch: refs/heads/trunk
Commit: 9ce74db48b1e7fb8237d9a3bef1ee035594234dd
Parents: 304c47f
Author: T Jake Luciani <ja...@apache.org>
Authored: Fri Nov 11 11:37:16 2016 -0500
Committer: T Jake Luciani <ja...@apache.org>
Committed: Fri Nov 11 14:13:48 2016 -0500

----------------------------------------------------------------------
 CHANGES.txt                                                  | 7 ++-----
 NEWS.txt                                                     | 5 +++--
 src/java/org/apache/cassandra/config/DatabaseDescriptor.java | 8 +++++---
 3 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/9ce74db4/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 1b2b61f..36615ae 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,11 +1,7 @@
-3.0.11
+3.0.10
  * Fix CommitLogSegmentManagerTest (CASSANDRA-12283)
  * Pass root cause to CorruptBlockException when uncompression failed (CASSANDRA-12889)
  * Fix partition count log during compaction (CASSANDRA-12184)
-Merged from 2.2:
-* cqlsh COPY: unprotected pk values before converting them if not using prepared statements (CASSANDRA-12863)
-
-3.0.10
  * Batch with multiple conditional updates for the same partition causes AssertionError (CASSANDRA-12867)
  * Make AbstractReplicationStrategy extendable from outside its package (CASSANDRA-12788)
  * Fix CommitLogTest.testDeleteIfNotDirty (CASSANDRA-12854)
@@ -37,6 +33,7 @@ Merged from 2.2:
  * Correct log message for statistics of offheap memtable flush (CASSANDRA-12776)
  * Explicitly set locale for string validation (CASSANDRA-12541,CASSANDRA-12542,CASSANDRA-12543,CASSANDRA-12545)
 Merged from 2.2:
+ * cqlsh COPY: unprotected pk values before converting them if not using prepared statements (CASSANDRA-12863)
  * Fix Util.spinAssertEquals (CASSANDRA-12283)
  * Fix potential NPE for compactionstats (CASSANDRA-12462)
  * Prepare legacy authenticate statement if credentials table initialised after node startup (CASSANDRA-12813)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/9ce74db4/NEWS.txt
----------------------------------------------------------------------
diff --git a/NEWS.txt b/NEWS.txt
index 8f05c4b..eeb3ab6 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -18,8 +18,9 @@ using the provided 'sstableupgrade' tool.
 
 Upgrading
 ---------
-   - Nothing specific to this release, but please see previous versions upgrading section,
-     especially if you are upgrading from 2.2.
+   - memtable_allocation_type: offheap_buffers is no longer allowed to be specified in the 3.0 series.
+     This was an oversight that can cause segfaults. Offheap was re-introduced in 3.4 see CASSANDRA-11039
+     and CASSANDRA-9472 for details.
 
 3.0.9
 =====

http://git-wip-us.apache.org/repos/asf/cassandra/blob/9ce74db4/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/config/DatabaseDescriptor.java b/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
index 7b32a34..24b3c00 100644
--- a/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
+++ b/src/java/org/apache/cassandra/config/DatabaseDescriptor.java
@@ -1878,13 +1878,15 @@ public class DatabaseDescriptor
             case heap_buffers:
                 return new SlabPool(heapLimit, 0, conf.memtable_cleanup_threshold, new ColumnFamilyStore.FlushLargestColumnFamily());
             case offheap_buffers:
-                if (!FileUtils.isCleanerAvailable())
+                throw new ConfigurationException("offheap_buffers are not available in 3.0. They will be re-introduced in a future release, see https://issues.apache.org/jira/browse/CASSANDRA-9472 for details");
+
+                /*if (!FileUtils.isCleanerAvailable())
                 {
                     throw new IllegalStateException("Could not free direct byte buffer: offheap_buffers is not a safe memtable_allocation_type without this ability, please adjust your config. This feature is only guaranteed to work on an Oracle JVM. Refusing to start.");
                 }
-                return new SlabPool(heapLimit, offHeapLimit, conf.memtable_cleanup_threshold, new ColumnFamilyStore.FlushLargestColumnFamily());
+                return new SlabPool(heapLimit, offHeapLimit, conf.memtable_cleanup_threshold, new ColumnFamilyStore.FlushLargestColumnFamily());*/
             case offheap_objects:
-                throw new ConfigurationException("offheap_objects are not available in 3.0. They should be re-introduced in a future release, see https://issues.apache.org/jira/browse/CASSANDRA-9472 for details");
+                throw new ConfigurationException("offheap_objects are not available in 3.0. They will be re-introduced in a future release, see https://issues.apache.org/jira/browse/CASSANDRA-9472 for details");
                 // return new NativePool(heapLimit, offHeapLimit, conf.memtable_cleanup_threshold, new ColumnFamilyStore.FlushLargestColumnFamily());
             default:
                 throw new AssertionError();


[8/8] cassandra git commit: Merge branch 'cassandra-3.X' into trunk

Posted by ja...@apache.org.
Merge branch 'cassandra-3.X' into trunk


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/1b91cd59
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/1b91cd59
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/1b91cd59

Branch: refs/heads/trunk
Commit: 1b91cd595c4f79c6c3c294f78867fe213b50a960
Parents: ad12033 9259a2a
Author: T Jake Luciani <ja...@apache.org>
Authored: Fri Nov 11 14:26:54 2016 -0500
Committer: T Jake Luciani <ja...@apache.org>
Committed: Fri Nov 11 14:26:54 2016 -0500

----------------------------------------------------------------------

----------------------------------------------------------------------



[4/8] cassandra git commit: Add issue to changelog

Posted by ja...@apache.org.
Add issue to changelog


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d6a3ef48
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d6a3ef48
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d6a3ef48

Branch: refs/heads/trunk
Commit: d6a3ef4863142c3f9fc1def911f28341fc78f2e8
Parents: 9ce74db
Author: T Jake Luciani <ja...@apache.org>
Authored: Fri Nov 11 14:26:07 2016 -0500
Committer: T Jake Luciani <ja...@apache.org>
Committed: Fri Nov 11 14:26:07 2016 -0500

----------------------------------------------------------------------
 CHANGES.txt | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d6a3ef48/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 36615ae..eb53d02 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.10
+ * Disallow offheap_buffers memtable allocation (CASSANDRA-11039)
  * Fix CommitLogSegmentManagerTest (CASSANDRA-12283)
  * Pass root cause to CorruptBlockException when uncompression failed (CASSANDRA-12889)
  * Fix partition count log during compaction (CASSANDRA-12184)


[6/8] cassandra git commit: Merge branch 'cassandra-3.0' into cassandra-3.X

Posted by ja...@apache.org.
Merge branch 'cassandra-3.0' into cassandra-3.X


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9259a2a5
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9259a2a5
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9259a2a5

Branch: refs/heads/trunk
Commit: 9259a2a5683614b17a0396c5630e968a42a44931
Parents: a394ba0 d6a3ef4
Author: T Jake Luciani <ja...@apache.org>
Authored: Fri Nov 11 14:26:35 2016 -0500
Committer: T Jake Luciani <ja...@apache.org>
Committed: Fri Nov 11 14:26:35 2016 -0500

----------------------------------------------------------------------

----------------------------------------------------------------------



[7/8] cassandra git commit: Merge branch 'cassandra-3.0' into cassandra-3.X

Posted by ja...@apache.org.
Merge branch 'cassandra-3.0' into cassandra-3.X


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/9259a2a5
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/9259a2a5
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/9259a2a5

Branch: refs/heads/cassandra-3.X
Commit: 9259a2a5683614b17a0396c5630e968a42a44931
Parents: a394ba0 d6a3ef4
Author: T Jake Luciani <ja...@apache.org>
Authored: Fri Nov 11 14:26:35 2016 -0500
Committer: T Jake Luciani <ja...@apache.org>
Committed: Fri Nov 11 14:26:35 2016 -0500

----------------------------------------------------------------------

----------------------------------------------------------------------



[5/8] cassandra git commit: Add issue to changelog

Posted by ja...@apache.org.
Add issue to changelog


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d6a3ef48
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d6a3ef48
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d6a3ef48

Branch: refs/heads/cassandra-3.X
Commit: d6a3ef4863142c3f9fc1def911f28341fc78f2e8
Parents: 9ce74db
Author: T Jake Luciani <ja...@apache.org>
Authored: Fri Nov 11 14:26:07 2016 -0500
Committer: T Jake Luciani <ja...@apache.org>
Committed: Fri Nov 11 14:26:07 2016 -0500

----------------------------------------------------------------------
 CHANGES.txt | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d6a3ef48/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 36615ae..eb53d02 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.10
+ * Disallow offheap_buffers memtable allocation (CASSANDRA-11039)
  * Fix CommitLogSegmentManagerTest (CASSANDRA-12283)
  * Pass root cause to CorruptBlockException when uncompression failed (CASSANDRA-12889)
  * Fix partition count log during compaction (CASSANDRA-12184)


[3/8] cassandra git commit: Add issue to changelog

Posted by ja...@apache.org.
Add issue to changelog


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/d6a3ef48
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/d6a3ef48
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/d6a3ef48

Branch: refs/heads/cassandra-3.0
Commit: d6a3ef4863142c3f9fc1def911f28341fc78f2e8
Parents: 9ce74db
Author: T Jake Luciani <ja...@apache.org>
Authored: Fri Nov 11 14:26:07 2016 -0500
Committer: T Jake Luciani <ja...@apache.org>
Committed: Fri Nov 11 14:26:07 2016 -0500

----------------------------------------------------------------------
 CHANGES.txt | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/d6a3ef48/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 36615ae..eb53d02 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.0.10
+ * Disallow offheap_buffers memtable allocation (CASSANDRA-11039)
  * Fix CommitLogSegmentManagerTest (CASSANDRA-12283)
  * Pass root cause to CorruptBlockException when uncompression failed (CASSANDRA-12889)
  * Fix partition count log during compaction (CASSANDRA-12184)


[2/8] cassandra git commit: Merge branch 'cassandra-3.0' into cassandra-3.X

Posted by ja...@apache.org.
Merge branch 'cassandra-3.0' into cassandra-3.X


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/a394ba05
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/a394ba05
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/a394ba05

Branch: refs/heads/trunk
Commit: a394ba0538b79df5ee8233632121fb674350fa49
Parents: a26d25f 9ce74db
Author: T Jake Luciani <ja...@apache.org>
Authored: Fri Nov 11 14:14:40 2016 -0500
Committer: T Jake Luciani <ja...@apache.org>
Committed: Fri Nov 11 14:14:40 2016 -0500

----------------------------------------------------------------------

----------------------------------------------------------------------