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

Richard Goodman commented on SOLR-14325:
----------------------------------------

I'd be interested to see your idea. I did start to wonder how the metrics side 
of this would work if indexInfo was blank for recovering replicas _(because at 
one point in a previous version of the patch, I got to that stage)_, and 
thought I could filter out replicas in recovery when it comes to querying 
prometheus. Just wasn't sure if that would then create "noise" to any potential 
graphs if an instance goes down and you suddenly see a change in the graph due 
to index info not being present.

I guess also a problem we have with some of our tooling is we just rely on 
calling {{/solr/admin/cores}} and providing {{&indexInfo=false}} would remove 
all the index info, rather than removing it for replicas which are recovering, 
so I think if I understand your point correctly, having a new option to tackle 
this could also be beneficial.

> Core status could be improved to not require an IndexSearcher
> -------------------------------------------------------------
>
>                 Key: SOLR-14325
>                 URL: https://issues.apache.org/jira/browse/SOLR-14325
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: David Smiley
>            Priority: Major
>         Attachments: SOLR-14325.patch, SOLR-14325.patch, SOLR-14325.patch
>
>
> When the core status is told to request "indexInfo", it currently grabs the 
> SolrIndexSearcher but only to grab the Directory.  SolrCore.getIndexSize also 
> only requires the Directory.  By insisting on a SolrIndexSearcher, we 
> potentially block for awhile if the core is in recovery since there is no 
> SolrIndexSearcher.
> [https://lists.apache.org/thread.html/r076218c964e9bd6ed0a53133be9170c3cf36cc874c1b4652120db417%40%3Cdev.lucene.apache.org%3E]
> It'd be nice to have a solution that conditionally used the Directory of the 
> SolrIndexSearcher only if it's present so that we don't waste time creating 
> one either.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to