Skip to main content

Module store

Module store 

Source
Expand description

object storage utilities

Constantsยง

PROBE_CLEANUP_TIMEOUT ๐Ÿ”’
The budget of the best-effort cleanup after a timed-out probe, kept short so an unresponsive store cannot block startup a second time.
PROBE_CONTENT ๐Ÿ”’
The content written by probe_object_store.
PROBE_DIR ๐Ÿ”’
The directory that holds the objects created by probe_object_store.
PROBE_STAGGER ๐Ÿ”’
The maximum random delay before a probe starts. It is short enough that startup waits at most this delay, and it spreads out the probes of providers that share an object storage.
PROBE_SUFFIX ๐Ÿ”’
The content appended by probe_object_store to exercise read-modify-write.
PROBE_TIMEOUT ๐Ÿ”’
The budget of one probe_object_store call, including the retries an object store makes on top of its 30s request timeout.

Functionsยง

clean_old_read_cache ๐Ÿ”’
Cleans up old LRU read cache directories that were removed.
new_object_store
probe_key_prefix ๐Ÿ”’
Returns a unique key prefix for probe_object_store, so datanodes sharing the same bucket and root do not collide.
probe_object_key ๐Ÿ”’
Returns the object key probe_object_store probes under prefix.
probe_object_store ๐Ÿ”’
Checks that store supports the operations the storage engines rely on: write, read, overwrite, list and delete.
probe_start_delay ๐Ÿ”’
Returns a random delay in [0, PROBE_STAGGER).
remove_probe_object ๐Ÿ”’
Removes the probe object of a probe that did not finish.
verify_content ๐Ÿ”’