Repository navigation
Stop the parent-then-child test writer by its own clock - #1778
Merged
Merged
Conversation
A query waits for a writer that creates folders faster than they are walked, so a writer stopped only once the queries end could run until the inotify watch limit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1777
queries_never_fail_while_a_writer_creates_parents_then_childrenstopped its writer only after its query loop ended. A query waits for a writer that creates folders faster than they are walked, which is the documented, accepted limit. Under a slow or contended runner, eachafter_walksround brought in more new folders than the last. The batch never ended, the writer never stopped, and the query failed when the inotify watch limit ran out. No watches leaked: the count stayed at or below the number of real directories.The writer now stops by its own clock (3 s), the same pattern
folder_created_while_running.rsalready uses. The assertion is unchanged: every query must succeed. No product change.Red: main's Rust CI run 44447544207, job 135303265793:
1 of 6 queries failed; first: inotify watch limit reached, binary finished in 101.35s.Manual exercise: a local contended repro, with the test pinned to one core shared with 3
yeshogs. Before the change it hung past the timeout (round sizes 26 → 6836 events, growing about ×1.6 per round). After it, 3 runs passed in 4.52s, 4.66s and 4.71s.E2E Verification
Test-only change under
packages/rust/tests/, so no e2e suite is affected and no receipt is owed. Rancargo test --test queries_apply_eventslocally (pass).