# How to solve "failed to merge org.apache.lucene.store.AlreadyClosedException: this Directory is closed"

**URL:** <https://discuss.elastic.co/t/how-to-solve-failed-to-merge-org-apache-lucene-store-alreadyclosedexception-this-directory-is-closed/18899>\
**Category:** Elasticsearch\
**Created:** [July 25, 2014, 10:04am UTC](https://discuss.elastic.co/t/how-to-solve-failed-to-merge-org-apache-lucene-store-alreadyclosedexception-this-directory-is-closed/18899 "2014-07-25T10:04:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Warat\_Wongmaneekit](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@Warat\_Wongmaneekit](https://discuss.elastic.co/u/Warat_Wongmaneekit)\
**Post date:** [July 25, 2014, 10:04am UTC](https://discuss.elastic.co/t/how-to-solve-failed-to-merge-org-apache-lucene-store-alreadyclosedexception-this-directory-is-closed/18899/1 "2014-07-25T10:04:20Z")

</div>

I saw a lot of error log and we need to fix this problem but we don't know  
solution please help us.

_Example log_

[2014-07-25 06:00:23,366][WARN][cluster.action.shard] [Host88]  
[instagram][26] sending failed shard for [instagram][26],  
node[sQEMBQGMT1eyDrPwF-xGeA], [P], s[STARTED], indexUUID  
[nG3g-7ZyQqC0a2usE05oWw], reason [engine failure, message  
[MergeException[java.io.EOFException: read past EOF:  
MMapIndexInput(path="/var/lib/elasticsearch/zocialinc/nodes/0/indices/instagram/26/index/\_tsw3\_es090\_0.pos")];  
nested: EOFException[read past EOF:  
MMapIndexInput(path="/var/lib/elasticsearch/zocialinc/nodes/0/indices/instagram/26/index/\_tsw3\_es090\_0.pos")];  
]]

[2014-07-25 06:00:23,367][WARN][index.merge.scheduler] [Host88]  
[instagram][26] failed to merge  
org.apache.lucene.store.AlreadyClosedException: this Directory is closed

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/afe97a7d-5706-4613-b139-a44684b212a8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/afe97a7d-5706-4613-b139-a44684b212a8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Warat\_Wongmaneekit](https://avatars.discourse-cdn.com/v4/letter/w/50afbb/32.png) [@Warat\_Wongmaneekit](https://discuss.elastic.co/u/Warat_Wongmaneekit)\
**Post date:** [July 27, 2014, 11:34am UTC](https://discuss.elastic.co/t/how-to-solve-failed-to-merge-org-apache-lucene-store-alreadyclosedexception-this-directory-is-closed/18899/2 "2014-07-27T11:34:35Z")

</div>

Anyone can help me?

เมื่อ วันศุกร์ที่ 25 กรกฎาคม ค.ศ. 2014, 17 นาฬิกา 4 นาที 20 วินาที UTC+7,  
Warat Wongmaneekit เขียนว่า:

> I saw a lot of error log and we need to fix this problem but we don't know  
> solution please help us.
> 
> _Example log_
> 
> [2014-07-25 06:00:23,366][WARN][cluster.action.shard] [Host88]  
> [instagram][26] sending failed shard for [instagram][26],  
> node[sQEMBQGMT1eyDrPwF-xGeA], [P], s[STARTED], indexUUID  
> [nG3g-7ZyQqC0a2usE05oWw], reason [engine failure, message  
> [MergeException[java.io.EOFException: read past EOF:  
> MMapIndexInput(path="/var/lib/elasticsearch/zocialinc/nodes/0/indices/instagram/26/index/\_tsw3\_es090\_0.pos")];  
> nested: EOFException[read past EOF:  
> MMapIndexInput(path="/var/lib/elasticsearch/zocialinc/nodes/0/indices/instagram/26/index/\_tsw3\_es090\_0.pos")];  
> ]]
> 
> [2014-07-25 06:00:23,367][WARN][index.merge.scheduler] [Host88]  
> [instagram][26] failed to merge  
> org.apache.lucene.store.AlreadyClosedException: this Directory is closed

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c1dcac25-dc67-4ff8-9647-28ab7aa8a89b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c1dcac25-dc67-4ff8-9647-28ab7aa8a89b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 4, 2014, 8:44am UTC](https://discuss.elastic.co/t/how-to-solve-failed-to-merge-org-apache-lucene-store-alreadyclosedexception-this-directory-is-closed/18899/3 "2014-08-04T08:44:19Z")

</div>

Hey,

can you add some more information here? What are doing when this happens?  
Heavy indexing? Did you check the logfiles before that? Are there  
exceptions? What elasticsearch version are you using? What JVM version are  
you using? A bit of context would be great!

--Alex

On Sun, Jul 27, 2014 at 1:34 PM, Warat Wongmaneekit [canopybanj@gmail.com](mailto:canopybanj@gmail.com)  
wrote:

> Anyone can help me?
> 
> เมื่อ วันศุกร์ที่ 25 กรกฎาคม ค.ศ. 2014, 17 นาฬิกา 4 นาที 20 วินาที UTC+7,  
> Warat Wongmaneekit เขียนว่า:
> 
> > I saw a lot of error log and we need to fix this problem but we don't  
> > know solution please help us.
> > 
> > _Example log_
> > 
> > [2014-07-25 06:00:23,366][WARN][cluster.action.shard] [Host88]  
> > [instagram][26] sending failed shard for [instagram][26],  
> > node[sQEMBQGMT1eyDrPwF-xGeA], [P], s[STARTED], indexUUID  
> > [nG3g-7ZyQqC0a2usE05oWw], reason [engine failure, message [MergeException[  
> > java.io.EOFException: read past EOF: MMapIndexInput(path="/var/lib/  
> > elasticsearch/zocialinc/nodes/0/indices/instagram/26/index/\_tsw3\_es090\_0.pos")];  
> > nested: EOFException[read past EOF: MMapIndexInput(path="/var/lib/  
> > elasticsearch/zocialinc/nodes/0/indices/instagram/26/index/\_tsw3\_es090\_0.pos")];  
> > ]]
> > 
> > [2014-07-25 06:00:23,367][WARN][index.merge.scheduler] [Host88]  
> > [instagram][26] failed to merge org.apache.lucene.store.AlreadyClosedException:  
> > this Directory is closed
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/c1dcac25-dc67-4ff8-9647-28ab7aa8a89b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c1dcac25-dc67-4ff8-9647-28ab7aa8a89b%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/c1dcac25-dc67-4ff8-9647-28ab7aa8a89b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/c1dcac25-dc67-4ff8-9647-28ab7aa8a89b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM\_tqJr992OV9vTChBeLt7saf2RRWbaKO3A%3DhofTEfGREw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_tqJr992OV9vTChBeLt7saf2RRWbaKO3A%3DhofTEfGREw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:11am UTC](https://discuss.elastic.co/t/how-to-solve-failed-to-merge-org-apache-lucene-store-alreadyclosedexception-this-directory-is-closed/18899/4 "2017-07-06T01:11:10Z")

</div>


