risingwave_common::util

Module epoch

source

Modules§

Structs§

Constants§

Statics§

Traits§

  • There are numerous operations in our system’s unit tests that involve incrementing or decrementing the epoch. These extensions for u64 type are specifically used within the unit tests.

Functions§

  • As most unit tests initialize a new epoch from a random value (e.g. 1, 2, 233 etc.), but the correct epoch in the system is a u64 with the last EPOCH_AVAILABLE_BITS bits set to 0. This method is to turn a a random epoch into a well shifted value.