https://forge.softwareheritage.org/source/swh-scheduler.git
Revision 506f78c827e37ff841140d6f44ea66f96d6a8cb0 authored by Antoine R. Dumont (@ardumont) on 25 August 2021, 16:15:06 UTC, committed by Antoine R. Dumont (@ardumont) on 26 August 2021, 08:24:11 UTC
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
10. This value was chosen because above that exponent the dates overflow (and we are way
in the future already).

Related to T3502
1 parent 28ae1d8
History
Tip revision: 506f78c827e37ff841140d6f44ea66f96d6a8cb0 authored by Antoine R. Dumont (@ardumont) on 25 August 2021, 16:15:06 UTC
journal_client: Ensure queue position does not overflow
Tip revision: 506f78c
File Mode Size
README.md -rw-r--r-- 646 bytes
elastic-template.json -rw-r--r-- 1.7 KB
update-index-settings.json -rw-r--r-- 58 bytes

README.md

back to top