-
Notifications
You must be signed in to change notification settings - Fork 0
Improved overflow support: Recursive directory watches #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
sungshik
merged 36 commits into
improved-overflow-support-main
from
improved-overflow-support/jdk-file-tree-watch
Mar 28, 2025
Merged
Changes from 7 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
d51d88f
Update torture test to ignore overflows (they're auto-handled)
sungshik 671d5eb
Add `JDKFileTreeWatch`
sungshik 62f4b1c
Move `updateChildWatches` to inner class
sungshik 36c4299
Merge branch 'improved-overflow-support-main' into improved-overflow-…
sungshik 47b8a10
Use `computeIfAbsent` instead of `putIfAbsent`
sungshik 500e238
Update `JDKRecursiveDirectoryWatch`
sungshik 6a328bf
Add import
sungshik 4aed091
Improve code quality of `JDKFileTreeWatch`
sungshik 71ac833
Improve code quality of `JDKFileTreeWatch`
sungshik fa65b30
Add mechanism to avoid relativization in `JDKFileTreeWatch`
sungshik fdd24f8
Simplify relativization of paths in `JDKFileTreeWatch`
sungshik 3bdafe6
Change order of closing internal/child watches in `JDKFileTreeWatch`
sungshik 4582d23
Simplify relativization of paths in `JDKFileTreeWatch`
sungshik 6a7df86
Use file names to store child watches (instead of full paths)
sungshik e676b5f
Use `JDKFileTreeWatch`
sungshik 387e7c3
Add asynchronous bookkeeping of `CREATED` and `OVERFLOW` events
sungshik 748e8ac
Fix issue that `JDKFileTreeWatch` relied on overflow handling to pres…
sungshik 4a1423b
Add license
sungshik 1ab8f29
Make the child watches updater asynchronous
sungshik 385db76
Add code to close child watches when their directories no longer exis…
sungshik 58d9561
Remove `JDKRecursiveDirectoryWatch` (replaced by `JDKFileTreeWatch`)
sungshik c96c943
Add filtering mechanism to `Watcher` and `JDK...` classes
sungshik eca305b
Move method implementation from base class to subclass (was already o…
sungshik 408c9d7
Improve logic to close `JDK...Watch` classes (avoid event handling o…
sungshik e0f039d
Fix a few relativization issues in `JDKFileTreeWatch` and `IndexingRe…
sungshik b8adb45
Add event filter to test
sungshik bbd1d39
Add test to check if overflows are recoverd from
sungshik 02b10b7
Fix JavaDoc
sungshik 76ec380
Remove old test
sungshik 2cc3c66
Remove `trySleep` helpers
sungshik b760db9
Rename method to better convey intent
sungshik 9b58bc4
Revert change to `relativize` in `JDKFileTreeWatch` (and add comment …
sungshik 84b627b
Move closed check to `handleEvent`
sungshik e53569a
Add general `handleEvent` implementation back to the base watch
sungshik 6feac60
Fix race in closing child watches
sungshik 3f80e77
Merge branch 'improved-overflow-support-main' into improved-overflow-…
sungshik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.