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_storeto exercise read-modify-write. - PROBE_
TIMEOUT ๐ - The budget of one
probe_object_storecall, 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_storeprobes underprefix. - probe_
object_ ๐store - Checks that
storesupports 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 ๐