Skip to content

Commit

Permalink
Set gc_grace_seconds to 7 days for system schema tables
Browse files Browse the repository at this point in the history
Patch by Tyler Hobbs; review by Aleksey Yeschenko for CASSANDRA-7668
  • Loading branch information
thobbs committed Aug 1, 2014
1 parent ee2ed3c commit 0dd39c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/java/org/apache/cassandra/config/CFMetaData.java
Original file line number Diff line number Diff line change
Expand Up @@ -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,"
Expand Down Expand Up @@ -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,"
Expand All @@ -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,"
Expand Down

0 comments on commit 0dd39c6

Please sign in to comment.