The HashSet based cyclic sector validation sometimes cares about extra sector ids. This can lead to unexpected exceptions thrown when the last sector is precisely at the end of the difatStream.
This MR moves that validation to only care about sectors that will be used, and adds a unit test to highlight/cover the issue.
The HashSet based cyclic sector validation sometimes cares about extra sector ids. This can lead to unexpected exceptions thrown when the last sector is precisely at the end of the difatStream.
This MR moves that validation to only care about sectors that will be used, and adds a unit test to highlight/cover the issue.