From: Christopher Date: Sun, 8 Mar 2020 15:40:08 +0000 (-0500) Subject: revert json changes X-Git-Url: http://git.entropealabs.com/?a=commitdiff_plain;h=579e659fd121d5a38da06e325be5aa226d994101;p=cluster_kv.git revert json changes --- diff --git a/priv/ring.json b/priv/ring.json index 21675f6..4a07b37 100644 --- a/priv/ring.json +++ b/priv/ring.json @@ -17,6 +17,14 @@ "Type": "Choice", "Resource": "HandleReady", "Choices": [ + { + "StringEquals": ":node_up", + "Next": "ReadyNodeUp" + }, + { + "StringEquals": ":node_down", + "Next": "ReadyNodeDown" + }, { "StringEquals": ":anti_entropy", "Next": "AntiEntropy" @@ -25,6 +33,28 @@ "InputPath": "", "OutputPath": "" }, + "QuorumNodeUp": { + "Type": "Task", + "Resource": "HandleNodeUp", + "TransitionEvent": ":node_added", + "Catch": [], + "InputPath": "", + "OutputPath": "", + "ResourcePath": "", + "Next": "Quorum", + "End": false + }, + "ReadyNodeUp": { + "Type": "Task", + "Resource": "HandleNodeUp", + "TransitionEvent": ":node_added", + "Catch": [], + "InputPath": "", + "OutputPath": "", + "ResourcePath": "", + "Next": "Ready", + "End": false + }, "Quorum": { "Type": "Choice", "Resource": "AwaitQuorum", @@ -32,11 +62,41 @@ { "StringEquals": ":quorum", "Next": "Ready" + }, + { + "StringEquals": ":node_up", + "Next": "QuorumNodeUp" + }, + { + "StringEquals": ":node_down", + "Next": "QuorumNodeDown" } ], "InputPath": "", "OutputPath": "" }, + "ReadyNodeDown": { + "Type": "Task", + "Resource": "HandleNodeDown", + "TransitionEvent": ":node_removed", + "Catch": [], + "InputPath": "", + "OutputPath": "", + "ResourcePath": "", + "Next": "Quorum", + "End": false + }, + "QuorumNodeDown": { + "Type": "Task", + "Resource": "HandleNodeDown", + "TransitionEvent": ":node_removed", + "Catch": [], + "InputPath": "", + "OutputPath": "", + "ResourcePath": "", + "Next": "Quorum", + "End": false + }, "AntiEntropy": { "Type": "Task", "Resource": "HandleAntiEntropy",