[ 
https://issues.apache.org/jira/browse/SOLR-8793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15214336#comment-15214336
 ] 

Shawn Heisey commented on SOLR-8793:
------------------------------------

Even with this fix, running 5.5.1-SNAPSHOT, I am still getting similar errors.  
Everything seems to work fine, just as it did before this fix was applied, but 
the error is happening a lot.  Here's the stacktrace, trimmed after the first 
Lucene line:

{noformat}
2016-03-28 09:33:00.775 WARN  (qtp1012570586-316040) [   x:sparkinclive] 
org.apache.solr.handler.admin.LukeRequestHandler Error getting file length for 
[segments_ovq]
java.nio.file.NoSuchFileException: 
/index/solr5/data/data/sparkinc_1/index/segments_ovq
        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)
{noformat}


> Fix stale commit files' size computation in LukeRequestHandler
> --------------------------------------------------------------
>
>                 Key: SOLR-8793
>                 URL: https://issues.apache.org/jira/browse/SOLR-8793
>             Project: Solr
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 5.5
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>            Priority: Minor
>             Fix For: master, 5.5.1
>
>         Attachments: SOLR-8793.patch
>
>
> SOLR-8587 added segments file information and its size to core admin status 
> API. However in case of stale commits, calling that API may result on 
> {{FileNotFoundException}} or {{NoSuchFileException}}, if the segments file no 
> longer exists due to a new commit. We should fix that by returning a proper 
> value for the file's length in this case, maybe -1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to