Skip to main content

Module worker

Module worker 

Source
Expand description

Structs and utilities for writing regions.

ModulesΒ§

handle_alter πŸ”’
Handling alter related requests.
handle_apply_staging πŸ”’
handle_bulk_insert πŸ”’
Handles bulk insert requests.
handle_catchup πŸ”’
Handling catchup request and the end of a region’s wait for its Leader lease.
handle_close πŸ”’
Handling close request.
handle_compaction πŸ”’
handle_copy_region πŸ”’
handle_create πŸ”’
Handling create request.
handle_drop πŸ”’
Handling drop request.
handle_enter_staging πŸ”’
handle_flush πŸ”’
Handling flush related requests.
handle_manifest πŸ”’
Handles manifest.
handle_open πŸ”’
Handling open request.
handle_rebuild_index πŸ”’
Handles index build requests.
handle_reload πŸ”’
Reloading a region fenced by a manifest version conflict, or by a failed tail replay round that found a newer manifest.
handle_remap πŸ”’
handle_tail_replay πŸ”’
Starting, applying and ending background replays of pending WAL tails, and discarding pending tails without replaying them.
handle_truncate πŸ”’
Handling truncate related requests.
handle_write πŸ”’
Handling write requests.

StructsΒ§

DeferredLeaseWork πŸ”’
Work a region runs once it is a writable leader with its Leader lease.
PendingDdls πŸ”’
Lifecycle requests waiting for a region manifest operation to finish.
RegionWorker πŸ”’
Worker to write and alter regions bound to it.
RegionWorkerLoop πŸ”’
Background worker loop to handle requests.
StalledRequests πŸ”’
Buffer for stalled write requests.
WorkerGroup πŸ”’
A fixed size group of RegionWorkers.
WorkerListener πŸ”’
Wrapper that only calls event listener in tests.
WorkerStarter πŸ”’
Worker start config.

ConstantsΒ§

CHECK_REGION_INTERVAL πŸ”’
Interval to check whether regions should flush.
DROPPING_MARKER_FILE πŸ”’
MAX_INITIAL_CHECK_DELAY_SECS πŸ”’
Max delay to check region periodical tasks.
MAX_PENDING_DDLS_PER_REGION πŸ”’
Maximum number of pending DDL requests per region.

FunctionsΒ§

drain_ended_staging πŸ”’
Has the worker handle the writes it stalled while the region was ending staging, and waits until it has. Await it only as MitoRegion::end_staging does.
index_registry πŸ”’
Constructs the shared registry for region creation and index maintenance.
reclaim_legacy_series_cache πŸ”’
Reclaim the retired, versioned local sidecar cache. Only numeric region directories belong to this format. Leave unrelated directories and the cache mount itself intact.
region_id_to_index πŸ”’
worker_init_check_delay πŸ”’
Computes a initial check delay for a worker.
write_cache_from_config

Type AliasesΒ§

RequestBuffer πŸ”’
WorkerId πŸ”’
Identifier for a worker.