@@ -211,7 +211,7 @@ def _test_upgrade_path(self, versions: Tuple[VersionDef, ...], nodes: int):
211
211
f .truncate ()
212
212
f .close ()
213
213
214
- @timeout (900 )
214
+ @timeout (1200 )
215
215
def _do_upgrade (self ,
216
216
cluster : CrateCluster ,
217
217
nodes : int ,
@@ -246,7 +246,7 @@ def _do_upgrade(self,
246
246
self ._process_on_stop ()
247
247
for version_def in versions [1 :]:
248
248
timestamp = datetime .utcnow ().isoformat (timespec = 'seconds' )
249
- print (f"{ timestamp } Upgrade to:: { version_def .version } " )
249
+ print (f"{ timestamp } Upgrade to: { version_def .version } " )
250
250
self .assert_data_persistence (version_def , nodes , digest , paths )
251
251
# restart with latest version
252
252
version_def = versions [- 1 ]
@@ -265,6 +265,11 @@ def assert_data_persistence(self,
265
265
assert_busy (lambda : self .assert_nodes (conn , nodes ))
266
266
cursor = conn .cursor ()
267
267
wait_for_active_shards (cursor , 0 )
268
+ version = version_def .version .replace ("." , "_" )
269
+ cursor .execute (CREATE_DOC_TABLE .replace (
270
+ "CREATE TABLE t1 (" ,
271
+ f'CREATE TABLE IF NOT EXISTS versioned."t{ version } " ('
272
+ ))
268
273
cursor .execute ('ALTER TABLE doc.t1 SET ("refresh_interval" = 4000)' )
269
274
run_selects (cursor , version_def .version )
270
275
container = conn .get_blob_container ('b1' )
@@ -277,6 +282,12 @@ def assert_data_persistence(self,
277
282
cursor .execute ("select * from sys.privileges" )
278
283
self .assertEqual (cursor .fetchall (), [["TABLE" , "trillian" , "crate" , "doc.t1" , "GRANT" , "DQL" ]])
279
284
285
+ cursor .execute ("select table_name from information_schema.tables where table_schema = 'versioned'" )
286
+ tables = [row [0 ] for row in cursor .fetchall ()]
287
+ for table in tables :
288
+ cursor .execute (f'select * from versioned."{ table } "' )
289
+ cursor .execute (f'insert into versioned."{ table } " (id, col_int) values (?, ?)' , [str (uuid4 ()), 1 ])
290
+
280
291
# older versions had a bug that caused this to fail
281
292
if version in ('latest-nightly' , '3.2' ):
282
293
# Test that partition and dynamic columns can be created
0 commit comments