Skip to main content

Module timeline

Module timeline 

Source
Expand description

A mechanism to ensure that a sequence of writes and reads proceed correctly through timestamps.

Structsยง

TimelineState ๐Ÿ”’
Global state for a single timeline.

Enumsยง

TimelineContext
An enum describing whether or not a query belongs to a timeline and whether the query can be affected by the timestamp at which it executes.

Functionsยง

check_runaway_write_ts ๐Ÿ”’
Logs an error when timestamp is further ahead of now than a local write timestamp should ever be, the signal that the EpochMilliseconds timeline has run away (e.g. after a wall-clock regression).
timedomain_for ๐Ÿ”’
Return the set of ids in a timedomain and verify timeline correctness.
upper_bound ๐Ÿ”’
Convenience function for calculating the current upper bound that we want to prevent the global timestamp from exceeding.