Fix flaky ut TPDiskTest.ChunkWriteDifferentOffsetAndSize#34455
Fix flaky ut TPDiskTest.ChunkWriteDifferentOffsetAndSize#34455rosik merged 1 commit intoydb-platform:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes a flaky unit test TPDiskTest.ChunkWriteDifferentOffsetAndSize that had an 85.7% success rate due to a bug in random data generation. The issue was in the GenParts function which could cause an abort when calling rng.Uniform(0) in certain edge cases.
Changes:
- Fixed random part size generation to avoid calling
Uniformwith an empty range that would trigger an abort
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
⚪
🟢 |
|
⚪
🟢 |
|
🟢 |
Changelog category
Description for reviewers
Flaky test: