Andras Salamon created SOLR-16849:
-------------------------------------

             Summary: COLSTATUS API is not working for readonly collection
                 Key: SOLR-16849
                 URL: https://issues.apache.org/jira/browse/SOLR-16849
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
    Affects Versions: 8.11.2
            Reporter: Andras Salamon


COLSTATUS API ( {{solr/admin/collections?action=COLSTATUS}} ) is not working 
for a readonly collection it gives an error:
{noformat}
{
  "responseHeader":{
    "status":503,
    "QTime":20},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"Indexing is temporarily disabled",
    "code":503}}{noformat}
It seems to me it always calls the segment info api, even if we don't ask for 
the segments info:

[https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/handler/admin/ColStatus.java#L180]

which tries to collect the merge information:

[https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/handler/admin/SegmentsInfoRequestHandler.java#L173]

which tries to open an index writer:

[https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/handler/admin/SegmentsInfoRequestHandler.java#L435]

 

COLSTATUS only reads the info, I think it should work for readonly collections 
as well.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to