[ https://issues.apache.org/jira/browse/SOLR-8587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15609199#comment-15609199 ]
Hrishikesh Gadre commented on SOLR-8587: ---------------------------------------- [~shaie] I ran into a similar problem (NoSuchFileException for the segments file) while working on Solr backup/restore. This problem can be avoided by using the following trick implemented in ReplicationHandler. https://github.com/apache/lucene-solr/blob/7794fbd13f1a0edfff8f121fb1c6a01075eeef6a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java#L537-L542 I see that LukeRequestHandler is not implementing similar strategy. https://github.com/apache/lucene-solr/blob/7794fbd13f1a0edfff8f121fb1c6a01075eeef6a/solr/core/src/java/org/apache/solr/handler/admin/LukeRequestHandler.java#L583 My guess is that if we change LukeRequestHandler to implement a strategy similar to ReplicationHandler, it should fix the problem. Although I don't fully understand why is that the case. [~yo...@apache.org] [~thetaphi] you have any idea? > Add segments file information to core admin status > -------------------------------------------------- > > Key: SOLR-8587 > URL: https://issues.apache.org/jira/browse/SOLR-8587 > Project: Solr > Issue Type: Improvement > Reporter: Shai Erera > Assignee: Shai Erera > Fix For: 5.5, 6.0 > > 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 (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org