Updated Branches:
  refs/heads/cassandra-1.2 62e8804d5 -> c040759da
  refs/heads/cassandra-2.0 854de4ed5 -> cc01b3165
  refs/heads/trunk 0951711ac -> 51b66677a


Make LOCAL_ONE the default CL for hadoop
Patch by Alex Liu, reviewed by brandonwilliams for CASSANDRA-6214


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

Branch: refs/heads/cassandra-1.2
Commit: c040759da53e70c2cb9ed93186bcdba2b55405ec
Parents: 62e8804
Author: Brandon Williams <brandonwilli...@apache.org>
Authored: Wed Oct 23 10:34:03 2013 -0500
Committer: Brandon Williams <brandonwilli...@apache.org>
Committed: Wed Oct 23 10:34:03 2013 -0500

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c040759d/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 44eb25d..63627e1 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -4,6 +4,7 @@
  * cqlsh: fix CREATE/ALTER WITH completion (CASSANDRA-6196)
  * add windows bat files for shell commands (CASSANDRA-6145)
  * Fix potential stack overflow during range tombstones insertion 
(CASSANDRA-6181)
+ * (Hadoop) Make LOCAL_ONE the default consistency level (CASSANDRA-6214)
 
 
 1.2.11

http://git-wip-us.apache.org/repos/asf/cassandra/blob/c040759d/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/hadoop/ConfigHelper.java 
b/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
index a109b2f..c89db53 100644
--- a/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
+++ b/src/java/org/apache/cassandra/hadoop/ConfigHelper.java
@@ -382,7 +382,7 @@ public class ConfigHelper
 
     public static String getReadConsistencyLevel(Configuration conf)
     {
-        return conf.get(READ_CONSISTENCY_LEVEL, "ONE");
+        return conf.get(READ_CONSISTENCY_LEVEL, "LOCAL_ONE");
     }
 
     public static void setReadConsistencyLevel(Configuration conf, String 
consistencyLevel)
@@ -392,7 +392,7 @@ public class ConfigHelper
 
     public static String getWriteConsistencyLevel(Configuration conf)
     {
-        return conf.get(WRITE_CONSISTENCY_LEVEL, "ONE");
+        return conf.get(WRITE_CONSISTENCY_LEVEL, "LOCAL_ONE");
     }
 
     public static void setWriteConsistencyLevel(Configuration conf, String 
consistencyLevel)

Reply via email to