Skip to content

utils.split_range: Make computed ranges not overlap

Existing listers use the is_within_bound [1] method from the base lister. This method uses inclusive boundaries in all cases.

As some "range" task listers [2] [3] are using split_range function to create "overlapping" ranges, this can be the concurrent insert issue cause we found [4].

This commit adapts the function split_range to make the generated ranges no longer overlap.

Related to #2577 (closed)

Test Plan

tox


Migrated from D3899 (view on Phabricator)

Merge request reports