[CP] [CP] fix upgrade script
This commit is contained in:
@ -401,7 +401,7 @@ def check_cluster_status(query_cur):
|
||||
(desc, results) = query_cur.exec_query("""select count(1) from CDB_OB_MAJOR_COMPACTION where (GLOBAL_BROADCAST_SCN > LAST_SCN or STATUS != 'IDLE')""")
|
||||
if results[0][0] > 0 :
|
||||
fail_list.append('{0} tenant is merging, please check'.format(results[0][0]))
|
||||
(desc, results) = query_cur.exec_query("""select /*+ query_timeout(1000000000) */ count(1) from __all_virtual_tablet_compaction_info where max_received_scn != finished_scn and max_received_scn > 0""")
|
||||
(desc, results) = query_cur.exec_query("""select /*+ query_timeout(1000000000) */ count(1) from __all_virtual_tablet_compaction_info where max_received_scn > finished_scn and max_received_scn > 0""")
|
||||
if results[0][0] > 0 :
|
||||
fail_list.append('{0} tablet is merging, please check'.format(results[0][0]))
|
||||
logging.info('check cluster status success')
|
||||
|
||||
Reference in New Issue
Block a user