From 88a82a8d4c246ddadfa89acfdad85ac2dbcaa783 Mon Sep 17 00:00:00 2001 From: muyulinzhong Date: Thu, 29 Aug 2024 17:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90bugfix=E3=80=91=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E9=81=BF=E5=85=8Dreboot=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=8E=A7=E5=88=B6=E8=BF=9B=E7=A8=8B=E9=80=80=E5=87=BA?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F=E6=89=80=E5=AF=BC=E8=87=B4=E6=84=8F=E5=A4=96?= =?UTF-8?q?core=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gausskernel/storage/access/transam/xlog.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gausskernel/storage/access/transam/xlog.cpp b/src/gausskernel/storage/access/transam/xlog.cpp index 47c95ef52..7150ec288 100755 --- a/src/gausskernel/storage/access/transam/xlog.cpp +++ b/src/gausskernel/storage/access/transam/xlog.cpp @@ -6455,6 +6455,12 @@ void UpdateControlFile(void) } if (fd < 0) { + if (ENABLE_DSS && g_instance.status == FastShutdown && errno == ERR_DSS_CONNECT_FAILED + && !g_instance.dms_cxt.SSReformInfo.in_reform) { + ereport(WARNING, (errmsg("could not open control file due to lost connection to DSS," + " and CM may not have ability to control exit process, so shutdown directly."))); + exit(0); + } ereport(FATAL, (errcode_for_file_access(), errmsg("could not open control file \"%s\": %s", fname[i], TRANSLATE_ERRNO))); }