[ https://issues.apache.org/jira/browse/LUCENE-7301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCandless updated LUCENE-7301: --------------------------------------- Attachment: LUCENE-7301.patch Phew, here's a tentative patch, I think fixing the bug. [~hossman] can you test it with your Solr issue and see if it works? It seems to pass your tests in this patch, and survives some distributed beasting... The problem was in {{BufferedUpdatesStream}}: it was not applying accumulated (coalesced) updates in the correct order, and so older updates were incorrectly applying after newer ones. This didn't matter for deleting documents, which the doc values update change "piggy-packed" on (if a document is to be deleted, it doesn't matter whether an earlier or later delete "won"), but for updates it does matter! > updateNumericDocValue mixed with updateDocument can cause data loss in some > randomized testing > ---------------------------------------------------------------------------------------------- > > Key: LUCENE-7301 > URL: https://issues.apache.org/jira/browse/LUCENE-7301 > Project: Lucene - Core > Issue Type: Bug > Reporter: Hoss Man > Attachments: LUCENE-7301.patch, LUCENE-7301.patch, LUCENE-7301.patch > > > SOLR-5944 has been held up by a while due to some extremely rare randomized > test failures. > Ishan and I have been working on whitling those Solr test failures down, > trying to create more isolated reproducable test failures, and i *think* i've > tracked it down to a bug in IndexWriter when the client calls to > updateDocument intermixed with calls to updateNumericDocValue *AND* > IndexWriterConfig.setMaxBufferedDocs is very low (i suspect "how low" depends > on the number of quantity/types of updates -- but *just* got something that > reproduced, and haven't tried reproducing with higher values of > maxBufferedDocs and larger sequences of updateDocument / > updateNumericDocValue calls. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org