cluster-devel.redhat.com archive mirror
 help / color / mirror / Atom feed
* [Cluster-devel] [DLM PATCH] dlm_controld: handle the case of network transient disconnection
@ 2016-05-12  9:16 Eric Ren
  2016-05-12 16:51 ` David Teigland
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Ren @ 2016-05-12  9:16 UTC (permalink / raw)
  To: cluster-devel.redhat.com

DLM would be stuck in "need fencing" state, although cluster can
regain quorum very quickly after a network transient disconnection.

It's possible that this process happens within one monoclock. It
means "cluster_quorate_monotime" can eqaul "node->daemon_rem_time".
We now skip this chance of telling corosync to kill cluster for
stateful merge. As a result, any fencing cannot proceed further.

Signed-off-by: Eric Ren <zren@suse.com>
---
 dlm_controld/daemon_cpg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlm_controld/daemon_cpg.c b/dlm_controld/daemon_cpg.c
index 356e80d..cd8a4e2 100644
--- a/dlm_controld/daemon_cpg.c
+++ b/dlm_controld/daemon_cpg.c
@@ -1695,7 +1695,7 @@ static void receive_protocol(struct dlm_header *hd, int len)
 		node->stateful_merge = 1;
 
 		if (cluster_quorate && node->daemon_rem_time &&
-		    cluster_quorate_monotime < node->daemon_rem_time) {
+		    cluster_quorate_monotime <= node->daemon_rem_time) {
 			if (!node->killed) {
 				if (cluster_two_node) {
 					/*
-- 
2.6.6



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-16 17:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-12  9:16 [Cluster-devel] [DLM PATCH] dlm_controld: handle the case of network transient disconnection Eric Ren
2016-05-12 16:51 ` David Teigland
2016-05-13  5:45   ` Eric Ren
2016-05-13 15:49     ` David Teigland
2016-05-16  7:44       ` Eric Ren
2016-05-16 17:02         ` David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).