Repository navigation
Description
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
PoolMetricsunder its ownpool=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.
Activity
fix(#7523,#7529): reject narrowed priority values, complete the secur…
docs(#7515,#7523,#7529): point the race at its tracking issue, name t…
Merge pull request #7764 from ArcadeData/fix/issues-7515-7523-7524-75…
lvca commentedon Sep 17, 2026
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.
fix(ArcadeData#7515,ArcadeData#7523,ArcadeData#7524,ArcadeData#7528,A…