async fn bracket_online_text_import(
compute: &ComputeNode,
config: &TextPluginConfig,
) -> Result<Option<TextImportBracket>, DevError>Expand description
Take the online import’s text rebuild lease (waratah_text’s import
config; fingerprint-checked against any existing index by the
partition’s begin) so PutTextIndex frames have somewhere to land.
Returns the bracket; None when another driver already holds the lease
(the import still loads — puts are only fenced during a WIPE lease —
but the stamp must then be left to that driver). A no-op when the
plugin is disabled.
The lease is renewed on a background task for the bracket’s whole life: a large import can outlive the partition’s one-hour lease deadline, and an expired lease means finish is rejected and a stale takeover may wipe under the import.