runtime: FileSystemWatcher tests fail intermittently on Unix due to too many open inotify instances
http://dotnet-ci.cloudapp.net/job/dotnet_corefx/job/centos7.1_release_tst_prtest/1094/console
19:32:38 FileSystemWatcherTests.FileSystemWatcher_EnableRaisingEvents [FAIL]
19:32:38 System.IO.IOException : The configured user limit (128) on the number of inotify instances has been reached.
19:32:38 Stack Trace:
19:32:38 at System.IO.FileSystemWatcher.StartRaisingEvents()
19:32:38 at FileSystemWatcherTests.FileSystemWatcher_EnableRaisingEvents()
19:32:38 Finished: System.IO.FileSystem.Watcher.Tests
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 16 (16 by maintainers)
By default the number of inotify instances allowed is relatively low (128), and we use one to back FileSystemWatcher. If the machine on which the tests are running happens to be doing other things at the same time that creates inotify instances, we could bump up against this.
@mmitche, can we up the default limits on the machines used in CI? I believe this can be done by adding a line like the following to the end of the /etc/sysctl.conf file: