Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Upgrade to Thrift API 19.4.0

  • Loading branch information...
commit 2c6a384245c3a4d5742e2fd2ebd817b4d9be54ac 1 parent 59b12d4
@thobbs thobbs authored
Showing with 11 additions and 11 deletions.
  1. +1 −1  pycassa/cassandra/constants.py
  2. +10 −10 pycassa/cassandra/ttypes.py
View
2  pycassa/cassandra/constants.py
@@ -7,4 +7,4 @@
from thrift.Thrift import *
from ttypes import *
-VERSION = "19.3.0"
+VERSION = "19.4.0"
View
20 pycassa/cassandra/ttypes.py
@@ -28,30 +28,30 @@ class ConsistencyLevel:
ANY Ensure that the write has been written once somewhere, including possibly being hinted in a non-target node.
ONE Ensure that the write has been written to at least 1 node's commit log and memory table
QUORUM Ensure that the write has been written to <ReplicationFactor> / 2 + 1 nodes
- DCQUORUM Ensure that the write has been written to <ReplicationFactor> / 2 + 1 nodes, within the local datacenter (requires NetworkTopologyStrategy)
- DCQUORUMSYNC Ensure that the write has been written to <ReplicationFactor> / 2 + 1 nodes in each datacenter (requires NetworkTopologyStrategy)
+ LOCAL_QUORUM Ensure that the write has been written to <ReplicationFactor> / 2 + 1 nodes, within the local datacenter (requires NetworkTopologyStrategy)
+ EACH_QUORUM Ensure that the write has been written to <ReplicationFactor> / 2 + 1 nodes in each datacenter (requires NetworkTopologyStrategy)
ALL Ensure that the write is written to <code>&lt;ReplicationFactor&gt;</code> nodes before responding to the client.
Read:
ANY Not supported. You probably want ONE instead.
ONE Will return the record returned by the first node to respond. A consistency check is always done in a background thread to fix any consistency issues when ConsistencyLevel.ONE is used. This means subsequent calls will have correct data even if the initial read gets an older value. (This is called 'read repair'.)
QUORUM Will query all storage nodes and return the record with the most recent timestamp once it has at least a majority of replicas reported. Again, the remaining replicas will be checked in the background.
- DCQUORUM Returns the record with the most recent timestamp once a majority of replicas within the local datacenter have replied.
- DCQUORUMSYNC Returns the record with the most recent timestamp once a majority of replicas within each datacenter have replied.
+ LOCAL_QUORUM Returns the record with the most recent timestamp once a majority of replicas within the local datacenter have replied.
+ EACH_QUORUM Returns the record with the most recent timestamp once a majority of replicas within each datacenter have replied.
ALL Queries all storage nodes and returns the record with the most recent timestamp.
"""
ONE = 1
QUORUM = 2
- DCQUORUM = 3
- DCQUORUMSYNC = 4
+ LOCAL_QUORUM = 3
+ EACH_QUORUM = 4
ALL = 5
ANY = 6
_VALUES_TO_NAMES = {
1: "ONE",
2: "QUORUM",
- 3: "DCQUORUM",
- 4: "DCQUORUMSYNC",
+ 3: "LOCAL_QUORUM",
+ 4: "EACH_QUORUM",
5: "ALL",
6: "ANY",
}
@@ -59,8 +59,8 @@ class ConsistencyLevel:
_NAMES_TO_VALUES = {
"ONE": 1,
"QUORUM": 2,
- "DCQUORUM": 3,
- "DCQUORUMSYNC": 4,
+ "LOCAL_QUORUM": 3,
+ "EACH_QUORUM": 4,
"ALL": 5,
"ANY": 6,
}
Please sign in to comment.
Something went wrong with that request. Please try again.