Skip to content

Commit 5aa84d9

Browse files
committed
Can avoid invalid table drop with refreshing tables
1 parent 180e243 commit 5aa84d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/bwc/test_rolling_upgrade.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,10 @@ def num_docs_rx(cursor):
305305
if int(path.from_version.split('.')[0]) >= 5 and int(path.from_version.split('.')[1]) >= 10:
306306
with connect(replica_cluster.node().http_url, error_trace=True) as replica_conn:
307307
rc = replica_conn.cursor()
308+
c.execute("refresh table doc.x")
309+
c.execute("refresh table doc.rx")
310+
rc.execute("refresh table doc.x")
311+
rc.execute("refresh table doc.rx")
308312

309313
# Cannot drop replicated tables
310314
with self.assertRaises(ProgrammingError):

0 commit comments

Comments
 (0)