0 Replies Latest reply on Apr 5, 2018 7:55 AM by keithwall

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

    keithwall

      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.