MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / refresh_keyspace_metadata

Method refresh_keyspace_metadata

cassandra/cluster.py:2168–2177  ·  view source on GitHub ↗

Synchronously refresh keyspace metadata. This applies to keyspace-level information such as replication and durability settings. It does not refresh tables, types, etc. contained in the keyspace. See :meth:`~.Cluster.refresh_schema_metadata` for description of ``max_schema_

(self, keyspace, max_schema_agreement_wait=None)

Source from the content-addressed store, hash-verified

2166 raise DriverException("Schema metadata was not refreshed. See log for details.")
2167
2168 def refresh_keyspace_metadata(self, keyspace, max_schema_agreement_wait=None):
2169 """
2170 Synchronously refresh keyspace metadata. This applies to keyspace-level information such as replication
2171 and durability settings. It does not refresh tables, types, etc. contained in the keyspace.
2172
2173 See :meth:`~.Cluster.refresh_schema_metadata` for description of ``max_schema_agreement_wait`` behavior
2174 """
2175 if not self.control_connection.refresh_schema(target_type=SchemaTargetType.KEYSPACE, keyspace=keyspace,
2176 schema_agreement_wait=max_schema_agreement_wait, force=True):
2177 raise DriverException("Keyspace metadata was not refreshed. See log for details.")
2178
2179 def refresh_table_metadata(self, keyspace, table, max_schema_agreement_wait=None):
2180 """

Callers 3

test_bad_keyspaceMethod · 0.80

Calls 2

DriverExceptionClass · 0.90
refresh_schemaMethod · 0.80

Tested by 3

test_bad_keyspaceMethod · 0.64