1
- Parsed test spec with 12 sessions
1
+ Parsed test spec with 14 sessions
2
2
3
3
starting permutation: R1_refresh S1_select R3_refresh S1_select L2_read_unlock_threshold_table L3_unlock_cagg_table L1_unlock_threshold_table
4
4
step R1_refresh:
@@ -356,7 +356,6 @@ step L3_unlock_cagg_table:
356
356
ROLLBACK;
357
357
358
358
step R1_refresh: <... completed>
359
- R2: NOTICE: continuous aggregate "cond_10" is already up-to-date
360
359
step R2_refresh: <... completed>
361
360
step S1_select:
362
361
SELECT bucket, avg_temp
@@ -545,7 +544,7 @@ step R12_refresh:
545
544
CALL refresh_continuous_aggregate('cond2_10', 25, 70);
546
545
547
546
548
- starting permutation: WP_enable R1_refresh R6_materialization_ranges R5_refresh R6_materialization_ranges WP_release R6_materialization_ranges S1_select
547
+ starting permutation: WP_enable R1_refresh R6_pending_materialization_ranges R5_refresh R6_pending_materialization_ranges WP_release R6_pending_materialization_ranges S1_select
549
548
R5: LOG: statement:
550
549
SET SESSION lock_timeout = '500ms';
551
550
SET SESSION deadlock_timeout = '500ms';
@@ -565,18 +564,8 @@ debug_waitpoint_enable
565
564
step R1_refresh:
566
565
CALL refresh_continuous_aggregate('cond_10', 25, 70);
567
566
<waiting ...>
568
- step R6_materialization_ranges:
569
- SELECT
570
- c.user_view_name,
571
- m.lowest_modified_value,
572
- m.greatest_modified_value
573
- FROM
574
- _timescaledb_catalog.continuous_aggs_materialization_ranges m
575
- JOIN _timescaledb_catalog.continuous_agg c on c.mat_hypertable_id = m.materialization_id
576
- WHERE
577
- c.user_view_name = 'cond_10'
578
- ORDER BY
579
- 1, 2, 3;
567
+ step R6_pending_materialization_ranges:
568
+ SELECT * FROM pending_materialization_ranges WHERE user_view_name = 'cond_10';
580
569
581
570
user_view_name|lowest_modified_value|greatest_modified_value
582
571
--------------+---------------------+-----------------------
@@ -589,18 +578,8 @@ R5: LOG: statement:
589
578
step R5_refresh:
590
579
CALL refresh_continuous_aggregate('cond_10', 70, 107);
591
580
<waiting ...>
592
- step R6_materialization_ranges:
593
- SELECT
594
- c.user_view_name,
595
- m.lowest_modified_value,
596
- m.greatest_modified_value
597
- FROM
598
- _timescaledb_catalog.continuous_aggs_materialization_ranges m
599
- JOIN _timescaledb_catalog.continuous_agg c on c.mat_hypertable_id = m.materialization_id
600
- WHERE
601
- c.user_view_name = 'cond_10'
602
- ORDER BY
603
- 1, 2, 3;
581
+ step R6_pending_materialization_ranges:
582
+ SELECT * FROM pending_materialization_ranges WHERE user_view_name = 'cond_10';
604
583
605
584
user_view_name|lowest_modified_value|greatest_modified_value
606
585
--------------+---------------------+-----------------------
@@ -621,18 +600,8 @@ R5: DEBUG: continuous aggregate refresh (individual invalidation) on "cond_10"
621
600
R5: LOG: deleted 0 row(s) from materialization table "_timescaledb_internal._materialized_hypertable_X"
622
601
R5: LOG: inserted 3 row(s) into materialization table "_timescaledb_internal._materialized_hypertable_X"
623
602
step R5_refresh: <... completed>
624
- step R6_materialization_ranges:
625
- SELECT
626
- c.user_view_name,
627
- m.lowest_modified_value,
628
- m.greatest_modified_value
629
- FROM
630
- _timescaledb_catalog.continuous_aggs_materialization_ranges m
631
- JOIN _timescaledb_catalog.continuous_agg c on c.mat_hypertable_id = m.materialization_id
632
- WHERE
633
- c.user_view_name = 'cond_10'
634
- ORDER BY
635
- 1, 2, 3;
603
+ step R6_pending_materialization_ranges:
604
+ SELECT * FROM pending_materialization_ranges WHERE user_view_name = 'cond_10';
636
605
637
606
user_view_name|lowest_modified_value|greatest_modified_value
638
607
--------------+---------------------+-----------------------
@@ -675,3 +644,72 @@ conditions | 100
675
644
conditions2|-2147483648
676
645
(2 rows)
677
646
647
+
648
+ starting permutation: WP_enable R6_pending_materialization_ranges R1_refresh R3_refresh K1_killpid R6_pending_materialization_ranges WP_release R13_refresh R6_pending_materialization_ranges
649
+ R5: LOG: statement:
650
+ SET SESSION lock_timeout = '500ms';
651
+ SET SESSION deadlock_timeout = '500ms';
652
+ SET SESSION client_min_messages = 'DEBUG1';
653
+
654
+ L1: WARNING: there is already a transaction in progress
655
+ L2: WARNING: there is already a transaction in progress
656
+ L3: WARNING: there is already a transaction in progress
657
+ step WP_enable:
658
+ SELECT debug_waitpoint_enable('after_process_cagg_invalidations_for_refresh_lock');
659
+
660
+ debug_waitpoint_enable
661
+ ----------------------
662
+
663
+ (1 row)
664
+
665
+ step R6_pending_materialization_ranges:
666
+ SELECT * FROM pending_materialization_ranges WHERE user_view_name = 'cond_10';
667
+
668
+ user_view_name|lowest_modified_value|greatest_modified_value
669
+ --------------+---------------------+-----------------------
670
+ (0 rows)
671
+
672
+ step R1_refresh:
673
+ CALL refresh_continuous_aggregate('cond_10', 25, 70);
674
+ <waiting ...>
675
+ step R3_refresh:
676
+ CALL refresh_continuous_aggregate('cond_10', 70, 107);
677
+ <waiting ...>
678
+ step K1_killpid:
679
+ CALL killpids();
680
+ <waiting ...>
681
+ step R1_refresh: <... completed>
682
+ FATAL: terminating connection due to administrator command
683
+ server closed the connection unexpectedly
684
+ This probably means the server terminated abnormally
685
+ before or while processing the request.
686
+
687
+ step R6_pending_materialization_ranges:
688
+ SELECT * FROM pending_materialization_ranges WHERE user_view_name = 'cond_10';
689
+
690
+ user_view_name|lowest_modified_value|greatest_modified_value
691
+ --------------+---------------------+-----------------------
692
+ cond_10 | 30| 70
693
+ cond_10 | 70| 100
694
+ (2 rows)
695
+
696
+ step K1_killpid: <... completed>
697
+ step WP_release:
698
+ SELECT debug_waitpoint_release('after_process_cagg_invalidations_for_refresh_lock');
699
+
700
+ debug_waitpoint_release
701
+ -----------------------
702
+
703
+ (1 row)
704
+
705
+ step R3_refresh: <... completed>
706
+ step R13_refresh:
707
+ CALL refresh_continuous_aggregate('cond_10', 25, 70);
708
+
709
+ step R6_pending_materialization_ranges:
710
+ SELECT * FROM pending_materialization_ranges WHERE user_view_name = 'cond_10';
711
+
712
+ user_view_name|lowest_modified_value|greatest_modified_value
713
+ --------------+---------------------+-----------------------
714
+ (0 rows)
715
+
0 commit comments