[ 
https://issues.apache.org/jira/browse/SOLR-2861?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13139264#comment-13139264
 ] 

Yonik Seeley commented on SOLR-2861:
------------------------------------

Here are some selected lines from fail4.xml, with comments:

{code}
316   TEST:WRITER7: adding id 30 val= 3 DONE
466   TEST:WRITER9: softCommit start
# Note: this is only the start of softCommit in the test... it's synchronized 
in Solr so only one thread can reopen the
# reader and create a new searcher at a time.
3074  TEST:WRITER10: deleting id 30 val= 6 DONE
# At this point the delete command has returned (and in the test, we put -6 in 
the model as the value)
3592  VERBOSE:WRITER9: TLOG: preSoftCommit: prevMap=1355224018 new map=10577597
# Note: actual reopen happens here, in a synchronized context.
3593  VERBOSE:WRITER9: added searcher  Searcher@6460029d main  to _searchers 
reader version= 1319870174085
3673  VERBOSE:READER7: TLOG: lookup: for id 30 in prevMap 10577597 got null 
lookupLog=/opt/code/lusolr/solr/build/solr-core/test/1/solrtest-TestRealTimeGet-1319870172806/tlog/tlog.0000000000000000002
3673  VERBOSE:READER7: RealTimeGet using searcher  Searcher@6460029d main
3677  TEST:READER7: ERROR, id= 30 foundVal= 3 model val= -6 realTime= true
# We find the old value using the new searcher!
{code}

>From this, it doesn't look like it's the transaction log, or realtime-get.
We can see that the doc was deleted, a new searcher was opened, and then it was 
used to do a lookup and got the old value.

Brainstorming:
 - Bug in solr reopen code. This seems less likely since getSearcher() calls 
that result in a reopen are synchronized from the outside...  so races 
shouldn't be possible there.
 - Bug in lucene.  This is looking more likely now, but I can't yet reproduce 
it in a pure lucene test.  It could be a reopen concurrency bug (like the last 
were) or possibly a MultiFields & friends bug (see 
SolrIndexSearcher/getFirstMatch used to do the lookup by id)
                
> transaction log / realtime-get failures 
> ----------------------------------------
>
>                 Key: SOLR-2861
>                 URL: https://issues.apache.org/jira/browse/SOLR-2861
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Yonik Seeley
>         Attachments: TEST-org.apache.solr.search.TestRealTimeGet.xml, 
> fail4.xml, jenkins_output.txt, trunk-0.txt
>
>
> realtime-get or the transaction log fails sometimes

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
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]

Reply via email to