Repository: cassandra Updated Branches: refs/heads/cassandra-2.1 077d3ce7c -> 1c1a40e10 refs/heads/cassandra-2.1.0 5f4cd8a5d -> 1c3de2737 refs/heads/trunk 22cb05438 -> 2809b0691
cqlsh DESC CLUSTER fails retrieving ring information patch by Adam Holmberg; reviewed by mstepura for CASSANDRA-7687 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/1c3de273 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/1c3de273 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/1c3de273 Branch: refs/heads/cassandra-2.1 Commit: 1c3de27376ec095178706d9cbb00e385e3d6ec30 Parents: 5f4cd8a Author: Adam Holmberg <[email protected]> Authored: Mon Aug 4 14:32:22 2014 -0700 Committer: Mikhail Stepura <[email protected]> Committed: Mon Aug 4 14:34:27 2014 -0700 ---------------------------------------------------------------------- CHANGES.txt | 1 + bin/cqlsh | 1 + 2 files changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/1c3de273/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index b87dc0b..b0b5166 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 2.1.0-final + * cqlsh DESC CLUSTER fails retrieving ring information (CASSANDRA-7687) Merged from 2.0: * Support connecting to ipv6 jmx with nodetool (CASSANDRA-7669) http://git-wip-us.apache.org/repos/asf/cassandra/blob/1c3de273/bin/cqlsh ---------------------------------------------------------------------- diff --git a/bin/cqlsh b/bin/cqlsh index ba0c886..ab1e215 100755 --- a/bin/cqlsh +++ b/bin/cqlsh @@ -674,6 +674,7 @@ class Shell(cmd.Cmd): def get_ring(self): if self.current_keyspace is None or self.current_keyspace == 'system': raise NoKeyspaceError("Ring view requires a current non-system keyspace") + self.conn.metadata.token_map.rebuild_keyspace(self.current_keyspace, build_if_absent=True) return self.conn.metadata.token_map.tokens_to_hosts_by_ks[self.current_keyspace] def get_table_meta(self, ksname, tablename):
