Hey Shawn, I added segments file information (name and size) to Core admin status API. Turns out that you might get into NoSuchFileException if indexing happens and the commit point has changed, but the IndexReader LukeRequestHandler receives hasn't picked up the new commit yet, in which case the old segments_N file was deleted and computing its size resulted in that exception.
I pushed a fix for it which will be released in any one of future releases, including 5.5.1 if we'll have any. The fix includes logging the exception and returning -1 as the file size. Shai On Fri, Mar 11, 2016 at 12:21 AM Shawn Heisey <apa...@elyograg.org> wrote: > On 3/10/2016 12:18 PM, Shawn Heisey wrote: > > I pulled down branch_5_5 and installed a 5.5.1 snapshot. Had to edit > > lucene/version.properties to get it to be 5.5.1. I also had to edit the > > SolrIdentifierValidator class to allow hyphens, since I have them in > > some of my core names. The NoSuchFileException errors are gone now. > > Spoke too soon. > > The log message did change a little bit. Now it's only one log entry on > LukeRequestHandler instead of two separate log entries, and it's a WARN > instead of ERROR. > > 2016-03-10 14:35:00.038 WARN (qtp1012570586-11405) [ x:spark3live] > org.apache.solr.handler.admin.LukeRequestHandler Error getting file > length for [segments_c5t] > java.nio.file.NoSuchFileException: > /index/solr5/data/data/spark3_0/index/segments_c5t > at > sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) > at > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) > at > sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) > at > > sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) > at > > sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144) > at > > sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99) > at java.nio.file.Files.readAttributes(Files.java:1737) > at java.nio.file.Files.size(Files.java:2332) > at > org.apache.lucene.store.FSDirectory.fileLength(FSDirectory.java:210) > > Something else to note: It wasn't 5.5.0 that I had installed, it was > 5.5.0-SNAPSHOT -- I installed it some time before 5.5.0 was released. > Looks like I did the install of that version on January 29th. > > Thanks, > Shawn > >