lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Willnauer (JIRA)" <>
Subject [jira] [Created] (LUCENE-3031) setFlushPending fails if we concurrently
Date Fri, 15 Apr 2011 08:06:05 GMT
setFlushPending fails if we concurrently 

                 Key: LUCENE-3031
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
    Affects Versions: Realtime Branch
            Reporter: Simon Willnauer
            Assignee: Simon Willnauer
             Fix For: Realtime Branch

If we select a DWPT for flushing but that DWPT is currently in flight and hits an exception
after we selected them for flushing the num of docs is reset to 0 and we trip that exception.
So we rather check if it is > 0 than assert on it here.
[junit] Testsuite: org.apache.lucene.index.TestIndexWriterExceptions
    [junit] Testcase: testRandomExceptionsThreads(org.apache.lucene.index.TestIndexWriterExceptions):
    [junit] thread Indexer 3: hit unexpected failure
    [junit] junit.framework.AssertionFailedError: thread Indexer 3: hit unexpected failure
    [junit] 	at org.apache.lucene.index.TestIndexWriterExceptions.testRandomExceptionsThreads(
    [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
    [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(
    [junit] Tests run: 18, Failures: 1, Errors: 0, Time elapsed: 30.287 sec
    [junit] ------------- Standard Output ---------------
    [junit] Indexer 3: unexpected exception2
    [junit] java.lang.AssertionError
    [junit] 	at org.apache.lucene.index.DocumentsWriterFlushControl.setFlushPending(
    [junit] 	at org.apache.lucene.index.FlushPolicy.markLargestWriterPending(
    [junit] 	at org.apache.lucene.index.FlushByRamOrCountsPolicy.onInsert(
    [junit] 	at org.apache.lucene.index.FlushPolicy.onUpdate(
    [junit] 	at org.apache.lucene.index.DocumentsWriterFlushControl.doAfterDocument(
    [junit] 	at org.apache.lucene.index.DocumentsWriter.updateDocument(
    [junit] 	at org.apache.lucene.index.IndexWriter.updateDocument(
    [junit] 	at org.apache.lucene.index.IndexWriter.updateDocument(
    [junit] 	at org.apache.lucene.index.TestIndexWriterExceptions$
    [junit] ------------- ---------------- ---------------
    [junit] ------------- Standard Error -----------------
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestIndexWriterExceptions -Dtestmethod=testRandomExceptionsThreads
    [junit] WARNING: test method: 'testRandomExceptionsThreads' left thread running: merge
thread: _1v(4.0):Cv2 _27(4.0):cv1 into _2h
    [junit] WARNING: test method: 'testRandomExceptionsThreads' left thread running: merge
thread: _2c(4.0):cv1 into _2m
    [junit] RESOURCE LEAK: test method: 'testRandomExceptionsThreads' left 2 thread(s) running
    [junit] NOTE: test params are: codec=RandomCodecProvider: {content=MockFixedIntBlock(blockSize=421),
field=MockSep, id=SimpleText, other=MockSep, contents=MockRandom, content1=Pulsing(freqCutoff=11),
content2=MockSep, content4=SimpleText, content5=SimpleText, content6=MockRandom, crash=MockRandom,
content7=MockVariableIntBlock(baseBlockSize=109)}, locale=mk_MK, timezone=Europe/Malta
    [junit] NOTE: all tests run in this JVM:
    [junit] [TestToken, TestDateTools, Test2BTerms, TestAddIndexes, TestFilterIndexReader,
    [junit] NOTE: Linux 2.6.37-gentoo amd64/Sun Microsystems Inc. 1.6.0_24 (64-bit)/cpus=8,threads=1,free=78897400,total=195821568

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message