Created
July 17, 2017 17:15
-
-
Save beltran/62b4fa1ae61b7db70a2e2a45fbd3a2fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from cassandra.cluster import Cluster | |
cluster = Cluster() | |
def context(): | |
session = cluster.connect(wait_for_all_pools=True) | |
context() | |
for connections in [o.get_connections() for o in cluster.get_connection_holders()]: | |
for connection in connections: | |
if not connection.is_control_connection: | |
assert connection.is_closed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment