Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Lucene, mail # dev - local 3x test failure


Copy link to this message
-
Re: local 3x test failure
Martijn v Groningen 2011-12-16, 15:40
Sure no problem.
I'll add the changes to SOLR-2975 and commit it from there.

Martijn

On 16 December 2011 16:24, Erick Erickson <[EMAIL PROTECTED]> wrote:
> @Martijn
> I'm so glad to hear that it confuses you too, it made my eyes cross.
>
> So I'll leave it entirely up to you, right?
>
> Erick
>
> On Fri, Dec 16, 2011 at 10:03 AM, Martijn v Groningen
> <[EMAIL PROTECTED]> wrote:
>> @Erick
>> Cool. This test confuses me a bit with the String[][][] that
>> represents a document. I'm rewriting that to use SolrTestCaseJ4.Doc
>> class, which I think will make the test more readable.
>>
>> On 16 December 2011 15:55, Erick Erickson <[EMAIL PROTECTED]> wrote:
>>> @Uwe
>>> just teasing, but I *do* test with Java 1.5 thanks to you!
>>>
>>> @Martijn
>>> I've got fixes ready to check in, just running through full test now.
>>> I'll attach the current version to the bug (SOLR-2975) for your
>>> perusal. I tried changing things to use List<Map<String, Object>> but
>>> couldn't get that to work with the multivalued test so put in a method
>>> to compare things as maps. You'll see in the patch.....
>>>
>>> Erick
>>>
>>> On Fri, Dec 16, 2011 at 9:11 AM, Martijn v Groningen
>>> <[EMAIL PROTECTED]> wrote:
>>>> Thanks for noticing this! I should have checked the tests better
>>>> before I committed this! I also get random failures here running the
>>>> test with -Dtests.iter:
>>>> ant test -Dtestcase=TestSolrEntityProcessorUnit -Dtests.iter=1000
>>>>
>>>> I'll also take a look at it.
>>>>
>>>> Martijn
>>>>
>>>> On 16 December 2011 13:51, Uwe Schindler <[EMAIL PROTECTED]> wrote:
>>>>> Erick, as Hoss said, the test is buggy. It makes assumtions that the
>>>>> EntrySet of a map is order. This is not the case, a Set by definition is
>>>>> unsorted. So the test is buggy and luckily you investigated the bug.
>>>>>
>>>>> -----
>>>>> Uwe Schindler
>>>>> H.-H.-Meier-Allee 63, D-28213 Bremen
>>>>> http://www.thetaphi.de
>>>>> eMail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>> -----Original Message-----
>>>>>> From: Erick Erickson [mailto:[EMAIL PROTECTED]]
>>>>>> Sent: Friday, December 16, 2011 1:41 PM
>>>>>> To: [EMAIL PROTECTED]
>>>>>> Subject: Re: local 3x test failure
>>>>>>
>>>>>> See? After Uwe made me paranoid by finding the screw-up where I checked
>>>>>> code in that didn't even compile under 1.5 I started getting more thorough
>>>>> with
>>>>>> using 1.5. Lucky me.
>>>>>>
>>>>>> So, can we stop developing 3.x sometime real soon now and make my life
>>>>>> easier? <G>
>>>>>>
>>>>>> Anyway, I'll take care of this today.
>>>>>>
>>>>>> Erick
>>>>>>
>>>>>> On Thu, Dec 15, 2011 at 11:46 PM, Steven A Rowe <[EMAIL PROTECTED]> wrote:
>>>>>> > Oh, and the reason Jenkins isn't seeing this failure is that it runs
>>>>> branch_3x
>>>>>> tests using Java 1.6, after first *compiling* with Java 1.5.
>>>>>> >
>>>>>> >> -----Original Message-----
>>>>>> >> From: Steven A Rowe [mailto:[EMAIL PROTECTED]]
>>>>>> >> Sent: Thursday, December 15, 2011 11:45 PM
>>>>>> >> To: [EMAIL PROTECTED]
>>>>>> >> Subject: RE: local 3x test failure
>>>>>> >>
>>>>>> >> FYI, I see this same failure when I run the branch_3x tests with Java
>>>>>> >> 1.5, but not 1.6.
>>>>>> >>
>>>>>> >> > -----Original Message-----
>>>>>> >> > From: Erick Erickson [mailto:[EMAIL PROTECTED]]
>>>>>> >> > Sent: Thursday, December 15, 2011 9:52 PM
>>>>>> >> > To: [EMAIL PROTECTED]
>>>>>> >> > Subject: local 3x test failure
>>>>>> >> >
>>>>>> >> > I'm consistently getting the error below when running tests,
>>>>>> >> > updated checkout of Solr 3x, no changes to the code.
>>>>>> >> >
>>>>>> >> > Note, in my case, it isn't necessary to specify the seed at all,
>>>>>> >> > "ant test -Dtestcase=TestSolrEntityProcessorUnit" fails all by
>>>>> itself.
>>>>>> >> >
>>>>>> >> > Looking at the test code, it *appears* to be an ordering problem.
>>>>>> >> > This bit of code (lines 119+
>>>>>> >> > TestSolrEntityProcessorUnit.testMultiThread)
>>>>>> >> > is throwing the error:

Met vriendelijke groet,

Martijn van Groningen