cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tylerho...@apache.org
Subject [1/2] git commit: Set gc_grace_seconds to 7 days for system schema tables
Date Fri, 01 Aug 2014 20:44:46 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.0 5c0ddfbba -> 63a1e987f


Set gc_grace_seconds to 7 days for system schema tables

Patch by Tyler Hobbs; review by Aleksey Yeschenko for CASSANDRA-7668


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

Branch: refs/heads/cassandra-2.0
Commit: 0dd39c6a556a8e98c946855d7dc3dbfd110d1ec9
Parents: ee2ed3c
Author: Tyler Hobbs <tyler@datastax.com>
Authored: Fri Aug 1 15:40:40 2014 -0500
Committer: Tyler Hobbs <tyler@datastax.com>
Committed: Fri Aug 1 15:40:40 2014 -0500

----------------------------------------------------------------------
 CHANGES.txt                                          | 1 +
 src/java/org/apache/cassandra/config/CFMetaData.java | 6 +++---
 2 files changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/0dd39c6a/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 0ad02c1..b60d1d9 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 1.2.19
+ * Set gc_grace_seconds to seven days for system schema tables (CASSANDRA-7668)
  * SimpleSeedProvider no longer caches seeds forever (CASSANDRA-7663)
  * Set correct stream ID on responses when non-Exception Throwables
    are thrown while handling native protocol messages (CASSANDRA-7470)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/0dd39c6a/src/java/org/apache/cassandra/config/CFMetaData.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/config/CFMetaData.java b/src/java/org/apache/cassandra/config/CFMetaData.java
index 9e3ceb7..31e17ed 100644
--- a/src/java/org/apache/cassandra/config/CFMetaData.java
+++ b/src/java/org/apache/cassandra/config/CFMetaData.java
@@ -108,7 +108,7 @@ public final class CFMetaData
                                                                   + "durable_writes boolean,"
                                                                   + "strategy_class text,"
                                                                   + "strategy_options text"
-                                                                  + ") WITH COMPACT STORAGE
AND COMMENT='keyspace definitions' AND gc_grace_seconds=8640");
+                                                                  + ") WITH COMPACT STORAGE
AND COMMENT='keyspace definitions' AND gc_grace_seconds=604800");
 
     public static final CFMetaData SchemaColumnFamiliesCf = compile(9, "CREATE TABLE " +
SystemTable.SCHEMA_COLUMNFAMILIES_CF + "("
                                                                        + "keyspace_name text,"
@@ -137,7 +137,7 @@ public final class CFMetaData
                                                                        + "column_aliases
text,"
                                                                        + "compaction_strategy_options
text,"
                                                                        + "PRIMARY KEY (keyspace_name,
columnfamily_name)"
-                                                                       + ") WITH COMMENT='ColumnFamily
definitions' AND gc_grace_seconds=8640");
+                                                                       + ") WITH COMMENT='ColumnFamily
definitions' AND gc_grace_seconds=604800");
 
     public static final CFMetaData SchemaColumnsCf = compile(10, "CREATE TABLE " + SystemTable.SCHEMA_COLUMNS_CF
+ "("
                                                                  + "keyspace_name text,"
@@ -149,7 +149,7 @@ public final class CFMetaData
                                                                  + "index_name text,"
                                                                  + "component_index int,"
                                                                  + "PRIMARY KEY(keyspace_name,
columnfamily_name, column_name)"
-                                                                 + ") WITH COMMENT='ColumnFamily
column attributes' AND gc_grace_seconds=8640");
+                                                                 + ") WITH COMMENT='ColumnFamily
column attributes' AND gc_grace_seconds=604800");
 
     public static final CFMetaData HintsCf = compile("CREATE TABLE " + SystemTable.HINTS_CF
+ " ("
                                                      + "target_id uuid,"


Mime
View raw message