mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #834 from tdonohue/DS-2352
DS-2352 : Fix for when Solr index files exist, but index has no content
This commit is contained in:
@@ -141,6 +141,13 @@ public class IndexVersion
|
||||
throw new IOException("Could not read Lucene segments files in " + dir.getAbsolutePath(), ie);
|
||||
}
|
||||
|
||||
// If we have a valid Solr index dir, but it has no existing segments
|
||||
// then just return an empty string. It's a valid but empty index.
|
||||
if(sis!=null && sis.size()==0)
|
||||
{
|
||||
return "";
|
||||
}
|
||||
|
||||
// Loop through our Lucene segment files to locate the OLDEST
|
||||
// version. It is possible for individual segment files to be
|
||||
// created by different versions of Lucene. So, we just need
|
||||
|
Reference in New Issue
Block a user