Skip to content

Commit 36abfff

Browse files
committed
Clean up isolation tests
Removed unused I2 step in cagg_multi_iso test. Removed waitpoint in cagg_concurrent_refresh test.
1 parent 9cbb6c2 commit 36abfff

4 files changed

Lines changed: 4 additions & 22 deletions

File tree

tsl/test/isolation/expected/cagg_concurrent_refresh.out

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -258,34 +258,18 @@ step R12_refresh:
258258
CALL refresh_continuous_aggregate('cond2_10', 25, 70);
259259

260260

261-
starting permutation: WP_before_enable R1_refresh R3_refresh WP_before_release
261+
starting permutation: R1_refresh R3_refresh
262262
R5: LOG: statement:
263263
SET SESSION lock_timeout = '500ms';
264264
SET SESSION deadlock_timeout = '500ms';
265265
SET SESSION client_min_messages = 'DEBUG1';
266266

267-
step WP_before_enable:
268-
SELECT debug_waitpoint_enable('before_process_cagg_invalidations_for_refresh_lock');
269-
270-
debug_waitpoint_enable
271-
----------------------
272-
273-
274267
step R1_refresh:
275268
CALL refresh_continuous_aggregate('cond_10', 25, 70);
276-
<waiting ...>
269+
277270
step R3_refresh:
278271
CALL refresh_continuous_aggregate('cond_10', 70, 107);
279-
<waiting ...>
280-
step WP_before_release:
281-
SELECT debug_waitpoint_release('before_process_cagg_invalidations_for_refresh_lock');
282-
283-
debug_waitpoint_release
284-
-----------------------
285-
286272

287-
step R1_refresh: <... completed>
288-
step R3_refresh: <... completed>
289273

290274
starting permutation: WP_after_materialization_enable R1_refresh WP_after_materialization_release R3_refresh
291275
R5: LOG: statement:

tsl/test/isolation/expected/cagg_multi_iso.out

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
unused step name: I2
21
Parsed test spec with 9 sessions
32

43
starting permutation: Setup2 LockCAggCatalogRow_1 Refresh1 Refresh2 UnlockCAggCatalogRow_1

tsl/test/isolation/specs/cagg_concurrent_refresh.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -488,8 +488,8 @@ permutation "R1_refresh" "R12_refresh"
488488
# TODO: pending materialization ranges not populated yet
489489
#permutation "WP_after_enable" "R6_pending_materialization_ranges" "R1_refresh"("WP_after_enable") "K1_cancelpid"("R1_refresh") "R6_pending_materialization_ranges" "WP_after_release" "R1_drop" "R6_pending_materialization_ranges_orphan"
490490

491-
# R3 should wait for R1 to finish because there are cagg invalidation rows locked
492-
permutation "WP_before_enable" "R1_refresh"("WP_before_enable") "R3_refresh" "WP_before_release"
491+
# R3 should wait for R1 to finish because they serialize on the catalog tuple lock
492+
permutation "R1_refresh" "R3_refresh"
493493

494494
# Concurrent refresh of caggs on non-overlapping ranges should not
495495
# block each other in the third transaction (materialization)

tsl/test/isolation/specs/cagg_multi_iso.spec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ step "Setup2"
4040

4141
session "I"
4242
step "I1" { INSERT INTO ts_continuous_test SELECT 0, i*10 FROM (SELECT generate_series(0, 10) AS i) AS i; }
43-
step "I2" { INSERT INTO ts_continuous_test SELECT 40, 1000 ; }
4443

4544
session "R1"
4645
setup { SET client_min_messages TO NOTICE; }

0 commit comments

Comments
 (0)