You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Yonik Seeley <ys...@gmail.com> on 2005/09/20 23:57:42 UTC

time for "ant test"?

I'm using Lucene 1.9 for the first time (migrating from Lucene 1.4.3) and 
building from the latest version in SVN.
How long should "ant test" take? It seems to progress normally, then freezes 
after TestWildcard (have been waiting like 20 minutes). The CPU is still 
spinning doing something...

java5, latest ant, cygwin, P4 2.8GHz, lucene1.9 synced today 4pm ET

[junit] Testsuite: org.apache.lucene.search.TestRangeQuery
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.521 sec

[junit] Testsuite: org.apache.lucene.search.TestRemoteSearchable
[junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 2.013 sec

[junit] Testsuite: org.apache.lucene.search.TestSetNorm
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.461 sec

[junit] Testsuite: org.apache.lucene.search.TestSimilarity
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.491 sec

[junit] Testsuite: org.apache.lucene.search.TestSort
[junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 3.295 sec

[junit] Testsuite: org.apache.lucene.search.TestTermVectors
[junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 5.308 sec

[junit] Testsuite: org.apache.lucene.search.TestWildcard
[junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.51 sec


-Yonik
Now hiring -- http://tinyurl.com/7m67g

Re: time for "ant test"?

Posted by sergiu gordea <gs...@ifit.uni-klu.ac.at>.
 Hi all,

 I'm not familiar with this part of the code (SpanxxQuery.rewrite), but 
I was following the discussions and a question I had in
mind from the begining:
Since these methods seem to be similar, or at least some part of the 
code, isn't it possible to use some refactorings, a base class (abstract 
if needed)
and to eliminate the duplicated code?

Probably an argument for doing this are Erik's words:

 "I have corrected the issue, caused by a *copy/paste *error in  
SpanNotQuery.rewrite."

 Best,

 Sergiu


Erik Hatcher wrote:

> Yonik,
>
> Thanks for reporting this, and thanks to Otis for pointing me quickly  
> to the issue.  I too had run the tests, but my environment has some  
> modified code so I chalked up the test issue to my local environment  
> also.  My apologies for not practicing what I preach in this case.
>
> I have corrected the issue, caused by a copy/paste error in  
> SpanNotQuery.rewrite.
>
>     Erik
>
>
> On Sep 20, 2005, at 5:57 PM, Yonik Seeley wrote:
>
>> I'm using Lucene 1.9 for the first time (migrating from Lucene  
>> 1.4.3) and
>> building from the latest version in SVN.
>> How long should "ant test" take? It seems to progress normally,  then 
>> freezes
>> after TestWildcard (have been waiting like 20 minutes). The CPU is  
>> still
>> spinning doing something...
>>
>> java5, latest ant, cygwin, P4 2.8GHz, lucene1.9 synced today 4pm ET
>>
>> [junit] Testsuite: org.apache.lucene.search.TestRangeQuery
>> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.521 sec
>>
>> [junit] Testsuite: org.apache.lucene.search.TestRemoteSearchable
>> [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 2.013 sec
>>
>> [junit] Testsuite: org.apache.lucene.search.TestSetNorm
>> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.461 sec
>>
>> [junit] Testsuite: org.apache.lucene.search.TestSimilarity
>> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.491 sec
>>
>> [junit] Testsuite: org.apache.lucene.search.TestSort
>> [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 3.295 sec
>>
>> [junit] Testsuite: org.apache.lucene.search.TestTermVectors
>> [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 5.308 sec
>>
>> [junit] Testsuite: org.apache.lucene.search.TestWildcard
>> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.51 sec
>>
>>
>> -Yonik
>> Now hiring -- http://tinyurl.com/7m67g
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>


Re: time for "ant test"?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Yonik,

Thanks for reporting this, and thanks to Otis for pointing me quickly  
to the issue.  I too had run the tests, but my environment has some  
modified code so I chalked up the test issue to my local environment  
also.  My apologies for not practicing what I preach in this case.

I have corrected the issue, caused by a copy/paste error in  
SpanNotQuery.rewrite.

     Erik


On Sep 20, 2005, at 5:57 PM, Yonik Seeley wrote:

> I'm using Lucene 1.9 for the first time (migrating from Lucene  
> 1.4.3) and
> building from the latest version in SVN.
> How long should "ant test" take? It seems to progress normally,  
> then freezes
> after TestWildcard (have been waiting like 20 minutes). The CPU is  
> still
> spinning doing something...
>
> java5, latest ant, cygwin, P4 2.8GHz, lucene1.9 synced today 4pm ET
>
> [junit] Testsuite: org.apache.lucene.search.TestRangeQuery
> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.521 sec
>
> [junit] Testsuite: org.apache.lucene.search.TestRemoteSearchable
> [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 2.013 sec
>
> [junit] Testsuite: org.apache.lucene.search.TestSetNorm
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.461 sec
>
> [junit] Testsuite: org.apache.lucene.search.TestSimilarity
> [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.491 sec
>
> [junit] Testsuite: org.apache.lucene.search.TestSort
> [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 3.295 sec
>
> [junit] Testsuite: org.apache.lucene.search.TestTermVectors
> [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 5.308 sec
>
> [junit] Testsuite: org.apache.lucene.search.TestWildcard
> [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.51 sec
>
>
> -Yonik
> Now hiring -- http://tinyurl.com/7m67g
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: time for "ant test"?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
I'm looking into it!  Sorry 'bout this.... hopefully a fix will be  
forthcoming...

     Erik

On Sep 20, 2005, at 7:46 PM, Otis Gospodnetic wrote:

> It looks like SpanNotQuery's rewrite get the following loop in
> IndexSearcher in an infinite loop:
>
>     for (Query rewrittenQuery = query.rewrite(reader); rewrittenQuery
> != query;
>          rewrittenQuery = query.rewrite(reader)) {
>       query = rewrittenQuery;
>     }
>
> Got to go make dinner...
>
> Otis
>
>
> --- Otis Gospodnetic <ot...@yahoo.com> wrote:
>
>
>> I lied.
>>
>>
>>> I had the same problem, but thought an issue was on my end.
>>> Just tried it now, and it went through, all tests passed.... twice.
>>>
>>
>> That was on a different machine.  I just did svn up, followed by ant
>> test, and things hang.  svn up brought this:
>>
>> U  common-build.xml
>> U  CHANGES.txt
>> U
>> src/test/org/apache/lucene/queryParser/TestMultiFieldQueryParser.java
>> U  src/test/org/apache/lucene/queryParser/TestQueryParser.java
>> A  src/test/org/apache/lucene/search/TestMatchAllDocsQuery.java
>> D  src/test/org/apache/lucene/index/store/FSDirectoryTestCase.java
>> A  src/test/org/apache/lucene/index/store/FSDirectoryTest.java
>> U  src/test/org/apache/lucene/index/TestParallelReader.java
>> U  src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java
>> U  src/java/org/apache/lucene/queryParser/QueryParser.java
>> U  src/java/org/apache/lucene/queryParser/QueryParser.jj
>> U  src/java/org/apache/lucene/search/FieldDocSortedHitQueue.java
>> U  src/java/org/apache/lucene/search/BooleanScorer2.java
>> A  src/java/org/apache/lucene/search/MatchAllDocsQuery.java
>> U  src/java/org/apache/lucene/search/spans/SpanFirstQuery.java
>> U  src/java/org/apache/lucene/search/spans/SpanNotQuery.java
>> U  src/java/org/apache/lucene/search/spans/SpanOrQuery.java
>> U  src/java/org/apache/lucene/search/spans/SpanNearQuery.java
>> U  src/java/org/apache/lucene/index/MultipleTermPositions.java
>> U  src/java/org/apache/lucene/index/ParallelReader.java
>> U  src/java/org/apache/lucene/index/SegmentReader.java
>> U  src/java/org/apache/lucene/store/FSDirectory.java
>>
>> It's the testSpanNot that's problematic... traced it into Query
>> rewrite(IndexReader) method, which makes me think it has to do with
>> the
>> recent addition of rewrite methods for the Span Query family...
>>
>> Otis
>>
>>
>>> --- Marvin Humphrey <ma...@rectangular.com> wrote:
>>>
>>>
>>>>
>>>> On Sep 20, 2005, at 2:57 PM, Yonik Seeley wrote:
>>>>
>>>>
>>>>> I'm using Lucene 1.9 for the first time (migrating from Lucene
>>>>>
>>
>>
>>>>> 1.4.3) and
>>>>> building from the latest version in SVN.
>>>>> How long should "ant test" take? It seems to progress normally,
>>>>>
>>
>>
>>>>> then freezes
>>>>> after TestWildcard (have been waiting like 20 minutes). The CPU
>>>>>
>>> is
>>>
>>>>
>>>>
>>>>> still
>>>>> spinning doing something...
>>>>>
>>>>
>>>> I had the same experience this morning.  It seems to be stuck on
>>>>
>>
>>
>>>> org.apache.lucene.search.spans.TestBasics -- I gave up and hit
>>>> control-C.
>>>>
>>>> Marvin Humphrey
>>>> Rectangular Research
>>>> http://www.rectangular.com/
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>> ---------------------------------------------------------------------
>>
>>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>> ---------------------------------------------------------------------
>>
>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>
>>>
>>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: time for "ant test"?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
It looks like SpanNotQuery's rewrite get the following loop in
IndexSearcher in an infinite loop:

    for (Query rewrittenQuery = query.rewrite(reader); rewrittenQuery
!= query;
         rewrittenQuery = query.rewrite(reader)) {
      query = rewrittenQuery;
    }

Got to go make dinner...

Otis


--- Otis Gospodnetic <ot...@yahoo.com> wrote:

> I lied.
> 
> > I had the same problem, but thought an issue was on my end.
> > Just tried it now, and it went through, all tests passed.... twice.
> 
> That was on a different machine.  I just did svn up, followed by ant
> test, and things hang.  svn up brought this:
> 
> U  common-build.xml
> U  CHANGES.txt
> U 
> src/test/org/apache/lucene/queryParser/TestMultiFieldQueryParser.java
> U  src/test/org/apache/lucene/queryParser/TestQueryParser.java
> A  src/test/org/apache/lucene/search/TestMatchAllDocsQuery.java
> D  src/test/org/apache/lucene/index/store/FSDirectoryTestCase.java
> A  src/test/org/apache/lucene/index/store/FSDirectoryTest.java
> U  src/test/org/apache/lucene/index/TestParallelReader.java
> U  src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java
> U  src/java/org/apache/lucene/queryParser/QueryParser.java
> U  src/java/org/apache/lucene/queryParser/QueryParser.jj
> U  src/java/org/apache/lucene/search/FieldDocSortedHitQueue.java
> U  src/java/org/apache/lucene/search/BooleanScorer2.java
> A  src/java/org/apache/lucene/search/MatchAllDocsQuery.java
> U  src/java/org/apache/lucene/search/spans/SpanFirstQuery.java
> U  src/java/org/apache/lucene/search/spans/SpanNotQuery.java
> U  src/java/org/apache/lucene/search/spans/SpanOrQuery.java
> U  src/java/org/apache/lucene/search/spans/SpanNearQuery.java
> U  src/java/org/apache/lucene/index/MultipleTermPositions.java
> U  src/java/org/apache/lucene/index/ParallelReader.java
> U  src/java/org/apache/lucene/index/SegmentReader.java
> U  src/java/org/apache/lucene/store/FSDirectory.java
> 
> It's the testSpanNot that's problematic... traced it into Query
> rewrite(IndexReader) method, which makes me think it has to do with
> the
> recent addition of rewrite methods for the Span Query family...
> 
> Otis
> 
> > --- Marvin Humphrey <ma...@rectangular.com> wrote:
> > 
> > > 
> > > On Sep 20, 2005, at 2:57 PM, Yonik Seeley wrote:
> > > 
> > > > I'm using Lucene 1.9 for the first time (migrating from Lucene 
> 
> > > > 1.4.3) and
> > > > building from the latest version in SVN.
> > > > How long should "ant test" take? It seems to progress normally,
>  
> > > > then freezes
> > > > after TestWildcard (have been waiting like 20 minutes). The CPU
> > is 
> > > 
> > > > still
> > > > spinning doing something...
> > > 
> > > I had the same experience this morning.  It seems to be stuck on 
> 
> > > org.apache.lucene.search.spans.TestBasics -- I gave up and hit  
> > > control-C.
> > > 
> > > Marvin Humphrey
> > > Rectangular Research
> > > http://www.rectangular.com/
> > > 
> > > 
> > >
> >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > > For additional commands, e-mail: java-dev-help@lucene.apache.org
> > > 
> > > 
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-dev-help@lucene.apache.org
> > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: time for "ant test"?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
I lied.

> I had the same problem, but thought an issue was on my end.
> Just tried it now, and it went through, all tests passed.... twice.

That was on a different machine.  I just did svn up, followed by ant
test, and things hang.  svn up brought this:

U  common-build.xml
U  CHANGES.txt
U 
src/test/org/apache/lucene/queryParser/TestMultiFieldQueryParser.java
U  src/test/org/apache/lucene/queryParser/TestQueryParser.java
A  src/test/org/apache/lucene/search/TestMatchAllDocsQuery.java
D  src/test/org/apache/lucene/index/store/FSDirectoryTestCase.java
A  src/test/org/apache/lucene/index/store/FSDirectoryTest.java
U  src/test/org/apache/lucene/index/TestParallelReader.java
U  src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java
U  src/java/org/apache/lucene/queryParser/QueryParser.java
U  src/java/org/apache/lucene/queryParser/QueryParser.jj
U  src/java/org/apache/lucene/search/FieldDocSortedHitQueue.java
U  src/java/org/apache/lucene/search/BooleanScorer2.java
A  src/java/org/apache/lucene/search/MatchAllDocsQuery.java
U  src/java/org/apache/lucene/search/spans/SpanFirstQuery.java
U  src/java/org/apache/lucene/search/spans/SpanNotQuery.java
U  src/java/org/apache/lucene/search/spans/SpanOrQuery.java
U  src/java/org/apache/lucene/search/spans/SpanNearQuery.java
U  src/java/org/apache/lucene/index/MultipleTermPositions.java
U  src/java/org/apache/lucene/index/ParallelReader.java
U  src/java/org/apache/lucene/index/SegmentReader.java
U  src/java/org/apache/lucene/store/FSDirectory.java

It's the testSpanNot that's problematic... traced it into Query
rewrite(IndexReader) method, which makes me think it has to do with the
recent addition of rewrite methods for the Span Query family...

Otis

> --- Marvin Humphrey <ma...@rectangular.com> wrote:
> 
> > 
> > On Sep 20, 2005, at 2:57 PM, Yonik Seeley wrote:
> > 
> > > I'm using Lucene 1.9 for the first time (migrating from Lucene  
> > > 1.4.3) and
> > > building from the latest version in SVN.
> > > How long should "ant test" take? It seems to progress normally,  
> > > then freezes
> > > after TestWildcard (have been waiting like 20 minutes). The CPU
> is 
> > 
> > > still
> > > spinning doing something...
> > 
> > I had the same experience this morning.  It seems to be stuck on  
> > org.apache.lucene.search.spans.TestBasics -- I gave up and hit  
> > control-C.
> > 
> > Marvin Humphrey
> > Rectangular Research
> > http://www.rectangular.com/
> > 
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-dev-help@lucene.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: time for "ant test"?

Posted by Otis Gospodnetic <ot...@yahoo.com>.
I had the same problem, but thought an issue was on my end.
Just tried it now, and it went through, all tests passed.... twice.

Otis

--- Marvin Humphrey <ma...@rectangular.com> wrote:

> 
> On Sep 20, 2005, at 2:57 PM, Yonik Seeley wrote:
> 
> > I'm using Lucene 1.9 for the first time (migrating from Lucene  
> > 1.4.3) and
> > building from the latest version in SVN.
> > How long should "ant test" take? It seems to progress normally,  
> > then freezes
> > after TestWildcard (have been waiting like 20 minutes). The CPU is 
> 
> > still
> > spinning doing something...
> 
> I had the same experience this morning.  It seems to be stuck on  
> org.apache.lucene.search.spans.TestBasics -- I gave up and hit  
> control-C.
> 
> Marvin Humphrey
> Rectangular Research
> http://www.rectangular.com/
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Re: time for "ant test"?

Posted by Marvin Humphrey <ma...@rectangular.com>.
On Sep 20, 2005, at 2:57 PM, Yonik Seeley wrote:

> I'm using Lucene 1.9 for the first time (migrating from Lucene  
> 1.4.3) and
> building from the latest version in SVN.
> How long should "ant test" take? It seems to progress normally,  
> then freezes
> after TestWildcard (have been waiting like 20 minutes). The CPU is  
> still
> spinning doing something...

I had the same experience this morning.  It seems to be stuck on  
org.apache.lucene.search.spans.TestBasics -- I gave up and hit  
control-C.

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org