On Wed, Sep 8, 2010 at 5:27 AM, Michael McCandless <
[email protected]> wrote:

> This looks nasty!!
>
> But I can't repro :(  I've got it running in a while(true) loop... which
> JRE?
>

java version "1.6.0_21"
Java(TM) SE Runtime Environment (build 1.6.0_21-b07)
Java HotSpot(TM) Client VM (build 17.0-b17, mixed mode, sharing)

on windows. It also fails with 64-bit jre, and it fails with 1.6.0_19 too (i
only recently upgraded)

note: the test uses hardcoded FSDirectory.open [we should think about fixing
this, since its one of our better tests].


> It must be a thread scheduling issue with CMS, since it intermittently
> happens with a fixed seed.
>

yes, it happens to me randomly doing 'ant test'. but previously i would plug
in a seed and wouldnt be able to reproduce.

the seed + conditions i got make it 'likely' to fail... it still requires a
few iterations (i found 10 was good) to be reasonable sure.


> And it's very interesting that disabling deletions fixes it.  This
> points to the mixed bulk/non-bulk merging code for stored fields...
>
> Can you open an issue and post all the exceptions you've seen?
>

sure


>
> Mike
>
> On Tue, Sep 7, 2010 at 4:56 PM, Robert Muir <[email protected]> wrote:
> > Hello,
> > I've tripped on this a few times lately, but never been able to reproduce
> > it: it seems now i am able to reproduce it now semi-consistently with the
> > below configuration.
> > It would be great if someone else could try this out and see if its a
> real
> > problem, or if its just my machine.
> > occasionally i see a very nasty result
> > from TestIndexWriter.testRandomStoredFields:
> > either a read past EOF, IndexOutOfBounds, NegativeArraySizeException, or
> > field X is wrong, expected <nonsense unicode> actual <different nonsense
> > unicode>
> > Here are my steps to reproduce:
> > 1. edit line 87 of TestIndexWriter to plugin the seed:
> >     random = newRandom(3312389322103990899L);
> > 2. run this command:
> >     ant clean test-core -Dtestcase=TestIndexWriter
> > -Dtestmethod=testRandomStoredFields -Dtests.iter=10
> > -Dtests.codec="MockVariableIntBlock(29)"
> > I used 10 iterations here, as it will usually fail with this seed and #
> of
> > iterations for me.
> > furthermore, if i comment out lines 5179 and 5180 from TestIndexWriter so
> > that it no longer randomly deletes documents, the test will always pass:
> >         //w.deleteDocuments(new Term("id", delID));
> >         //docs.remove(delID);
> > --
> > Robert Muir
> > [email protected]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Robert Muir
[email protected]

Reply via email to