[
https://issues.apache.org/jira/browse/SOLR-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13540931#comment-13540931
]
Shawn Heisey commented on SOLR-656:
-----------------------------------
As part of the 4.1 release triage (focus on Solr), I am attempting to make a
patch for this. My first attempt was at a very low level - lucene's
FSDirectory. This caused a LOT of test failures.
D:\workspace\branch_4x\lucene\common-build.xml:841: There were test failures:
330 suites, 1862 tests, 5 suite-level errors, 156 errors, 21 ignored (9
assumptions)
I'm trying again with SolrCore.java. I'm not sure how to write a test for
this. Perhaps I need to init a new core, find the indexDir, delete everything
in it, then reload the core.
> better error message when "data/index" is completely empty
> ----------------------------------------------------------
>
> Key: SOLR-656
> URL: https://issues.apache.org/jira/browse/SOLR-656
> Project: Solr
> Issue Type: Wish
> Reporter: Hoss Man
> Fix For: 4.2, 5.0
>
>
> Solr's normal behavior is to create an "index" dire in the dataDir if one
> does not already exist, but if "index" does exist it is used as is, warts and
> all ... if the index is corrupt in some way, and Solr can't create an
> IndexWriter or IndexReader that error is propagated up to the user.
> I don't think this should change: Solr shouldn't attempt to do anything
> special if there is a low level problem with the index, but something that
> i've seen happen more then a few times is that people unwittingly "rm
> index/*" when they should "run -r index" and as a result Solr+Lucene gives
> them an error instead of just giving them an empty index
> when checking if an existing index dir exists, it would probably be worth
> while to add a little one line sanity test that it contains some files, and
> log a warning.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]