Skip to content

Commit

Permalink
fix(upgrade): increase session timeouts in verify_db_data
Browse files Browse the repository at this point in the history
Increase session timeouts for data validation sdcm.fill_db_data.FillDatabaseData.verify_db_data:

cassandra.OperationTimedOut: errors={'10.4.3.124:9042': 'Client request timeout.
See Session.execute[_async](timeout)'}, last_host=10.4.3.124:9042
  • Loading branch information
juliayakovlev authored and fruch committed Jan 22, 2024
1 parent 318e4be commit 0b2a7d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdcm/fill_db_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3359,9 +3359,10 @@ def prepare_keyspaces_and_tables(self):
def verify_db_data(self):
# Prepare connection
node = self.db_cluster.nodes[0]
with self.db_cluster.cql_connection_patient(node, keyspace=self.base_ks) as session:
with self.db_cluster.cql_connection_patient(node, keyspace=self.base_ks, connect_timeout=600) as session:
# override driver consistency level
session.default_consistency_level = ConsistencyLevel.QUORUM
session.default_timeout = 60 * 5
self.run_db_queries(session, session.default_fetch_size)

def paged_query(self, keyspace='keyspace_complex'):
Expand Down

0 comments on commit 0b2a7d4

Please sign in to comment.