bulk storage BFT reads: reselect scans on retry
Fixes https://github.com/DACH-NY/cn-test-failures/issues/11921
It's an actual bug in the system, not a flaky test. If Scan "forgets" the data that it reported once as available (e.g. the operator manually deleted the object from staging), that Scan will still be included in the retries and expected to have the data, so that will get stuck in the retries. The fix is to include the scan selection step itself in the retry, and not rely on the first "has data" answer.
Pull Request Checklist
Cluster Testing
- If a cluster test is required, comment
/cluster_teston this PR to request it, and ping a maintainer to run it. - If an upgrade test is required, comment
/upgrade_teston this PR to request it, and ping a maintainer to run it. - If a logical synchronizer upgrade test is required (from canton-3.5), comment
/lsu_teston this PR to request it, and ping a maintainer to run it.
PR Guidelines
- Describe user-facing changes in the release notes, i.e. any change visible to anyone deploying, operating, integrating with or using Splice.
- Specify fixed issues with
Fixes #n, and mention issues worked on using#n - Include a screenshot for frontend-related PRs - see README or use your favorite screenshot tool
Merge Guidelines
- Make the git commit message look sensible when squash-merging on GitHub (most likely: just copy your PR description).