Forum Stats

  • 3,759,174 Users
  • 2,251,510 Discussions


FileDeletionDetector fails to close WatchService if Path#register throws an exception

An investigation into an inotify exhaustion problem on a Linux machine made me review the FileDeletionDetector in JE.    I noticed that on exception path, if Path#register throws an exception a WatchService instance goes out of scope without being closed.    As it turns out, this was unrelated to our problem, but report anyway.  I am using 7.4.5, but the same problem exists in 7.5.11.

This discussion has been closed.