The test on main counts the total number of unlinkable_block occurrences in all logging files and checks if it is greater than 500 or not. This is flaky because when sync fetch span is greater than 500 (default is 1000), temporary unlinkable blocks can be greater than 500.
This PR changes to check the number of consecutive unlinkable blocks in each logging file is less than sync fetch span (the worst case).
Forward https://github.com/AntelopeIO/spring/pull/1033 with updated pattern of unlinkable blocks on the main branch.
The test on
main
counts the total number ofunlinkable_block
occurrences in all logging files and checks if it is greater than500
or not. This is flaky because when sync fetch span is greater than 500 (default is 1000), temporary unlinkable blocks can be greater than 500.This PR changes to check the number of consecutive unlinkable blocks in each logging file is less than sync fetch span (the worst case).
Resolves https://github.com/AntelopeIO/spring/issues/1015