You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephen Colebourne <sc...@btopenworld.com> on 2003/12/02 01:46:00 UTC

[collections] Race condition

Sadly there seems to be a race condition in one of the new classes/tests

There was 1 failure:
1) testMapIteratorSet(TestFlat3Map.bulkTestMapIterator.testMapIteratorSet)
junit.framework.AssertionFailedError: Map must not contain old value
expected:<false> but was:<true>
 at
org.apache.commons.collections.iterators.AbstractTestMapIterator.testMapIter
atorSet(AbstractTestMapIterator.java:267)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
 at org.apache.commons.collections.map.TestAll.main(TestAll.java:80)

When I run with Eclipse debugger the error is in TestFlat3Map. When I run
without the debugger, the error is in TestHashedMap. And occaisionaly it
works.

I'm going to sleep, so I'll disable the test for the moment in case Gump
runs. If anyone wants to play they're welcome - I'm guessing its the test
thats bad.

Stephen



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


Re: [collections] Race condition

Posted by Stephen Colebourne <sc...@btopenworld.com>.
Thanks,
I just tried again today and can't reproduce.
Nor can http://jakarta.apache.org/gump/index.html
So I'm guessing it was my box/bad compilation.
Stephen

----- Original Message -----
From: "Michael Heuer" <he...@acm.org>
> I gave it multiple tries but haven't been able to reproduce this
> failure either, under maven and OSX JDK 1.4.1_01 or Sun Linux JDK 1.4.2.
>
>    michael
>
>
> On Wed, 3 Dec 2003, Stephen Colebourne wrote:
>
> > I've seen it once today. Maybe its just my setup - as far as I can see
there
> > is no threading in these tests...
> > Stephen
> > Sun JDK1.4.1 Windows98
> >
> > ----- Original Message -----
> > From: "Phil Steitz" <ph...@steitz.com>
> > > I am not seeing these failures.  Did recent commits include a fix?  If
so,
> > > where?  I am running the tests under maven, Sun Linux JDK 1.4.2.
> > >
> > > Phil
> > >
> > > Stephen Colebourne wrote:
> > > > HELP!
> > > > Anyone got any good ideas or tools to track this down. It is now
very
> > > > occaisional, but may knock out the next gump run! Today it only
happens
> > when
> > > > I run TestAllPackages.
> > > > Stephen
> > > >
> > > > ----- Original Message -----
> > > > From: "Stephen Colebourne" <sc...@btopenworld.com>
> > > > To: "Jakarta Commons Developers List"
<co...@jakarta.apache.org>
> > > > Sent: Tuesday, December 02, 2003 12:46 AM
> > > > Subject: [collections] Race condition
> > > >
> > > >
> > > >
> > > >>Sadly there seems to be a race condition in one of the new
classes/tests
> > > >>
> > > >>There was 1 failure:
> > > >>1)
> > testMapIteratorSet(TestFlat3Map.bulkTestMapIterator.testMapIteratorSet)
> > > >>junit.framework.AssertionFailedError: Map must not contain old value
> > > >>expected:<false> but was:<true>
> > > >> at
> > > >>
> > > >
> > > >
> >
org.apache.commons.collections.iterators.AbstractTestMapIterator.testMapIter
> > > >
> > > >>atorSet(AbstractTestMapIterator.java:267)
> > > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > > >> at
> > > >>
> > > >
> > > >
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > > >
> > > >>)
> > > >> at
> > > >>
> > > >
> > > >
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> > > >
> > > >>.java:25)
> > > >> at org.apache.commons.collections.map.TestAll.main(TestAll.java:80)
> > > >>
> > > >>When I run with Eclipse debugger the error is in TestFlat3Map. When
I
> > run
> > > >>without the debugger, the error is in TestHashedMap. And
occaisionaly it
> > > >>works.
> > > >>
> > > >>I'm going to sleep, so I'll disable the test for the moment in case
Gump
> > > >>runs. If anyone wants to play they're welcome - I'm guessing its the
> > test
> > > >>thats bad.
> > > >>
> > > >>Stephen
> > > >>
> > > >>
> > > >>
> > >
>>---------------------------------------------------------------------
> > > >>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > >>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > > >>
> > > >
> > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>


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


Re: [collections] Race condition

Posted by Michael Heuer <he...@acm.org>.
I gave it multiple tries but haven't been able to reproduce this
failure either, under maven and OSX JDK 1.4.1_01 or Sun Linux JDK 1.4.2.

   michael


On Wed, 3 Dec 2003, Stephen Colebourne wrote:

> I've seen it once today. Maybe its just my setup - as far as I can see there
> is no threading in these tests...
> Stephen
> Sun JDK1.4.1 Windows98
>
> ----- Original Message -----
> From: "Phil Steitz" <ph...@steitz.com>
> > I am not seeing these failures.  Did recent commits include a fix?  If so,
> > where?  I am running the tests under maven, Sun Linux JDK 1.4.2.
> >
> > Phil
> >
> > Stephen Colebourne wrote:
> > > HELP!
> > > Anyone got any good ideas or tools to track this down. It is now very
> > > occaisional, but may knock out the next gump run! Today it only happens
> when
> > > I run TestAllPackages.
> > > Stephen
> > >
> > > ----- Original Message -----
> > > From: "Stephen Colebourne" <sc...@btopenworld.com>
> > > To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
> > > Sent: Tuesday, December 02, 2003 12:46 AM
> > > Subject: [collections] Race condition
> > >
> > >
> > >
> > >>Sadly there seems to be a race condition in one of the new classes/tests
> > >>
> > >>There was 1 failure:
> > >>1)
> testMapIteratorSet(TestFlat3Map.bulkTestMapIterator.testMapIteratorSet)
> > >>junit.framework.AssertionFailedError: Map must not contain old value
> > >>expected:<false> but was:<true>
> > >> at
> > >>
> > >
> > >
> org.apache.commons.collections.iterators.AbstractTestMapIterator.testMapIter
> > >
> > >>atorSet(AbstractTestMapIterator.java:267)
> > >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >> at
> > >>
> > >
> > >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> > >
> > >>)
> > >> at
> > >>
> > >
> > >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> > >
> > >>.java:25)
> > >> at org.apache.commons.collections.map.TestAll.main(TestAll.java:80)
> > >>
> > >>When I run with Eclipse debugger the error is in TestFlat3Map. When I
> run
> > >>without the debugger, the error is in TestHashedMap. And occaisionaly it
> > >>works.
> > >>
> > >>I'm going to sleep, so I'll disable the test for the moment in case Gump
> > >>runs. If anyone wants to play they're welcome - I'm guessing its the
> test
> > >>thats bad.
> > >>
> > >>Stephen
> > >>
> > >>
> > >>
> > >>---------------------------------------------------------------------
> > >>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > >>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > >>
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> > >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>


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


Re: [collections] Race condition

Posted by Stephen Colebourne <sc...@btopenworld.com>.
I've seen it once today. Maybe its just my setup - as far as I can see there
is no threading in these tests...
Stephen
Sun JDK1.4.1 Windows98

----- Original Message -----
From: "Phil Steitz" <ph...@steitz.com>
> I am not seeing these failures.  Did recent commits include a fix?  If so,
> where?  I am running the tests under maven, Sun Linux JDK 1.4.2.
>
> Phil
>
> Stephen Colebourne wrote:
> > HELP!
> > Anyone got any good ideas or tools to track this down. It is now very
> > occaisional, but may knock out the next gump run! Today it only happens
when
> > I run TestAllPackages.
> > Stephen
> >
> > ----- Original Message -----
> > From: "Stephen Colebourne" <sc...@btopenworld.com>
> > To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
> > Sent: Tuesday, December 02, 2003 12:46 AM
> > Subject: [collections] Race condition
> >
> >
> >
> >>Sadly there seems to be a race condition in one of the new classes/tests
> >>
> >>There was 1 failure:
> >>1)
testMapIteratorSet(TestFlat3Map.bulkTestMapIterator.testMapIteratorSet)
> >>junit.framework.AssertionFailedError: Map must not contain old value
> >>expected:<false> but was:<true>
> >> at
> >>
> >
> >
org.apache.commons.collections.iterators.AbstractTestMapIterator.testMapIter
> >
> >>atorSet(AbstractTestMapIterator.java:267)
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >>
> >
> >
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> >
> >>)
> >> at
> >>
> >
> >
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> >
> >>.java:25)
> >> at org.apache.commons.collections.map.TestAll.main(TestAll.java:80)
> >>
> >>When I run with Eclipse debugger the error is in TestFlat3Map. When I
run
> >>without the debugger, the error is in TestHashedMap. And occaisionaly it
> >>works.
> >>
> >>I'm going to sleep, so I'll disable the test for the moment in case Gump
> >>runs. If anyone wants to play they're welcome - I'm guessing its the
test
> >>thats bad.
> >>
> >>Stephen
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>


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


Re: [collections] Race condition

Posted by Phil Steitz <ph...@steitz.com>.
Stephen,

I am not seeing these failures.  Did recent commits include a fix?  If so, 
where?  I am running the tests under maven, Sun Linux JDK 1.4.2.

Phil

Stephen Colebourne wrote:
> HELP!
> Anyone got any good ideas or tools to track this down. It is now very
> occaisional, but may knock out the next gump run! Today it only happens when
> I run TestAllPackages.
> Stephen
> 
> ----- Original Message -----
> From: "Stephen Colebourne" <sc...@btopenworld.com>
> To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
> Sent: Tuesday, December 02, 2003 12:46 AM
> Subject: [collections] Race condition
> 
> 
> 
>>Sadly there seems to be a race condition in one of the new classes/tests
>>
>>There was 1 failure:
>>1) testMapIteratorSet(TestFlat3Map.bulkTestMapIterator.testMapIteratorSet)
>>junit.framework.AssertionFailedError: Map must not contain old value
>>expected:<false> but was:<true>
>> at
>>
> 
> org.apache.commons.collections.iterators.AbstractTestMapIterator.testMapIter
> 
>>atorSet(AbstractTestMapIterator.java:267)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
> 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> 
>>)
>> at
>>
> 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> 
>>.java:25)
>> at org.apache.commons.collections.map.TestAll.main(TestAll.java:80)
>>
>>When I run with Eclipse debugger the error is in TestFlat3Map. When I run
>>without the debugger, the error is in TestHashedMap. And occaisionaly it
>>works.
>>
>>I'm going to sleep, so I'll disable the test for the moment in case Gump
>>runs. If anyone wants to play they're welcome - I'm guessing its the test
>>thats bad.
>>
>>Stephen
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 




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


Re: [collections] Race condition

Posted by Stephen Colebourne <sc...@btopenworld.com>.
HELP!
Anyone got any good ideas or tools to track this down. It is now very
occaisional, but may knock out the next gump run! Today it only happens when
I run TestAllPackages.
Stephen

----- Original Message -----
From: "Stephen Colebourne" <sc...@btopenworld.com>
To: "Jakarta Commons Developers List" <co...@jakarta.apache.org>
Sent: Tuesday, December 02, 2003 12:46 AM
Subject: [collections] Race condition


> Sadly there seems to be a race condition in one of the new classes/tests
>
> There was 1 failure:
> 1) testMapIteratorSet(TestFlat3Map.bulkTestMapIterator.testMapIteratorSet)
> junit.framework.AssertionFailedError: Map must not contain old value
> expected:<false> but was:<true>
>  at
>
org.apache.commons.collections.iterators.AbstractTestMapIterator.testMapIter
> atorSet(AbstractTestMapIterator.java:267)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
>  at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
>  at org.apache.commons.collections.map.TestAll.main(TestAll.java:80)
>
> When I run with Eclipse debugger the error is in TestFlat3Map. When I run
> without the debugger, the error is in TestHashedMap. And occaisionaly it
> works.
>
> I'm going to sleep, so I'll disable the test for the moment in case Gump
> runs. If anyone wants to play they're welcome - I'm guessing its the test
> thats bad.
>
> Stephen
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>


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