Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException on ResourceWatcherService #7689

Closed
gregoryb opened this issue Sep 11, 2014 · 2 comments · Fixed by #7953
Closed

NullPointerException on ResourceWatcherService #7689

gregoryb opened this issue Sep 11, 2014 · 2 comments · Fixed by #7953
Assignees
Labels

Comments

@gregoryb
Copy link

I made a mistake while i deployed a script. I created a file (instead of a directory) named "scripts" to save my script. And now, even if scripts is a directory (with the script inside), i got the following exception

[2014-09-11 13:55:15,117][WARN ][threadpool ] [Barristan] failed to run org.elasticsearch.watcher.ResourceWatcherService$ResourceMonitor@5985e4fa java.lang.NullPointerException at org.elasticsearch.watcher.FileWatcher$FileObserver.updateChildren(FileWatcher.java:184) at org.elasticsearch.watcher.FileWatcher$FileObserver.checkAndNotify(FileWatcher.java:93) at org.elasticsearch.watcher.FileWatcher.doCheckAndNotify(FileWatcher.java:47) at org.elasticsearch.watcher.AbstractResourceWatcher.checkAndNotify(AbstractResourceWatcher.java:43) at org.elasticsearch.watcher.ResourceWatcherService$ResourceMonitor.run(ResourceWatcherService.java:102) at org.elasticsearch.threadpool.ThreadPool$LoggingRunnable.run(ThreadPool.java:440) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745)

@gregoryb
Copy link
Author

ES v1.2.1

@rjernst
Copy link
Member

rjernst commented Sep 12, 2014

I'm not able to reproduce this. I added a test, which passes on 1.x and the 1.2.1 release. Can you list of set of reproducible steps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants