influxdb/ingester
Dom 02be6ba7e4
refactor: generic deferred loader helper (#6095)
* refactor: generic deferred loader helper

Splits the DeferredSortKey loader introduced in #5807 into two parts - a
generic helper type that implements deferred/background loading of
values, and SortKey specific logic for use with it.

As this will be more widley used, this implementation features improved
behaviour of the deferred loader under concurrent demand requests
(multiple calls to get() do not attempt to concurrently resolve the
value), as well as complete cancellation safety (cancelling the get()
doesn't affect the liveness of the background task).

* docs: doc-link & minor comment amendments

Fixes naming, adds missing doc-links, and expands some code comments.

* test: bound wait times to avoid hangs

Adds timeouts to all .await of the code under test, ensuring tests don't
hang if something goes wrong.
2022-11-10 19:16:51 +00:00
..
src refactor: generic deferred loader helper (#6095) 2022-11-10 19:16:51 +00:00
tests feat: use IDs in ingester query API (#6093) 2022-11-09 11:25:13 +00:00
Cargo.toml chore: Update datafusion and arrow/arrow-flight/parquet to `26.0.0` (#6061) 2022-11-07 11:01:58 +00:00