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

yjhjstz pushed a commit to branch orca/string-stats-ordering
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit ad0b69fbcad2dd715b4e165620a2d2ce8fa49583
Author: Jianghua Yang <[email protected]>
AuthorDate: Sat May 16 00:26:51 2026 +0800

    PAX: fix pax_inject_fault flaky test
    
    Move the failing INSERT inside -- start_ignore so non-deterministic
    crash recovery messages (DETAIL/HINT/WARNING from postmaster killing
    other backends after a PANIC) are prefixed with GP_IGNORE: by
    atmsort.pm and ignored by the diff comparison.
---
 contrib/pax_storage/expected/pax_inject_fault.out | 5 ++---
 contrib/pax_storage/sql/pax_inject_fault.sql      | 4 ++--
 2 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/contrib/pax_storage/expected/pax_inject_fault.out 
b/contrib/pax_storage/expected/pax_inject_fault.out
index 9d7ff49db2d..0868fe1968c 100644
--- a/contrib/pax_storage/expected/pax_inject_fault.out
+++ b/contrib/pax_storage/expected/pax_inject_fault.out
@@ -25,10 +25,9 @@ HINT:  Inject an infinite 'skip' into the 'fts_probe' fault 
to disable FTS probi
  Success:
 (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
+-- failed because of fault injection; crash recovery messages are 
non-deterministic
+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;
diff --git a/contrib/pax_storage/sql/pax_inject_fault.sql 
b/contrib/pax_storage/sql/pax_inject_fault.sql
index 0cced2bc1ad..e210023c1a7 100644
--- a/contrib/pax_storage/sql/pax_inject_fault.sql
+++ b/contrib/pax_storage/sql/pax_inject_fault.sql
@@ -2,10 +2,10 @@ 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
+-- failed because of fault injection; crash recovery messages are 
non-deterministic
+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;


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

Reply via email to