lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Grolla (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SOLR-8322) Solr commitwithin is not happening for deletebyId on solr 4.10.4
Date Fri, 20 Nov 2015 15:44:11 GMT

     [ https://issues.apache.org/jira/browse/SOLR-8322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Matteo Grolla updated SOLR-8322:
--------------------------------
    Description: 
Hi,
    I'm using solr 4.10.4 and solrj 4.10.4 and when issuing a deleteById with a commitWithin
I observe that the commit doesn't get executed.
I looked at the sources and noticed that the patch attached to issue 6984 is not applied to
this version of solrj.
Which solrj versions solves this bug?
As a workaround if I issue a deleteByQuery and the query selectd a single id, of a nonexistent
document, will I successfully obtain commit? If not is there any other workaround?


  was:
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.


> Solr commitwithin is not happening for deletebyId on solr 4.10.4
> ----------------------------------------------------------------
>
>                 Key: SOLR-8322
>                 URL: https://issues.apache.org/jira/browse/SOLR-8322
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrJ
>    Affects Versions: 4.6, Trunk
>            Reporter: Matteo Grolla
>             Fix For: 4.10.4, 5.0, Trunk
>
>
> Hi,
>     I'm using solr 4.10.4 and solrj 4.10.4 and when issuing a deleteById with a commitWithin
I observe that the commit doesn't get executed.
> I looked at the sources and noticed that the patch attached to issue 6984 is not applied
to this version of solrj.
> Which solrj versions solves this bug?
> As a workaround if I issue a deleteByQuery and the query selectd a single id, of a nonexistent
document, will I successfully obtain commit? If not is there any other workaround?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message