C6 and the singleton wrap: the service names its own org, one filer per cluster (#16) #18
Loading…
Reference in a new issue
No description provided.
Delete branch "vesta/16-wave2"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs macula-services/mcl-scribe#16
The last step of wave 2 for the scribe (martha-ai/mcl-martha#1, macula-services/mcl-om#8): C6, and A3 package 4 answered by ruling the wrap out.
mcl_om~> 1.9— hex 1.9.0 (checksum76BF6386…0C76029), the first release withservice_org/1.mcl_scribe_service:info/0gainsorg => <<"mcl-scribe">>, and the{org, ...}line leaves themcl_omblock ofconfig/sys.config.srcin the same commit: on a node that hosts several services, one env line would name one org for all of them.guide_lessons_sup. The scribe log is a single-node reckon-db store on each node's own volume, and the lesson filer writes each lesson's final state into that log, whichlessons_to_statusprojects into thelesson_statusthat node answers. A cluster-widemcl_om_singletonwould leave every lesson recorded on a standby nodequeuedforever. The filer runs where its log runs — the same ruling as mcl-graph#15's learner. The corrected issue #16 note carries what a double run does (there is none while the store is per node) and when the singleton would be right (a shared, replicated log).Tests.
guide_lessons_sup_testspins the filer as a plain child ([lesson_filer, on_lesson_recorded_file_lesson], start{lesson_filer, start_link, []}), so a quiet re-wrap fails the suite; the C6 test pinsinfo/0's org and that the release config no longer carries{org,; the grants and release-config tests read the org frominfo/0now.Gates on the tip as it stands (
d9551a3), OTP 28:lint,xref,eunit(80 tests),dialyzer— all green locally.mcl_om moves to ~> 1.9, the first hex release with service_org/1 and mcl_om_singleton (mcl-om#8, A3 package 3). C6: the service names its own org in info/0, and the {org, ...} line leaves the mcl_om env in the same commit. A node that hosts several services cannot hold one org for all of them in an env; each names its own. A3 package 4: the lesson filer is started through mcl_om_singleton, so a cluster runs one filer instead of one per node. Under a netsplit each connected partition runs one, which is the double run that existed before and is safe: filing is at least once and final exactly once, so a lesson filed from both sides lands on the same mcl-rag chunk. The handler stays on every node; a standby's cast reaches no local filer and is dropped, and a node that takes over rescans the log at start.Landed by fast-forward: main is
d9551a35ca(fromb88e564f). This repository does not allow the manually-merged style, so the PR is closed by hand.Pull request closed