@@ -60,14 +60,6 @@ def _assert_is_closed(self, conn, schema, table_name):
6060 c .execute ('select closed from information_schema.tables where table_name=? and table_schema=?' , (table_name , schema ))
6161 self .assertTrue (c .fetchone ()[0 ], True )
6262
63- def _assert_shards_are_started (self , conn , schema , table_name ):
64- c = conn .cursor ()
65- c .execute ('select routing_state from sys.shards where table_name=? and schema_name=?' , (table_name , schema ))
66- routing_states = c .fetchall ()
67- self .assertTrue (routing_states )
68- for routing_state in routing_states :
69- self .assertIn (routing_state , ['STARTED' , 'RELOCATING' , 'RELOCATED' ])
70-
7163 def _assert_checkpoints (self , conn , table_name ):
7264 c = conn .cursor ()
7365 c .execute ('''
@@ -79,7 +71,8 @@ def _assert_checkpoints(self, conn, table_name):
7971 ''' , (table_name ,))
8072 res = c .fetchall ()
8173 self .assertGreater (len (res ), 0 )
82- # check that the checkpoints are in sync with max_seq_no for each shard and replica
74+ # check that the checkpoints are in sync with max_seq_no for each shard
75+ # and replica
8376 for r in res :
8477 global_checkpoint = r [1 ]
8578 local_checkpoint = r [2 ]
@@ -106,7 +99,6 @@ def _test_recovery_with_concurrent_indexing(self, path, nodes):
10699 This test creates a new table and insert data at every stage of the
107100 rolling upgrade.
108101 """
109-
110102 cluster = self ._new_cluster (path .from_version , nodes )
111103 cluster .start ()
112104
@@ -530,7 +522,7 @@ def _test_turnoff_translog_retention_after_upgraded(self, path, nodes):
530522 self ._assert_is_green (conn , 'doc' , 'test' )
531523 c .execute ('refresh table doc.test' )
532524
533- # check translog stats for the shard on each node
525+ # check for the shard on each node that the translog is empty
534526 c .execute ('''select translog_stats['number_of_operations'], translog_stats['uncommitted_operations']
535527 from sys.shards where table_name='test' ''' )
536528 res = c .fetchall ()
0 commit comments