Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for _wait_for_agreement in system manager. Now it works if some c…

…luster's node is down.
  • Loading branch information...
commit b5f9e4cb8c052f052cdab26d0dce3edb9e40b699 1 parent 2909e95
@carlopires carlopires authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 pycassa/system_manager.py
View
9 pycassa/system_manager.py
@@ -589,6 +589,11 @@ def drop_index(self, keyspace, column_family, column):
def _wait_for_agreement(self):
while True:
versions = self._conn.describe_schema_versions()
- if len(versions) == 1:
- break
+ for key, _nodes in versions.items():
+ try:
+ uuid.UUID(key)
+ except:
+ continue
+ else:
+ return True
time.sleep(_SAMPLE_PERIOD)
Please sign in to comment.
Something went wrong with that request. Please try again.