47
47
traces : DefaultDict [str , int ] = defaultdict (lambda : 0 )
48
48
49
49
50
+ VERSION_INCREASE_WAIT_TIME = 300
51
+
52
+
50
53
def trace (key : str ) -> None :
51
54
global traces
52
55
traces [key ] += 1
@@ -375,7 +378,8 @@ def wait_for_compaction(self) -> None:
375
378
current_version ,
376
379
)
377
380
new_version = wait_for_version_increase (
378
- self .client , self .collection .name , current_version , additional_time = 240
381
+ self .client , self .collection .name , current_version ,
382
+ additional_time = VERSION_INCREASE_WAIT_TIME
379
383
)
380
384
# Everything got compacted.
381
385
self .log_operation_count = 0
@@ -1420,7 +1424,7 @@ def test_no_op_compaction(client: ClientAPI) -> None:
1420
1424
coll .delete (ids = [str (i ) for i in range (batch , batch + 100 )])
1421
1425
if not NOT_CLUSTER_ONLY :
1422
1426
wait_for_version_increase (
1423
- client , coll .name , get_collection_version (client , coll .name ), 240
1427
+ client , coll .name , get_collection_version (client , coll .name ), VERSION_INCREASE_WAIT_TIME
1424
1428
)
1425
1429
1426
1430
@@ -1439,7 +1443,7 @@ def test_add_then_purge(client: ClientAPI) -> None:
1439
1443
)
1440
1444
if not NOT_CLUSTER_ONLY :
1441
1445
wait_for_version_increase (
1442
- client , coll .name , get_collection_version (client , coll .name ), 240
1446
+ client , coll .name , get_collection_version (client , coll .name ), VERSION_INCREASE_WAIT_TIME
1443
1447
)
1444
1448
1445
1449
# Purge records and wait for compaction
@@ -1449,7 +1453,7 @@ def test_add_then_purge(client: ClientAPI) -> None:
1449
1453
coll .delete (ids = record_ids )
1450
1454
if not NOT_CLUSTER_ONLY :
1451
1455
wait_for_version_increase (
1452
- client , coll .name , get_collection_version (client , coll .name ), 240
1456
+ client , coll .name , get_collection_version (client , coll .name ), VERSION_INCREASE_WAIT_TIME
1453
1457
)
1454
1458
1455
1459
# There should be no records left
@@ -1472,7 +1476,7 @@ def test_encompassing_delete(client: ClientAPI) -> None:
1472
1476
1473
1477
if not NOT_CLUSTER_ONLY :
1474
1478
wait_for_version_increase (
1475
- client , col .name , get_collection_version (client , col .name ), 240
1479
+ client , col .name , get_collection_version (client , col .name ), VERSION_INCREASE_WAIT_TIME
1476
1480
)
1477
1481
1478
1482
# Add and then delete and then add 16
@@ -1486,7 +1490,7 @@ def test_encompassing_delete(client: ClientAPI) -> None:
1486
1490
1487
1491
if not NOT_CLUSTER_ONLY :
1488
1492
wait_for_version_increase (
1489
- client , col .name , get_collection_version (client , col .name ), 240
1493
+ client , col .name , get_collection_version (client , col .name ), VERSION_INCREASE_WAIT_TIME
1490
1494
)
1491
1495
1492
1496
# Ensure we can get all
0 commit comments