[
https://issues.apache.org/jira/browse/SOLR-4486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13583730#comment-13583730
]
vinay pothnis commented on SOLR-4486:
-------------------------------------
The evidence is from the logs on the 2 shards.
The following is the log on shard 1:
INFO: [sample] webapp=/solr path=/update params={} {add=[e.1.80, e.1.80,
e.1.80, e.1.80, e.1.80, e.1.80, e.1.80],delete=[e.1.80]} 0 48
The following is the log on shard 2:
INFO: [sample] webapp=/solr path=/update
params={update.distrib=TOLEADER&wt=javabin&version=2} {delete=[e.1.80
(-1427453640312881152)]} 0 2
Feb 19, 2013 6:04:34 PM org.apache.solr.update.processor.LogUpdateProcessor
finish
INFO: [sample] webapp=/solr path=/update
params={distrib.from=http://10.10.76.23:8983/solr/sample/&update.distrib=TOLEADER&wt=javabin&version=2}
{add=[e.1.80 (1427453640314978304), e.1.80 (1427453640338046976), e.1.80
(1427453640342241280), e.1.80 (1427453640346435584), e.1.80
(1427453640349581312), e.1.80 (1427453640351678464), e.1.80
(1427453640353775616)]} 0 41
As you can see, shard 2 gets the "delete" command first and then the
"add/update" commands.
> The order of commands is not maintained in a batch of adds/updates and deletes
> ------------------------------------------------------------------------------
>
> Key: SOLR-4486
> URL: https://issues.apache.org/jira/browse/SOLR-4486
> Project: Solr
> Issue Type: Bug
> Components: update
> Affects Versions: 4.1
> Reporter: vinay pothnis
>
> I have the following set up:
> * solr cloud 4.1.0
> * 2 shards with embedded zookeeper
> * plain http to communicate with solr
> I am testing a scenario where i am batching multiple commands and sending
> to solr. Since this is the solr cloud setup, I am always sending the
> updates to one of the nodes in the cloud.
> e.g.: http://localhost:8983/solr/sample/update
> *example set of commands:*
> {"add": {"doc":
> {"field-1":"1359591340025","field-2":1361301249330,"doc_id":"e.1.78"}
> },"add": {"doc":
> {"field-1":"1360089709282","field-2":1361301249377,"doc_id":"e.1.78"}
> },"delete": { "id": "e.1.78" }}
> When I include deletes and updates in the batch, sometimes, the order of
> the commands is not maintained.
> Specifically, if the document does not belong to the shard that I am
> communicating with (lets say shard-1), then shard-1 sends the commands to
> "shard-2". In this case, the "deletes" are sent first and then the updates.
> This changes the order that I originally sent.
> Thanks!
> Vinay
--
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]