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

Solr commitwithin is not happening for deletebyId

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 4.6, 6.0
    • 4.10.4, 5.0, 6.0
    • SolrJ
    • None

    Description

      Hi All,

      Just found that solrj doesnot use commitwithin while using deletebyid. This issue is discussed in http://grokbase.com/t/lucene/solr-user/1275gkpntd/deletebyid-commitwithin-question

      Faced the same issue today and found that, in org.apache.solr.client.solrj.request.UpdateRequest when new UpdateRequest is created in getRoutes() method ( Line number 244 ), the setCommitWithin param is not set in the urequest variable as it is done few lines above (Line number 204) This causes setCommitWithin to revert to default value of -1 and the commit does not happen. Tried setting that like,
      urequest.setCommitWithin(getCommitWithin()) and the feature is enabled from SolrJ.

      Attachments

        1. 4_10_3-SOLR-6984.patch
          0.7 kB
          sriram vaithianathan
        2. trunk-SOLR-6984.patch
          0.7 kB
          sriram vaithianathan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vsriram30 sriram vaithianathan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: