You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by al...@apache.org on 2013/10/23 17:50:03 UTC

git commit: Revert "Revert use of speculative retries by default for now"

Updated Branches:
  refs/heads/cassandra-2.0 01370bb6c -> 4adfd5c5a


Revert "Revert use of speculative retries by default for now"

This reverts commit 66fe5bdaaa1f5e22d33528c3d2313cc23e7621d8.


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

Branch: refs/heads/cassandra-2.0
Commit: 4adfd5c5aa82ec676a57cc4964f35e8a88700caf
Parents: 01370bb
Author: Aleksey Yeschenko <al...@apache.org>
Authored: Wed Oct 23 23:49:44 2013 +0800
Committer: Aleksey Yeschenko <al...@apache.org>
Committed: Wed Oct 23 23:49:44 2013 +0800

----------------------------------------------------------------------
 NEWS.txt                                             | 2 ++
 src/java/org/apache/cassandra/config/CFMetaData.java | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4adfd5c5/NEWS.txt
----------------------------------------------------------------------
diff --git a/NEWS.txt b/NEWS.txt
index e39d5cd..69ab4fd 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -19,6 +19,8 @@ using the provided 'sstableupgrade' tool.
 
 New features
 ------------
+    - Speculative retry defaults to 99th percentile
+      (See blog post at http://www.datastax.com/dev/blog/rapid-read-protection-in-cassandra-2-0-2)
     - Configurable metrics reporting
       (see conf/metrics-reporter-config-sample.yaml)
     - Compaction history and stats are now saved to system keyspace

http://git-wip-us.apache.org/repos/asf/cassandra/blob/4adfd5c5/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 479dafc..d63ee01 100644
--- a/src/java/org/apache/cassandra/config/CFMetaData.java
+++ b/src/java/org/apache/cassandra/config/CFMetaData.java
@@ -83,7 +83,7 @@ public final class CFMetaData
     public final static Class<? extends AbstractCompactionStrategy> DEFAULT_COMPACTION_STRATEGY_CLASS = SizeTieredCompactionStrategy.class;
     public final static Caching DEFAULT_CACHING_STRATEGY = Caching.KEYS_ONLY;
     public final static int DEFAULT_DEFAULT_TIME_TO_LIVE = 0;
-    public final static SpeculativeRetry DEFAULT_SPECULATIVE_RETRY = new SpeculativeRetry(SpeculativeRetry.RetryType.NONE, 0);
+    public final static SpeculativeRetry DEFAULT_SPECULATIVE_RETRY = new SpeculativeRetry(SpeculativeRetry.RetryType.PERCENTILE, 0.99);
     public final static int DEFAULT_INDEX_INTERVAL = 128;
     public final static boolean DEFAULT_POPULATE_IO_CACHE_ON_FLUSH = false;