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

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


The following commit(s) were added to refs/heads/main by this push:
     new 97a1eabc7f5 Print stack trace when writer gang is lost
97a1eabc7f5 is described below

commit 97a1eabc7f51464224c2ae837a1cc52f630e85a1
Author: Hao Wu <[email protected]>
AuthorDate: Wed Jul 23 09:33:16 2025 +0000

    Print stack trace when writer gang is lost
    
    This commit is used to print the stack trace to help developers
    when the writer gang is lost.
---
 src/backend/storage/lmgr/lock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c
index 90ea0a666e0..016ad29072c 100644
--- a/src/backend/storage/lmgr/lock.c
+++ b/src/backend/storage/lmgr/lock.c
@@ -958,6 +958,7 @@ LockAcquireExtended(const LOCKTAG *locktag,
                                else
                                        ereport(FATAL,
                                                        
(errcode(ERRCODE_GP_INTERCONNECTION_ERROR),
+                                                        errprintstack(true),
                                                         
errmsg(WRITER_IS_MISSING_MSG),
                                                         errdetail("lock 
[%u,%u] %s %d. "
                                                                           
"Probably because writer gang is gone somehow. "


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

Reply via email to