Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11182

Solr doesn't log IOException if a shard split fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.5, 6.6
    • 7.0
    • None
    • None

    Description

      During a split shard operation the last message I see in the Solr logs was this

      date time INFO  (parallelCoreAdminExecutor... SPLIT) [   ] o.a.s.u.SolrIndexWriter Calling setCommitData with IW:org.apache.solr.update.SolrIndexWriter@hex
      

      But the split never completed according the the request status API.

      ...
        "Operation splitshard caused exception:": "org.apache.solr.common.SolrException:org.apache.solr.common.SolrException",
        "exception": {
          "msg": null,
          "rspCode": 500
        }
      

      SolrIndexSplitter#split throws an IOException and in DirectUpdateHandler2#split we catch it but never log an exception. We should log the error and also throw it ?

      Attachments

        1. SOLR-11182.patch
          0.6 kB
          Varun Thacker

        Activity

          People

            varun Varun Thacker
            varun Varun Thacker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: