# Corrupted indexes?

**URL:** https://discuss.elastic.co/t/corrupted-indexes/5855
**Category:** Elasticsearch
**Created:** [November 12, 2011, 12:06am UTC](https://discuss.elastic.co/t/corrupted-indexes/5855 "2011-11-12T00:06:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Paul\_Brown](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/paul_brown/32/1449_2.png) [@Paul\_Brown](https://discuss.elastic.co/u/Paul_Brown)
#### Post date: [November 12, 2011, 12:06am UTC](https://discuss.elastic.co/t/corrupted-indexes/5855/1 "2011-11-12T00:06:05Z")

</div>

Hi, ElasticSearchFolk --

I've seen some index corruption issues show up in the last few days in a four-node cluster with a good number of indexes and stored documents:

--- SNIP ---  
[20:18:01,744][WARN][index.merge.scheduler] [Storm, Johnny] [redacted][3] failed to merge  
org.apache.lucene.index.CorruptIndexException: docs out of order (1367 \<= 1367 )  
at org.apache.lucene.index.FormatPostingsDocsWriter.addDoc(FormatPostingsDocsWriter.java:84)  
--- SNIP ---

This is with 0.17.9 running on ec2 with the S3 gateway; configured for six shards and one replica. The configuration is otherwise stock.

There is an open Lucene issue and some discussion:

[https://issues.apache.org/jira/browse/LUCENE-2501](https://issues.apache.org/jira/browse/LUCENE-2501)  
[http://lucene.472066.n3.nabble.com/CorruptIndexException-when-indexing-td2254889.html](http://lucene.472066.n3.nabble.com/CorruptIndexException-when-indexing-td2254889.html)

that point to RAM buffer settings. Looking at the code in FormatPostingsDocsWriter, it could be the result of integer overflow.

Ring a bell or happen to anyone else?

-- Paul

---

<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:49am UTC](https://discuss.elastic.co/t/corrupted-indexes/5855/2 "2017-07-06T03:49:02Z")

</div>


