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Β§
- Deferred
Lease πWork - Work a region runs once it is a writable leader with its Leader lease.
- Pending
Ddls π - Lifecycle requests waiting for a region manifest operation to finish.
- Region
Worker π - Worker to write and alter regions bound to it.
- Region
Worker πLoop - Background worker loop to handle requests.
- Stalled
Requests π - Buffer for stalled write requests.
- Worker
Group π - A fixed size group of RegionWorkers.
- Worker
Listener π - Wrapper that only calls event listener in tests.
- Worker
Starter π - 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_stagingdoes. - 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Β§
- Request
Buffer π - Worker
Id π - Identifier for a worker.