C6 and the singleton wrap: the service names its own org, one filer per cluster (#16) #18

Closed
vesta wants to merge 0 commits from vesta/16-wave2 into main
Member

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 (checksum 76BF6386…0C76029), the first release with service_org/1.
  • C6 — the service names its own org. mcl_scribe_service:info/0 gains org => <<"mcl-scribe">>, and the {org, ...} line leaves the mcl_om block of config/sys.config.src in the same commit: on a node that hosts several services, one env line would name one org for all of them.
  • A3 package 4 — the wrap is ruled out, with the reason in 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, which lessons_to_status projects into the lesson_status that node answers. A cluster-wide mcl_om_singleton would leave every lesson recorded on a standby node queued forever. 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_tests pins 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 pins info/0's org and that the release config no longer carries {org,; the grants and release-config tests read the org from info/0 now.

Gates on the tip as it stands (d9551a3), OTP 28: lint, xref, eunit (80 tests), dialyzer — all green locally.

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 (checksum `76BF6386…0C76029`), the first release with `service_org/1`. - **C6 — the service names its own org.** `mcl_scribe_service:info/0` gains `org => <<"mcl-scribe">>`, and the `{org, ...}` line leaves the `mcl_om` block of `config/sys.config.src` in the same commit: on a node that hosts several services, one env line would name one org for all of them. - **A3 package 4 — the wrap is ruled out, with the reason in `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, which `lessons_to_status` projects into the `lesson_status` that node answers. A cluster-wide `mcl_om_singleton` would leave every lesson recorded on a standby node `queued` forever. The filer runs where its log runs — the same ruling as mcl-graph#15's learner. The corrected [issue #16 note](https://git.macula.io/macula-services/mcl-scribe/issues/16#issuecomment-8104) 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_tests` pins 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 pins `info/0`'s org and that the release config no longer carries `{org,`; the grants and release-config tests read the org from `info/0` now. Gates on the tip as it stands (`d9551a3`), OTP 28: `lint`, `xref`, `eunit` (80 tests), `dialyzer` — all green locally.
One filer per cluster and the service's own org: C6 and the singleton wrap (#16)
Some checks failed
c4 model / c4-model (pull_request) Has been cancelled
c4 model / c4-model-1 (pull_request) Has been cancelled
lint-and-test / check (pull_request) Has been cancelled
3c23a9eec2
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.
The filer stays beside its own log: the singleton wrap is ruled out (#16)
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
lint-and-test / check (pull_request) Successful in 3m39s
build-and-push / guard-1 (push) Successful in 4s
build-and-push / guard (push) Successful in 0s
c4 model / c4-model-1 (push) Successful in 6s
c4 model / c4-model (push) Successful in 0s
build-and-push / check (push) Successful in 4m2s
build-and-push / test (push) Successful in 0s
build-and-push / Release (forge, v* tag) (push) Has been skipped
lint-and-test / check (push) Successful in 4m9s
d9551a35ca
The scribe log is a single-node store per node and lesson_filer writes each
lesson's final state into it, which lesson_status projects. Under
mcl_om_singleton a lesson recorded on a standby node would never be filed.
C6 and the ~> 1.9 pin stand.
Member

Landed by fast-forward: main is d9551a35ca (from b88e564f). This repository does not allow the manually-merged style, so the PR is closed by hand.

Landed by fast-forward: main is d9551a35caf6bd7b01533ed7896e7e8ee769e833 (from b88e564f). This repository does not allow the manually-merged style, so the PR is closed by hand.
terra closed this pull request 2026-12-02 09:45:47 +00:00
All checks were successful
c4 model / c4-model-1 (pull_request) Successful in 3s
c4 model / c4-model (pull_request) Successful in 0s
lint-and-test / check (pull_request) Successful in 3m39s
build-and-push / guard-1 (push) Successful in 4s
build-and-push / guard (push) Successful in 0s
c4 model / c4-model-1 (push) Successful in 6s
c4 model / c4-model (push) Successful in 0s
build-and-push / check (push) Successful in 4m2s
build-and-push / test (push) Successful in 0s
build-and-push / Release (forge, v* tag) (push) Has been skipped
lint-and-test / check (push) Successful in 4m9s

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
macula-services/mcl-scribe!18
No description provided.