Skip to main content

Module flags

Module flags 

Source
Expand description

Process-global named flags (Java’s namedFlagsSet/Get/All BPL).

Operators flip these at runtime via the management API to gate features like “skip LTS reads while NFS is wedged” without restarting the appliance. Currently consumed by:

  • storage::tiered::TieredStorage reads — SKIP_<TIER>_FOR_RETRIEVAL
  • etl::executor::EtlExecutor writes — SKIP_<DEST>_FOR_ETL

Java wires these through ConfigService.getNamedFlag(...). We use a global so both the HTTP handler (in archiver-api) and the storage / ETL paths (in archiver-core) can share state without an extra trait.

Functions§

all
Snapshot of all flags as (name, value) pairs, sorted by name.
get
Get a named flag. Returns false if the flag is unset.
set
Set a named flag. Returns the previous value, or false if unset.
skip_tier_for_etl
Convenience: is SKIP_<tier>_FOR_ETL set?
skip_tier_for_retrieval
Convenience: is SKIP_<tier>_FOR_RETRIEVAL set? tier is uppercased.