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

Solr doesn't log IOException if a shard split fails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5, 6.6
    • Fix Version/s: 7.0
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      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

            • Assignee:
              varunthacker Varun Thacker
              Reporter:
              varunthacker Varun Thacker
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: