You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by Mark Miller <ma...@gmail.com> on 2009/01/29 01:20:57 UTC

trunk test failure

Anyone else seeing the function query test failing on trunk?

- Mark

Re: trunk test failure

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Fri, Jan 30, 2009 at 6:31 PM, Yonik Seeley <ys...@gmail.com> wrote:

> > Yonik, can you give more details on this bug?
>
> This line isn't true when another searcher is open... they are
> equivalent, but not equal (canonical paths and all that i guess):
>        if(new File(getIndexDir()).equals(new File(newIndexDir)))  {
>

The first problem is that File.equals compares only the path and not the
absolute path. A work around is to compare absolute path ourselves. But a
bigger problem is with the canonical paths where long directory names is
lowercased and shortened into 8 character names (e.g. "C:\Documents and
Settings" becomes "C:\DOCUME~1").
The test fails because we use java.io.tmpdir which defaults to user's home
directory (shortened and canonicalized) on windows and comparison on this
path fails. What I'm not able to figure out yet is why does Slave Jetty,
running on this canonical path, returns the full path of the index
directory.

Slave's SolrCore.getIndexDir gives:
C:\Documents and Settings\shalinsmangar\Local
Settings\Temp\org.apache.solr.handler.TestReplicationHandler$SolrInstance-1233681533000master\data\index

The value written by TestReplicationHandler is:
C:\DOCUME~1\SHALIN~1\LOCALS~1\Temp\org.apache.solr.handler.TestReplicationHandler$SolrInstance-1233681533000master\data\index

-- 
Regards,
Shalin Shekhar Mangar.

Re: trunk test failure

Posted by Yonik Seeley <ys...@gmail.com>.
On Fri, Jan 30, 2009 at 7:29 AM, Shalin Shekhar Mangar
<sh...@gmail.com> wrote:
> On Fri, Jan 30, 2009 at 5:48 PM, Yonik Seeley <ys...@gmail.com> wrote:
>
>> OK... and the final piece of the puzzle: the reason why it never
>> failed for me is that
>> SOLR-658 introduced a bug such that reopen() won't be used on Windows.
>>
>>
> Yonik, can you give more details on this bug?

This line isn't true when another searcher is open... they are
equivalent, but not equal (canonical paths and all that i guess):
        if(new File(getIndexDir()).equals(new File(newIndexDir)))  {

-Yonik

Re: trunk test failure

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Fri, Jan 30, 2009 at 5:48 PM, Yonik Seeley <ys...@gmail.com> wrote:

> OK... and the final piece of the puzzle: the reason why it never
> failed for me is that
> SOLR-658 introduced a bug such that reopen() won't be used on Windows.
>
>
Yonik, can you give more details on this bug?

-- 
Regards,
Shalin Shekhar Mangar.

Re: trunk test failure

Posted by Yonik Seeley <ys...@gmail.com>.
OK... and the final piece of the puzzle: the reason why it never
failed for me is that
SOLR-658 introduced a bug such that reopen() won't be used on Windows.

-Yonik

On Thu, Jan 29, 2009 at 11:59 PM, Yonik Seeley <ys...@gmail.com> wrote:
> Added a note about the cause of this in
> https://issues.apache.org/jira/browse/LUCENE-1478
> -Yonik
>
> On Thu, Jan 29, 2009 at 7:49 PM, Yonik Seeley <ys...@gmail.com> wrote:
>> The strangeness continues... TestFunctionQuery always passes for me,
>> and always fails for others.
>> Apparently, when Mark compiles trunk himself, the result passes again.
>>
>> Time to fire up vmware to see if I can get this to fail...
>>
>> -Yonik
>>
>> On Thu, Jan 29, 2009 at 1:34 PM, Yonik Seeley <ys...@gmail.com> wrote:
>>> OK, I've committed the latest lucene nightly.
>>>
>>> I'm getting intermittent failures in SolrExampleStreamingTest
>>> but I doubt it's related to a lucene version.
>>>
>>> I'm getting failures in TestReplicationHandler:
>>> ERRORunknown_field_newname
>>> Anyone else?
>>>
>>> -Yonik
>>>
>>>
>>>
>>> On Thu, Jan 29, 2009 at 12:45 PM, Shalin Shekhar Mangar
>>> <sh...@gmail.com> wrote:
>>>> On Thu, Jan 29, 2009 at 11:13 PM, Shalin Shekhar Mangar <
>>>> shalinmangar@gmail.com> wrote:
>>>>
>>>>>
>>>>> The FunctionQuery#singleTest fails for me on Ubuntu 8.10 with Sun JDK.
>>>>>
>>>>
>>>> That should have been FunctionQuery#testExternalField on singleTest(field,
>>>> "\0", answers)
>>>>
>>>> --
>>>> Regards,
>>>> Shalin Shekhar Mangar.
>>>>
>>>
>>
>

Re: trunk test failure

Posted by Yonik Seeley <ys...@gmail.com>.
Added a note about the cause of this in
https://issues.apache.org/jira/browse/LUCENE-1478
-Yonik

On Thu, Jan 29, 2009 at 7:49 PM, Yonik Seeley <ys...@gmail.com> wrote:
> The strangeness continues... TestFunctionQuery always passes for me,
> and always fails for others.
> Apparently, when Mark compiles trunk himself, the result passes again.
>
> Time to fire up vmware to see if I can get this to fail...
>
> -Yonik
>
> On Thu, Jan 29, 2009 at 1:34 PM, Yonik Seeley <ys...@gmail.com> wrote:
>> OK, I've committed the latest lucene nightly.
>>
>> I'm getting intermittent failures in SolrExampleStreamingTest
>> but I doubt it's related to a lucene version.
>>
>> I'm getting failures in TestReplicationHandler:
>> ERRORunknown_field_newname
>> Anyone else?
>>
>> -Yonik
>>
>>
>>
>> On Thu, Jan 29, 2009 at 12:45 PM, Shalin Shekhar Mangar
>> <sh...@gmail.com> wrote:
>>> On Thu, Jan 29, 2009 at 11:13 PM, Shalin Shekhar Mangar <
>>> shalinmangar@gmail.com> wrote:
>>>
>>>>
>>>> The FunctionQuery#singleTest fails for me on Ubuntu 8.10 with Sun JDK.
>>>>
>>>
>>> That should have been FunctionQuery#testExternalField on singleTest(field,
>>> "\0", answers)
>>>
>>> --
>>> Regards,
>>> Shalin Shekhar Mangar.
>>>
>>
>

Re: trunk test failure

Posted by Yonik Seeley <ys...@gmail.com>.
The strangeness continues... TestFunctionQuery always passes for me,
and always fails for others.
Apparently, when Mark compiles trunk himself, the result passes again.

Time to fire up vmware to see if I can get this to fail...

-Yonik

On Thu, Jan 29, 2009 at 1:34 PM, Yonik Seeley <ys...@gmail.com> wrote:
> OK, I've committed the latest lucene nightly.
>
> I'm getting intermittent failures in SolrExampleStreamingTest
> but I doubt it's related to a lucene version.
>
> I'm getting failures in TestReplicationHandler:
> ERRORunknown_field_newname
> Anyone else?
>
> -Yonik
>
>
>
> On Thu, Jan 29, 2009 at 12:45 PM, Shalin Shekhar Mangar
> <sh...@gmail.com> wrote:
>> On Thu, Jan 29, 2009 at 11:13 PM, Shalin Shekhar Mangar <
>> shalinmangar@gmail.com> wrote:
>>
>>>
>>> The FunctionQuery#singleTest fails for me on Ubuntu 8.10 with Sun JDK.
>>>
>>
>> That should have been FunctionQuery#testExternalField on singleTest(field,
>> "\0", answers)
>>
>> --
>> Regards,
>> Shalin Shekhar Mangar.
>>
>

Re: trunk test failure

Posted by Yonik Seeley <ys...@gmail.com>.
OK, I've committed the latest lucene nightly.

I'm getting intermittent failures in SolrExampleStreamingTest
but I doubt it's related to a lucene version.

I'm getting failures in TestReplicationHandler:
ERRORunknown_field_newname
Anyone else?

-Yonik



On Thu, Jan 29, 2009 at 12:45 PM, Shalin Shekhar Mangar
<sh...@gmail.com> wrote:
> On Thu, Jan 29, 2009 at 11:13 PM, Shalin Shekhar Mangar <
> shalinmangar@gmail.com> wrote:
>
>>
>> The FunctionQuery#singleTest fails for me on Ubuntu 8.10 with Sun JDK.
>>
>
> That should have been FunctionQuery#testExternalField on singleTest(field,
> "\0", answers)
>
> --
> Regards,
> Shalin Shekhar Mangar.
>

Re: trunk test failure

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Thu, Jan 29, 2009 at 11:13 PM, Shalin Shekhar Mangar <
shalinmangar@gmail.com> wrote:

>
> The FunctionQuery#singleTest fails for me on Ubuntu 8.10 with Sun JDK.
>

That should have been FunctionQuery#testExternalField on singleTest(field,
"\0", answers)

-- 
Regards,
Shalin Shekhar Mangar.

Re: trunk test failure

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
On Thu, Jan 29, 2009 at 10:43 PM, Yonik Seeley <ys...@gmail.com> wrote:

> On Thu, Jan 29, 2009 at 12:07 PM, Mark Miller <ma...@gmail.com>
> wrote:
> > Mark Miller wrote:
> >>
> >> Anyone else seeing the function query test failing on trunk?
> >>
> >> - Mark
> >
> > Okay, I tried building trunk lucene myself, and after putting that in,
> the
> > function query test passed. Perhaps an odd Lucene build went in?
>
> The previous lucene nightly had failed (on an svn tag lookup), so I
> built lucene myself (and all tests did pass).
> I've tried multiple times, and I can't get that same test to fail
> (WinXP).  Very strange.


The FunctionQuery#singleTest fails for me on Ubuntu 8.10 with Sun JDK.

java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)

-- 
Regards,
Shalin Shekhar Mangar.

Re: trunk test failure

Posted by Yonik Seeley <ys...@gmail.com>.
On Thu, Jan 29, 2009 at 12:17 PM, Michael McCandless
<lu...@mikemccandless.com> wrote:
>
> Except... the only reason (I think) that the Lucene build failed was because
> I had switched the back-compat test to check out an https:// URL instead of
> http:// (the build got hung asking whether you trust that host because its
> cert was suspect).... so I switched it back... and I'm not sure why that
> Solr test failed!  Hmmm...

Right... it doesn't look like a Lucene bug... except if there is
something weird in the build that doesn't quite work on Windows. I
built lucene with java 1.5.0_16.

Could have been a subtle compiler bug, or a bit flip somewhere that
only affected Windows, or the bytecode output from my compiler tickled
a hotspot bug on Unix....  Anyway, I'm testing with the latest nightly
build lucene libs now and will check in if they pass (for me).

-Yonik

> Mike
>
> Yonik Seeley wrote:
>
>> On Thu, Jan 29, 2009 at 12:07 PM, Mark Miller <ma...@gmail.com>
>> wrote:
>>>
>>> Mark Miller wrote:
>>>>
>>>> Anyone else seeing the function query test failing on trunk?
>>>>
>>>> - Mark
>>>
>>> Okay, I tried building trunk lucene myself, and after putting that in,
>>> the
>>> function query test passed. Perhaps an odd Lucene build went in?
>>
>> The previous lucene nightly had failed (on an svn tag lookup), so I
>> built lucene myself (and all tests did pass).
>> I've tried multiple times, and I can't get that same test to fail
>> (WinXP).  Very strange.
>>
>> Anyway, since the latest lucene nightly did pass, I'll update to that.
>> Hopefully that should fix things.
>>
>> -Yonik
>
>

Re: trunk test failure

Posted by Michael McCandless <lu...@mikemccandless.com>.
Except... the only reason (I think) that the Lucene build failed was  
because I had switched the back-compat test to check out an https://  
URL instead of http:// (the build got hung asking whether you trust  
that host because its cert was suspect).... so I switched it back...  
and I'm not sure why that Solr test failed!  Hmmm...

Mike

Yonik Seeley wrote:

> On Thu, Jan 29, 2009 at 12:07 PM, Mark Miller  
> <ma...@gmail.com> wrote:
>> Mark Miller wrote:
>>>
>>> Anyone else seeing the function query test failing on trunk?
>>>
>>> - Mark
>>
>> Okay, I tried building trunk lucene myself, and after putting that  
>> in, the
>> function query test passed. Perhaps an odd Lucene build went in?
>
> The previous lucene nightly had failed (on an svn tag lookup), so I
> built lucene myself (and all tests did pass).
> I've tried multiple times, and I can't get that same test to fail
> (WinXP).  Very strange.
>
> Anyway, since the latest lucene nightly did pass, I'll update to that.
> Hopefully that should fix things.
>
> -Yonik


Re: trunk test failure

Posted by Yonik Seeley <ys...@gmail.com>.
On Thu, Jan 29, 2009 at 12:07 PM, Mark Miller <ma...@gmail.com> wrote:
> Mark Miller wrote:
>>
>> Anyone else seeing the function query test failing on trunk?
>>
>> - Mark
>
> Okay, I tried building trunk lucene myself, and after putting that in, the
> function query test passed. Perhaps an odd Lucene build went in?

The previous lucene nightly had failed (on an svn tag lookup), so I
built lucene myself (and all tests did pass).
I've tried multiple times, and I can't get that same test to fail
(WinXP).  Very strange.

Anyway, since the latest lucene nightly did pass, I'll update to that.
 Hopefully that should fix things.

-Yonik

Re: trunk test failure

Posted by Mark Miller <ma...@gmail.com>.
Mark Miller wrote:
> Anyone else seeing the function query test failing on trunk?
>
> - Mark
Okay, I tried building trunk lucene myself, and after putting that in, 
the function query test passed. Perhaps an odd Lucene build went in?

I'm running on Ubuntu 8.10 and using opendJDK 1.6 and Sun 1.5.

- Mark