You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Lyuba Romanchuk <ly...@gmail.com> on 2013/01/30 13:18:27 UTC

Solr trunk - Solr can't index concurrently

Hi,

**

** **

I got stuck with a very strange issue trying to index real-time data into
Solr from multiple processes. I use Solr trunk 1404975 with patch SOLR-2894
+ SOLR-4302.****

** **

To reproduce, I ran the attached script insert_test.sh that shoots 20
concurrent indexing processes via post_solr.sh. This in turn loops 50 times
sending curl requests to Solr using an xml containing 400 identical
documents (id’s will be assigned by Solr).****

Curl output is appended to output.txt file. After all curls finish, I see
that solr contains only 399,820 documents instead of 400,000.****

Output.txt contains 980 replies like:****

<?xml version="1.0" encoding="UTF-8"?>****

<response>****

<lst name="responseHeader"><int name="status">0</int><int
name="QTime">2608</int></lst>****

</response>****

** **

However there are 20 replies like the below:****

** **

<?xml version="1.0" encoding="UTF-8"?>****

<response>****

<lst name="responseHeader"><int name="status">400</int><int
name="QTime">911</int></lst><lst name="error"><str name="msg">ERROR:
[doc=2c67c748-0a1a-4557-b964-f4b4d9d3149e] multiple values encountered for
non multiValued field action: [Decrypt, Decrypt]</str><int
name="code">400</int></lst>****

</response>****

** **

<?xml version="1.0" encoding="UTF-8"?>****

<response>****

<lst name="responseHeader"><int name="status">400</int><int
name="QTime">913</int></lst><lst name="error"><str name="msg">Unexpected
close tag &lt;/ield&gt;; expected &lt;/field&gt;.****

at [row,col {unknown-source}]: [3526,36]</str><int
name="code">400</int></lst>****

</response>****

** **

<?xml version="1.0" encoding="UTF-8"?>****

<response>****

<lst name="responseHeader"><int name="status">400</int><int
name="QTime">634</int></lst><lst name="error"><str name="msg">Unexpected
character '2' (code 50); expected an element name.****

at [row,col {unknown-source}]: [3526,33]</str><int
name="code">400</int></lst>****

</response>****

** **

http://localhost:8215/solr/collection1/select?q=*%3A*&wt=xml&facet=true&facet.field=action&rows=0&facet.field=src&facet.field=dst&facet.field=rule_name&facet.field=orig&facet.field=product&facet.field=time&facet.field=trimTime
****

** **

<response>****

<lst name="responseHeader">****

<int name="status">0</int>****

<int name="QTime">332</int>****

<lst name="params">****

<str name="facet">true</str>****

<arr name="facet.field">****

<str>action</str>****

<str>src</str>****

<str>dst</str>****

<str>rule_name</str>****

<str>orig</str>****

<str>product</str>****

<str>time</str>****

<str>trimTime</str>****

</arr>****

<str name="wt">xml</str>****

<str name="q">*:*</str>****

<str name="rows">0</str>****

</lst>****

</lst>****

<result name="response" numFound="399820" start="0"/>****

<lst name="facet_counts">****

<lst name="facet_queries"/>****

<lst name="facet_fields">****

<lst name="action">****

<int name="Decrypt">399820</int>****

</lst>****

<lst name="src">****

<int name="10.10.10.1">399820</int>****

</lst>****

<lst name="dst">****

<int name="201.202.203.200">399820</int>****

</lst>****

<lst name="rule_name">****

<int name="Hobbit Exception 1">399820</int>****

</lst>****

<lst name="orig">****

<int name="10.0.0.4">399820</int>****

</lst>****

<lst name="product">****

<int name="Firewall">399820</int>****

</lst>****

<lst name="time">****

<int name="2012-10-28T01:04:14Z">399820</int>****

</lst>****

<lst name="trimTime">****

<int name="2012-10-28T01:00:00Z">399820</int>****

</lst>****

</lst>****

<lst name="facet_dates"/>****

<lst name="facet_ranges"/>****

</lst>****

</response>****

** **

** **

All files including schema.xml, solrconfig.xml and Solr log (solr0.log) are
attached.****

Could you please advise on the issue? Any way to debug this or try to
figure out how to resolve ?****

** **

Best regards,****

Lyuba****

**

**