HomeSoftware Heritage

journal_client: Ensure queue position does not overflow

Description

journal_client: Ensure queue position does not overflow

Queue positions are date and the current next_position_offset used to compute the new
queue position was not bounded. This has the side-effect of making overflow error.

This commit adapts the journal client computations to limit such next_position_offset to

  1. This value was chosen because above that exponent the dates overflow (and we are way

in the future already).

Related to T3502