[
https://issues.apache.org/jira/browse/SOLR-4040?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13496817#comment-13496817
]
Mark Miller commented on SOLR-4040:
-----------------------------------
This is prob a dupe of the issue around the commit race?
> SolrCloud deleteByQuery requires multiple commits
> -------------------------------------------------
>
> Key: SOLR-4040
> URL: https://issues.apache.org/jira/browse/SOLR-4040
> Project: Solr
> Issue Type: Bug
> Components: update
> Affects Versions: 4.0
> Environment: OSX
> Reporter: Darin Plutchok
> Labels: SolrCloud, commit, delete
> Fix For: 4.0
>
>
> I am using embedded zookeeper and my cloud layout is show below (all actions
> are done on the "patents' collection only).
> First commit/delete works for a single shard only, dropping query results by
> about a third. Second commit/delete drops query results to zero.
> http://127.0.0.1:8893/solr/patents/update?commit=true&stream.body=<delete><query>dogs</query></delete>
> http://localhost:8893/solr/patents/select?q=dogs&rows=0 (results drop by a
> third)
> http://127.0.0.1:8893/solr/patents/update?commit=true&stream.body=<delete><query>dogs</query></delete>
> http://localhost:8893/solr/patents/select?q=dogs&rows=0 (results drop to zero)
> Note that a delete without a commit followed by a commit drops query results
> to zero, as it should:
> http://127.0.0.1:8893/solr/patents/update/?stream.body=<delete><query>dogs</query></delete>
> http://localhost:8893/solr/patents/select?q=dogs&rows=0 (full count as no
> commit yet)
> http://127.0.0.1:8893/solr/patents/update/?commit=true
> http://localhost:8893/solr/patents/select?q=dogs&rows=0 (results drop to
> zero)
> One workaround (produces zero hits in one shot):
> http://127.0.0.1:8893/solr/patents/update?commit=true&stream.body=<outer><delete><query>sun</query></delete><commit/></outer>
> The workaround I am using for now (produces zero hits in one shot):
> http://127.0.0.1:8893/solr/patents/update?stream.body=<outer><delete><query>knee</query></delete><commit/><commit/></outer>
> {code}
> {
>
> "otherdocs":{"slice0":{"replicas":{"Darins-MacBook-Pro.local:8893_solr_otherdocs_shard0":{
> "shard":"slice0",
> "roles":null,
> "state":"active",
> "core":"otherdocs_shard0",
> "collection":"otherdocs",
> "node_name":"Darins-MacBook-Pro.local:8893_solr",
> "base_url":"http://Darins-MacBook-Pro.local:8893/solr",
> "leader":"true"}}}},
> "patents":{
>
> "slice0":{"replicas":{"Darins-MacBook-Pro.local:8893_solr_patents_shard0":{
> "shard":"slice0",
> "roles":null,
> "state":"active",
> "core":"patents_shard0",
> "collection":"patents",
> "node_name":"Darins-MacBook-Pro.local:8893_solr",
> "base_url":"http://Darins-MacBook-Pro.local:8893/solr",
> "leader":"true"}}},
>
> "slice1":{"replicas":{"Darins-MacBook-Pro.local:8893_solr_patents_shard1":{
> "shard":"slice1",
> "roles":null,
> "state":"active",
> "core":"patents_shard1",
> "collection":"patents",
> "node_name":"Darins-MacBook-Pro.local:8893_solr",
> "base_url":"http://Darins-MacBook-Pro.local:8893/solr",
> "leader":"true"}}},
>
> "slice2":{"replicas":{"Darins-MacBook-Pro.local:8893_solr_patents_shard2":{
> "shard":"slice2",
> "roles":null,
> "state":"active",
> "core":"patents_shard2",
> "collection":"patents",
> "node_name":"Darins-MacBook-Pro.local:8893_solr",
> "base_url":"http://Darins-MacBook-Pro.local:8893/solr",
> "leader":"true"}}}}}
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]