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

SolrJ deleteById causes missing content stream exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.5
    • 7.6, 8.0
    • SolrJ
    • None

    Description

      client.deleteById(new ArrayList<String>()); 
      

      Causes

      org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:50083/collection1: Error from server at http://127.0.0.1:50083/control_collection: missing content stream
              at __randomizedtesting.SeedInfo.seed([6C4973F1A077B797:65D362791DA8A1AD]:0)
              at org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:576)
              at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:240)
              at org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:229)
              at org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:149)
              at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:482)
              at org.apache.solr.client.solrj.SolrClient.commit(SolrClient.java:463)
      

      Although this is not a big issue, it had me puzzled for a while. A test unrelated to one i was working on started sending empty deletes. Causing above trace.

      Perhaps SolrJ should guard for empty input, just ignore and return.

      Attachments

        1. SOLR-8808.patch
          16 kB
          Jason Gerlowski

        Activity

          People

            Unassigned Unassigned
            markus17 Markus Jelsma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: