fix/showtransaction detial case

This commit is contained in:
dmchen 2024-11-14 08:56:42 +08:00
parent 2e3f9c0922
commit ca8c1ea377
1 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,13 @@ class TDTestCase:
self.basic.stop_dnode(2)
tranId = tdSql.getData(0, 0)
tdLog.info('show transaction %d'%tranId)
rows=tdSql.query('show transaction %d'%tranId, queryTimes=1)
if rows != 13:
tdLog.exit(f"restore transaction detial error, rows={rows}")
return False
tdLog.info('kill transaction %d'%tranId)
tdSql.execute('kill transaction %d'%tranId, queryTimes=1 )