Skip to content

Commit

Permalink
STAR-386: Increase client timeout (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacek-lewandowski authored Mar 22, 2022
1 parent adc3546 commit 4fc6bbc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion bootstrap_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,12 @@ def test_simultaneous_bootstrap(self):
" cannot bootstrap while cassandra.consistent.rangemovement is true"

cluster = self.cluster
configuration_options = {
'request_timeout_in_ms': 120000,
'read_request_timeout_in_ms': 120000,
'range_request_timeout_in_ms': 120000
}
cluster.set_configuration_options(configuration_options)
cluster.set_environment_variable('CASSANDRA_TOKEN_PREGENERATION_DISABLED', 'True')
cluster.populate(1)
cluster.start()
Expand Down Expand Up @@ -885,8 +891,10 @@ def test_simultaneous_bootstrap(self):
# bugs like 9484, where count(*) fails at higher
# data loads.
for _ in range(5):
logger.info("Querying: SELECT count(*) from keyspace1.standard1")
# Improve reliability for slower/loaded test systems by using larger client timeout
assert_one(session, "SELECT count(*) from keyspace1.standard1", [500000], cl=ConsistencyLevel.ONE, timeout=30)
assert_one(session, "SELECT count(*) from keyspace1.standard1", [500000], cl=ConsistencyLevel.ONE, timeout=180)
logger.info("Querying completed")

def test_cleanup(self):
"""
Expand Down

0 comments on commit 4fc6bbc

Please sign in to comment.