Skip to content

Commit bbfa394

Browse files
committed
Added/Updated tests\bugs\gh_7747_test.py: Added call to sweep: test sometimes can fail if background garbage collection does not complete its job. Detected several times on Linux. See notes.
1 parent fe56d7b commit bbfa394

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/bugs/gh_7747_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88
[14.09.2023] pzotov
99
Confirmed problem on 5.0.0.1209, 4.0.4.2986, 3.0.12.33707
1010
Checked on 5.0.0.1211, 4.0.4.2988 (intermediate snapshots), SS/CS.
11+
12+
[17.02.2024] pzotov
13+
Added call to sweep(): test sometimes can fail if background garbage collection does not complete
14+
its job after 'select * from t1_blob' and before get_statistics() on iter #2
15+
(detected several times on Linux).
16+
Checked again on Windows, builds 5.0.0.1209 and 5.0.0.1211 (confirmed problem and fix).
1117
"""
1218
import re
1319

@@ -103,6 +109,7 @@ def test_1(act: Action, capsys):
103109
pass
104110

105111
with act.connect_server() as srv:
112+
srv.database.sweep(database=act.db.db_path) # <<< 17.02.2024. Force GC.
106113
srv.database.get_statistics(database=act.db.db_path, flags=SrvStatFlag.RECORD_VERSIONS)
107114
stats = srv.readlines()
108115

0 commit comments

Comments
 (0)