Skip to content

HA: nothing reports whether a replicated group change has been enforced on a peer #7529

Closed

Description

@robfrank

Found by the adversarial pass on the #7510 fix.

#7510 closes the lag: since that change a peer re-derives its cached permissions within milliseconds of
applying a SECURITY_GROUPS_ENTRY, on a dedicated single-worker executor
(arcadedb-security-permission-refresh, ServerSecurity.scheduleReplicatedPermissionRefresh) instead of
waiting for the arcadedb.server.security.reloadEvery tick.

What it does not close is the other half of that report - "the gap is invisible from every surface an
operator can check"
.

Evidence

The hand-off logs only on its two failure paths, and nothing on success:

} catch (final RejectedExecutionException e) {
  permissionRefreshPending.set(false);
  LogManager.instance().log(this, Level.WARNING, "Could not schedule the permission refresh ...");
}

and, per database, inside the sweep:

} catch (final Exception e) {
  LogManager.instance().log(this, Level.WARNING, "Could not refresh the cached permissions of database '%s' ...");
}

The executor is also not a DedicatedThreadPool and is not wired into PoolMetrics, so it does not appear on
Studio's "Executor Pools" card the way the engine pools do. That is consistent with its two closest
precedents - ArcadeStateMachine.snapshotInstallExecutor and lifecycleExecutor are not there either - but it
does mean there is no gauge, no counter and no timestamp anywhere that says a refresh happened.

Why it matters

An operator who narrows a permission gets a 200 from the node that served the request, which does mean
"enforced here" (ServerControlPlane.refreshPermissionsOf is synchronous on that node). For every other node
they still have nothing to read: GET /server/groups has reported the new document since #7373, whether or not
the peer has re-derived anything from it, and the only signal the refresh exists at all is the absence of a
WARNING. If the sweep were silently failing - a database that keeps throwing, an executor rejecting after a
restart raced a shutdown - the symptom would be identical to the pre-#7510 behaviour, and nothing would say so.

Likely shape of a fix

Something an operator can poll or scrape, rather than more logging:

  • a per-node counter of applied group entries and of completed refresh sweeps, plus the timestamp of the last
    one, next to the existing security/HA stats; or
  • wire the executor into PoolMetrics under its own pool= tag so the sweep's queue depth and completed count
    show up with the others.

A single INFO line per applied group entry naming how many databases were swept would be a cheaper partial
answer, but it is a log line, not something a dashboard can alert on.

Refs #7510, #7373

Activity

  1. added
    server
    ha
    observability
    on Sep 12, 2026
  2. added this to the 26.10.1 milestone on Sep 12, 2026
  3. added
    in progress
    on Sep 17, 2026
  4. self-assigned this
    on Sep 17, 2026
  5. added 3 commits that reference this issue on Sep 17, 2026
  6. removed
    in progress
    on Sep 17, 2026
  7. lvca commented on Sep 17, 2026

    @lvca
    Member

    Fixed in PR #7764 (merged).

    Each server now tracks whether the permission changes it received from the cluster have actually been applied, visible on GET /api/v1/server?mode=cluster (ha.securityRefresh) and as Prometheus metrics (arcadedb.ha.security.*). This is what an operator checks to be sure a permission change took effect everywhere, not just on the node they happened to talk to.

    ❤️ Thanks for helping make ArcadeDB better! ArcadeDB is free and open source, sustained by its community. If it's useful to you or your company, please consider becoming a sponsor to keep development going.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bughaobservabilityserver

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions