test(qwp): make failed segment cleanup test deterministic - #81
Conversation
When deleting an acknowledged store-and-forward segment fails, the client keeps the file so cleanup can be retried safely. The test failed deletion only once, allowing the background worker to delete the file before the test checked it. Keep deletion failing until those checks finish, then allow and verify cleanup.
|
Both tests pass on JDK 8 (the source-of-truth target). The earlier failure was a pre-existing environment issue (modern JDK compiling the Review: PR #81 —
|
When deleting an acknowledged store-and-forward segment fails, the client keeps the file so cleanup can be retried safely.
The test failed deletion only once, allowing the background worker to delete the file before the test checked it.
Keep deletion failing until those checks finish, then allow and verify cleanup.