[ https://issues.apache.org/jira/browse/SOLR-455?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12558828#action_12558828 ]
Hoss Man commented on SOLR-455: ------------------------------- Yeah, Lucene Java 2.3 should do a much better job of dealing with disk full situations. As far as warning and/or refusing to add/commit when disk is "nearly full" ... Is this even possible? does Java have any APIs for letting applications know metrics like this (ie: total disk size - space used) ??? > Better handling when index runs out of disk space > ------------------------------------------------- > > Key: SOLR-455 > URL: https://issues.apache.org/jira/browse/SOLR-455 > Project: Solr > Issue Type: Bug > Components: update > Affects Versions: 1.2, 1.3 > Environment: Linux/Debian etch > Reporter: Brian Whitman > > We had an index run out of disk space. Queries work fine but commits return > <h1>500 doc counts differ for segment _18lu: fieldsReader shows 104 but > segmentInfo shows 212 > org.apache.lucene.index.CorruptIndexException: doc counts differ for segment > _18lu: fieldsReader shows 104 but segmentInfo shows 212 > at org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:191) > I've made room, restarted resin, and now solr won't start. No useful messages > in the startup, just a > [21:01:49.105] Could not start SOLR. Check solr/home property > [21:01:49.105] java.lang.NullPointerException > [21:01:49.105] at > org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:100) > Solr should warn the user and/or refuse commits when the index nears the end > of disk space -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.