lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Serba (JIRA)" <>
Subject [jira] [Commented] (SOLR-8587) Add segments file information to core admin status
Date Wed, 02 Mar 2016 19:38:18 GMT


Alexey Serba commented on SOLR-8587:

I recently upgraded my Solr version to 5.5 and noticed that {{/solr/admin/cores}} API stopped
working with the following exception:

ERROR org.apache.solr.handler.RequestHandlerBase - org.apache.solr.common.SolrException: Error
handling 'status' action
    at org.apache.solr.handler.admin.CoreAdminOperation$
    at org.apache.solr.handler.admin.CoreAdminHandler$
    at org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(
Caused by: java.nio.file.NoSuchFileException: solr-cloud-1/collection1_shard2_replica1/data/index/segments_1
    at sun.nio.fs.UnixException.translateToIOException(
    at sun.nio.fs.UnixException.rethrowAsIOException(
    at sun.nio.fs.UnixException.rethrowAsIOException(
    at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(
    at sun.nio.fs.UnixFileSystemProvider.readAttributes(
    at java.nio.file.Files.readAttributes(
    at java.nio.file.Files.size(
    at org.apache.solr.handler.admin.LukeRequestHandler.getIndexInfo(
    at org.apache.solr.handler.admin.CoreAdminOperation.getCoreStatus(

If I go to file system - I see there is {{segments_2}} file, then {{segments_3}}, but core
admin still tries to check {{segments_1}} file (even if you try to reload {{/solr/admin/cores}})

LukeRequestHandler does
    IndexCommit indexCommit = reader.getIndexCommit();
    String segmentsFileName = indexCommit.getSegmentsFileName();
but apparently that file is gone at that point.

There's a similar report of this problem in [SOLR-4146|]

I'm wondering if it is possible to fix or revert [087ebf6|]
in 5.5.1?

> Add segments file information to core admin status
> --------------------------------------------------
>                 Key: SOLR-8587
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Shai Erera
>            Assignee: Shai Erera
>             Fix For: 5.5, master
>         Attachments: SOLR-8587.patch, SOLR-8587.patch
> Having the index's segments file name returned by CoreAdminHandler STATUS can be useful.
The info I'm thinking about is the segments file name and its size. If you record that from
time to time, in a case of crisis, when u need to restore the index and may not be sure which
copy you need to restore, this tiny piece of info can be very useful, as the segmentsN file
records the commit point, and therefore what you core reported and what you see at hand can
help you make a safer decision.
> I also think it's useful info in general, e.g. probably even more than 'version', and
it doesn't add much complexity to the handler or the response.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message