Skip to content

Commit 500b8e3

Browse files
committed
[DNM]Test the flaky test reindextable_while_reindex_idx_aoco_part_btree in CI
1 parent 7ec9bdf commit 500b8e3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/test/isolation2/expected/reindex/reindextable_while_reindex_idx_aoco_part_btree.out

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,22 @@ INSERT 12
4545
-- of one column.
4646
-- See https://github.com/apache/cloudberry/issues/26#issuecomment-1682097755
4747
-- for more details.
48+
3: select dbid,count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname order by 1,2,3;
49+
dbid | cnt | relname
50+
------+-----+-----------------------------------------------------
51+
-1 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx
52+
-1 | 1 | reindex_crtab_part_aoco_btree_id_idx
53+
-1 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx
54+
0 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx
55+
0 | 1 | reindex_crtab_part_aoco_btree_id_idx
56+
0 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx
57+
1 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx
58+
1 | 1 | reindex_crtab_part_aoco_btree_id_idx
59+
1 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx
60+
2 | 1 | reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx
61+
2 | 1 | reindex_crtab_part_aoco_btree_id_idx
62+
2 | 2 | reindex_crtab_part_aoco_btree_1_prt_de_fault_id_idx
63+
(12 rows)
4864
3: select relname, relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' and res.cnt in (1, 2) as special_case_for_p_one_id_idx, case when relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' then -1 else res.cnt end as count from (select distinct count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname) as res;
4965
relname | special_case_for_p_one_id_idx | count
5066
-----------------------------------------------------+-------------------------------+-------

src/test/isolation2/sql/reindex/reindextable_while_reindex_idx_aoco_part_btree.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ DELETE FROM reindex_crtab_part_aoco_btree WHERE id < 128;
4242
-- of one column.
4343
-- See https://github.com/apache/cloudberry/issues/26#issuecomment-1682097755
4444
-- for more details.
45+
3: select dbid,count(distinct relfilenode) as cnt, relname from old_relfilenodes group by dbid, relname order by 1,2,3;
4546
3: select relname,
4647
relname = 'reindex_crtab_part_aoco_btree_1_prt_p_one_id_idx' and res.cnt in (1, 2) as special_case_for_p_one_id_idx,
4748
case

0 commit comments

Comments
 (0)