# Org.elasticsearch.index.engine.FlushFailedEngineException

**URL:** <https://discuss.elastic.co/t/org-elasticsearch-index-engine-flushfailedengineexception/9140>\
**Category:** Elasticsearch\
**Created:** [September 25, 2012, 8:21pm UTC](https://discuss.elastic.co/t/org-elasticsearch-index-engine-flushfailedengineexception/9140 "2012-09-25T20:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jae](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jae/32/791_2.png) [@Jae](https://discuss.elastic.co/u/Jae)\
**Post date:** [September 25, 2012, 8:21pm UTC](https://discuss.elastic.co/t/org-elasticsearch-index-engine-flushfailedengineexception/9140/1 "2012-09-25T20:21:21Z")

</div>

I am running elasticsearch 0.19.9 with 36 instances. I saw the following  
exceptions. Is it safe to be ignored? Otherwise, how can I tune the  
parameter?

[2012-09-25 17:40:26,436][WARN][index.translog] [Archimage]  
[request\_trace20120925][0] failed to flush shard on translog threshold  
org.elasticsearch.index.engine.FlushFailedEngineException:  
[request\_trace20120925][0] Flush failed  
at  
org.elasticsearch.index.engine.robin.RobinEngine.flush(RobinEngine.java:903)  
at  
org.elasticsearch.index.shard.service.InternalIndexShard.flush(InternalIndexShard.java:467)  
at  
org.elasticsearch.index.translog.TranslogService$TranslogBasedFlush$1.run(TranslogService.java:191)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:662)  
Caused by: java.lang.NullPointerException  
at  
org.elasticsearch.common.compress.BufferRecycler.releaseEncodeBuffer(BufferRecycler.java:68)  
at  
org.elasticsearch.common.compress.lzf.ChunkEncoder.close(ChunkEncoder.java:113)  
at  
org.elasticsearch.common.compress.lzf.LZFCompressedIndexOutput.doClose(LZFCompressedIndexOutput.java:63)  
at  
org.elasticsearch.common.compress.CompressedIndexOutput.close(CompressedIndexOutput.java:184)  
at  
org.elasticsearch.index.store.Store$StoreIndexOutput.close(Store.java:645)  
at org.apache.lucene.util.IOUtils.close(IOUtils.java:141)  
at org.apache.lucene.index.FieldsWriter.close(FieldsWriter.java:139)  
at  
org.apache.lucene.index.StoredFieldsWriter.flush(StoredFieldsWriter.java:55)  
at  
org.apache.lucene.index.DocFieldProcessor.flush(DocFieldProcessor.java:59)  
at  
org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:581)  
at  
org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3587)  
at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:3376)  
at  
org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3485)  
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3467)  
at  
org.elasticsearch.index.engine.robin.RobinEngine.flush(RobinEngine.java:871)  
... 5 more

Thank you  
Best, Jae

--

---

<div class="post-metadata">

**Author:** ![Francois\_Forster](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Francois\_Forster](https://discuss.elastic.co/u/Francois_Forster)\
**Post date:** [August 27, 2013, 9:09pm UTC](https://discuss.elastic.co/t/org-elasticsearch-index-engine-flushfailedengineexception/9140/2 "2013-08-27T21:09:16Z")

</div>

I get the same exception fairly regularly with 0.20.6:

[2013-08-27 13:26:05,337][WARN][action.deletebyquery] [elasticsearch-node] Failed to perform deleteByQuery/shard on replica [index][0]  
org.elasticsearch.transport.RemoteTransportException: [elasticsearch-node][inet[/10.10.10.10:9300]][deleteByQuery/shard/replica]  
Caused by: org.elasticsearch.index.engine.RefreshFailedEngineException: [search-enca][0] Refresh failed  
at org.elasticsearch.index.engine.robin.RobinEngine.refresh(RobinEngine.java:787)  
at org.elasticsearch.index.engine.robin.RobinEngine.refreshVersioningTable(RobinEngine.java:966)  
at org.elasticsearch.index.engine.robin.RobinEngine.delete(RobinEngine.java:728)  
at org.elasticsearch.index.shard.service.InternalIndexShard.deleteByQuery(InternalIndexShard.java:385)  
at org.elasticsearch.action.deletebyquery.TransportShardDeleteByQueryAction.shardOperationOnReplica(TransportShardDeleteByQueryAction.java:106)  
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$ReplicaOperationTransportHandler.messageReceived(TransportShardReplicationOperationAction.java:254)  
at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$ReplicaOperationTransportHandler.messageReceived(TransportShardReplicationOperationAction.java:240)  
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.run(MessageChannelHandler.java:268)  
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)  
at java.lang.Thread.run(Thread.java:662)  
Caused by: java.lang.NullPointerException  
at org.elasticsearch.common.compress.BufferRecycler.releaseEncodeBuffer(BufferRecycler.java:68)  
at org.elasticsearch.common.compress.lzf.ChunkEncoder.close(ChunkEncoder.java:113)  
at org.elasticsearch.common.compress.lzf.LZFCompressedIndexOutput.doClose(LZFCompressedIndexOutput.java:63)  
at org.elasticsearch.common.compress.CompressedIndexOutput.close(CompressedIndexOutput.java:184)  
at org.elasticsearch.index.store.Store$StoreIndexOutput.close(Store.java:640)  
at org.apache.lucene.util.IOUtils.close(IOUtils.java:141)  
at org.apache.lucene.index.FieldsWriter.close(FieldsWriter.java:139)  
at org.apache.lucene.index.StoredFieldsWriter.flush(StoredFieldsWriter.java:55)  
at org.apache.lucene.index.DocFieldProcessor.flush(DocFieldProcessor.java:59)  
at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:581)  
at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3587)  
at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3552)  
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:450)  
at org.apache.lucene.index.IndexWriter.getReader(IndexWriter.java:399)  
at org.apache.lucene.index.DirectoryReader.doOpenFromWriter(DirectoryReader.java:413)  
at org.apache.lucene.index.DirectoryReader.doOpenIfChanged(DirectoryReader.java:432)  
at org.apache.lucene.index.DirectoryReader.doOpenIfChanged(DirectoryReader.java:375)  
at org.apache.lucene.index.IndexReader.openIfChanged(IndexReader.java:508)  
at org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:109)  
at org.apache.lucene.search.SearcherManager.refreshIfNeeded(SearcherManager.java:57)  
at org.apache.lucene.search.ReferenceManager.maybeRefresh(ReferenceManager.java:137)  
at org.elasticsearch.index.engine.robin.RobinEngine.refresh(RobinEngine.java:768)  
... 10 more

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:19am UTC](https://discuss.elastic.co/t/org-elasticsearch-index-engine-flushfailedengineexception/9140/3 "2017-07-06T02:19:25Z")

</div>


