Closed cbowman0 closed 3 weeks ago
A change like the following appeared to work with tests, but that's possibly the entirely wrong solution:
diff --git a/conffile.l b/conffile.l
index 5588135..8cae157 100644
--- a/conffile.l
+++ b/conffile.l
@@ -125,7 +125,7 @@ match {
return crTO;
}
<idcl>blackhole return crBLACKHOLE;
-<ma,idcl>stop return crSTOP;
+<ma,idcl,ag>stop return crSTOP;
rewrite {
identstate = re;
I think this is indeed an oversight, have you by chance been able to run the tests with that patch in place?
Yes. Tests ran with the proposed solution.
I created a PR with a test case specific for this.
fixed via #464
A config like the following throws a syntax error:
with this error:
Looking into the parse, I believe the
stop
is only valid when it follows asend to
. The configuration syntax guide doesn't show that the[stop]
is nested inside the[send to <cluster ...>]
conditional, so I assumed it was valid.I am intending to switch the aggregate configurations we have to use
send to <cluster> stop
so I'll get stop that way, but can the docs be updated to reflect the stop doesn't work without send to OR, if it's supposed to be valid can the the parser be adjusted to accept stop without a send to for aggregate?