Please sign in to comment.
test: unflake async hooks statwatcher test
Under high load 2 types of issues arise with this test. * filesystem calls gets queued even when the 'sync' is used which leads to async_hooks being called with the events of tmpdir clean or initial file write after clean. This is solved by counting all 'change' calls while making sure there is no dependency of StatWatcher's on one another and the expected changes are waited for. * some events are getting lost with the current clean->write->write_and_watch strategy. Specifically I observed the file size going from 0 to 5 entirely skipping 3 even though the write call was there (this happened reliably on -j128). So I've changed the strategy to avoid additional write considering this still tests the hooks correctly. This may indicate some sort of bug in async_hooks though I'm not sure. Closes: #21425 PR-URL: #30362 Fixes: #21425 Reviewed-By: Stephen Belanger <firstname.lastname@example.org> Reviewed-By: Rich Trott <email@example.com> Reviewed-By: Richard Lau <firstname.lastname@example.org> Reviewed-By: Vladimir de Turckheim <email@example.com>
- Loading branch information
Showing with 53 additions and 42 deletions.