osx - java os-x watchservice deadlocks -


i'm wondering if others have seen java 8 watch service on os x hang (deadlock).

i'm using watch service (obtained using filesystems.getdefault().newwatchservice()) monitoring create/delete/modify events associated files/sub-directories under directory. service appears work fine on windows, on os x appears hang when several new directories created in short time span. haven't had time precisely characterize conditions cause this, rapid directory creation , renaming of directories under folder being watched reproduces problem.

to precise, thread in our code invokes path.register() function (for registering directory watch service) appears hang following stack trace:

at sun.nio.fs.pollingwatchservice$pollingwatchkey.disable(pollingwatchservice.java:296) @ sun.nio.fs.pollingwatchservice.doprivilegedregister(pollingwatchservice.java:169) @ sun.nio.fs.pollingwatchservice.access$000(pollingwatchservice.java:45) @ sun.nio.fs.pollingwatchservice$2.run(pollingwatchservice.java:128) @ sun.nio.fs.pollingwatchservice$2.run(pollingwatchservice.java:125) @ java.security.accesscontroller.doprivileged(native method) @ sun.nio.fs.pollingwatchservice.register(pollingwatchservice.java:124) @ sun.nio.fs.unixpath.register(unixpath.java:897) @ myclass.functionfoo (myclass:xyz)    <----- invoke register() here. 

looks bug# jdk-8079620 logged few months ago on openjdk site has similar set of symptoms.

any 1 else encountered problem? suggested workarounds?


Comments

Popular posts from this blog

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -