[ 
https://issues.apache.org/jira/browse/SLING-12490?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17930705#comment-17930705
 ] 

Stefan Seifert commented on SLING-12490:
----------------------------------------

{quote}Just remember that FileWatches don't work recursively.
{quote}
uh, yes, i was also researching currently a bit in that direction.

it seems there are probably more unwanted side effects: if a watcher is 
registered for every path recursively, those paths cannot be removed (at least 
not in windows), from what i've read. that is something we definitely do not 
want.

my initial hope was to eliminate the unit tests flakiness we have currently on 
the windows machines in jenkins. we do not want to replace one problem with 
another.

> Use NIO FileWatch API
> ---------------------
>
>                 Key: SLING-12490
>                 URL: https://issues.apache.org/jira/browse/SLING-12490
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Carsten Ziegeler
>            Assignee: Stefan Seifert
>            Priority: Major
>             Fix For: File System Resource Provider 2.2.2
>
>
> We currently poll the file system periodically for changes. This code was 
> written before the file watch API become available in the JDK. We should 
> switch to that instead.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to