This is an automated email from the ASF dual-hosted git repository.

yjhjstz pushed a commit to branch REL_2_STABLE
in repository https://gitbox.apache.org/repos/asf/cloudberry.git


The following commit(s) were added to refs/heads/REL_2_STABLE by this push:
     new 15f6bf2c934 Fix: unstable pax_inject_fault regression test (#1894)
15f6bf2c934 is described below

commit 15f6bf2c934a159c8ea31790131573cebb649b60
Author: Aleksey Rozhok <[email protected]>
AuthorDate: Fri Aug 21 20:39:54 2026 +0300

    Fix: unstable pax_inject_fault regression test (#1894)
    
    * fix: pax_inject_fault.sql & pax_inject_fault.out
    
    * fix: combine two consecutive ignore blocks
---
 contrib/pax_storage/expected/pax_inject_fault.out | 17 ++++++++---------
 contrib/pax_storage/sql/pax_inject_fault.sql      | 12 ++++++++----
 2 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/contrib/pax_storage/expected/pax_inject_fault.out 
b/contrib/pax_storage/expected/pax_inject_fault.out
index 9d7ff49db2d..449082c29d7 100644
--- a/contrib/pax_storage/expected/pax_inject_fault.out
+++ b/contrib/pax_storage/expected/pax_inject_fault.out
@@ -1,3 +1,9 @@
+-- ignore non-determenistic warnings, hints, details
+-- start_matchignore
+-- m/^WARNING:\s+/
+-- m/^HINT:\s+/
+-- m/^DETAIL:\s+/
+-- end_matchignore
 create table t_insert(a int);
 select gp_inject_fault_infinite('fts_probe','skip',dbid) FROM 
gp_segment_configuration WHERE role = 'p' AND content = -1;
  gp_inject_fault_infinite 
@@ -12,12 +18,6 @@ select gp_request_fts_probe_scan();
 (1 row)
 
 select gp_inject_fault('orc_writer_write_tuple','panic',dbid) FROM 
gp_segment_configuration WHERE role = 'p' AND content > -1;
-WARNING:  consider disabling FTS probes while injecting a panic.
-HINT:  Inject an infinite 'skip' into the 'fts_probe' fault to disable FTS 
probing.
-WARNING:  consider disabling FTS probes while injecting a panic.
-HINT:  Inject an infinite 'skip' into the 'fts_probe' fault to disable FTS 
probing.
-WARNING:  consider disabling FTS probes while injecting a panic.
-HINT:  Inject an infinite 'skip' into the 'fts_probe' fault to disable FTS 
probing.
  gp_inject_fault 
 -----------------
  Success:
@@ -26,9 +26,8 @@ HINT:  Inject an infinite 'skip' into the 'fts_probe' fault 
to disable FTS probi
 (3 rows)
 
 -- failed because of fault injection
-insert into t_insert select generate_series(1,10);
-ERROR:  fault triggered, fault name:'orc_writer_write_tuple' fault type:'panic'
 -- start_ignore
+insert into t_insert select generate_series(1,10);
 -- clear the fault inject, so the next insert will success.
 -- put the reset operation in ignore range
 select gp_inject_fault('orc_writer_write_tuple','reset',dbid) FROM 
gp_segment_configuration WHERE role = 'p' AND content > -1;
@@ -39,6 +38,6 @@ select gp_inject_fault('fts_probe','reset',dbid) FROM 
gp_segment_configuration W
 (1 row)
 
 -- end_ignore
--- success 
+-- success
 insert into t_insert select generate_series(1,10);
 drop table t_insert;
diff --git a/contrib/pax_storage/sql/pax_inject_fault.sql 
b/contrib/pax_storage/sql/pax_inject_fault.sql
index 0cced2bc1ad..8020cc46911 100644
--- a/contrib/pax_storage/sql/pax_inject_fault.sql
+++ b/contrib/pax_storage/sql/pax_inject_fault.sql
@@ -1,17 +1,21 @@
+-- ignore non-determenistic warnings, hints, details
+-- start_matchignore
+-- m/^WARNING:\s+/
+-- m/^HINT:\s+/
+-- m/^DETAIL:\s+/
+-- end_matchignore
 create table t_insert(a int);
 select gp_inject_fault_infinite('fts_probe','skip',dbid) FROM 
gp_segment_configuration WHERE role = 'p' AND content = -1;
 select gp_request_fts_probe_scan();
 select gp_inject_fault('orc_writer_write_tuple','panic',dbid) FROM 
gp_segment_configuration WHERE role = 'p' AND content > -1;
 -- failed because of fault injection
-insert into t_insert select generate_series(1,10);
-
 -- start_ignore
+insert into t_insert select generate_series(1,10);
 -- clear the fault inject, so the next insert will success.
 -- put the reset operation in ignore range
 select gp_inject_fault('orc_writer_write_tuple','reset',dbid) FROM 
gp_segment_configuration WHERE role = 'p' AND content > -1;
 select gp_inject_fault('fts_probe','reset',dbid) FROM gp_segment_configuration 
WHERE role = 'p' AND content = -1;
 -- end_ignore
-
--- success 
+-- success
 insert into t_insert select generate_series(1,10);
 drop table t_insert;


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to