# MergeException: java.io.FileNotFoundException

**URL:** <https://discuss.elastic.co/t/mergeexception-java-io-filenotfoundexception/8245>\
**Category:** Elasticsearch\
**Created:** [June 28, 2012, 1:51am UTC](https://discuss.elastic.co/t/mergeexception-java-io-filenotfoundexception/8245 "2012-06-28T01:51:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian\_Gavarini](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sebastian\_Gavarini](https://discuss.elastic.co/u/Sebastian_Gavarini)\
**Post date:** [June 28, 2012, 1:51am UTC](https://discuss.elastic.co/t/mergeexception-java-io-filenotfoundexception/8245/1 "2012-06-28T01:51:43Z")

</div>

Hello,

In the past few days I have seen in two different occasions a  
MergeException: java.io.FileNotFoundException: \_fg\_1.del  
details gisted: [https://gist.github.com/3002612](https://gist.github.com/3002612)

If you look carefully the date and time of the supposedly FileNotFound is  
the same as the error log, 2012-06-23 03:19, the mount is configured with  
noatime, so it's likely the date is the creation date, (ie the file is  
created at the same time that the check is failing), I guess it could be a  
concurrency race condition issue.

This was seen in two different configurations:

ES 0.18.5  
jrockit-jdk1.6.0\_26-R28.1.4-4.0.1-linux-x64.bin

and

ES 0.19.4  
jrockit-jdk1.6.0\_31-R28.2.3-4.1.0-linux-x64.bin

The HDDs are SSD, and the index that failed aren't exactly heavy loaded (I  
have other indices with more bulk adds for example).

It seems the merge policy thread dies, and a couple of hours later the  
whole ES server dies with "java.io.IOException: Too many open files".

I would appreciate some help and ideas with this.

Thanks,  
Sebastian.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:22am UTC](https://discuss.elastic.co/t/mergeexception-java-io-filenotfoundexception/8245/2 "2017-07-06T03:22:18Z")

</div>


