You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudberry.apache.org by le...@apache.org on 2026/10/08 10:22:11 UTC
(cloudberry) 08/08: isolation2: retry connections until hot standby reaches consistency
This is an automated email from the ASF dual-hosted git repository.
leborchuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git
commit 7cfd2243e668991b4ca716515f4182a84b9a9c3c
Author: Alena Rybakina <al...@gmail.com>
AuthorDate: Tue Oct 6 16:36:36 2026 +0300
isolation2: retry connections until hot standby reaches consistency
hot_standby/transaction_isolation deliberately panics the standby and
reconnects to check distributed transaction visibility after recovery.
The new connection can arrive before consistent recovery is reached,
when the server reports "the database system is not yet accepting
connections". This message was missing from the connection retry list.
Retry this transient state using the existing attempt limit and interval.
Keep the crash scenario and all transaction visibility checks intact.
Backport required: REL_2_STABLE is affected by the same race.
---
src/test/isolation2/sql_isolation_testcase.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/test/isolation2/sql_isolation_testcase.py b/src/test/isolation2/sql_isolation_testcase.py
index c4d72a45ee1..2d0c7527fe3 100644
--- a/src/test/isolation2/sql_isolation_testcase.py
+++ b/src/test/isolation2/sql_isolation_testcase.py
@@ -422,6 +422,7 @@ class SQLIsolationExecutor(object):
elif (("the database system is starting up" in str(e) or
"the database system is resetting" in str(e) or
"the database system is in recovery mode" in str(e) or
+ "the database system is not yet accepting connections" in str(e) or
"the database system is not accepting connections" in str(e)) and
retry > 1):
retry -= 1
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cloudberry.apache.org
For additional commands, e-mail: commits-help@cloudberry.apache.org