You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Simone Tripodi (JIRA)" <ji...@apache.org> on 2011/04/26 12:10:03 UTC

[jira] [Created] (POOL-187) TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops

TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops
----------------------------------------------------------------------------

                 Key: POOL-187
                 URL: https://issues.apache.org/jira/browse/POOL-187
             Project: Commons Pool
          Issue Type: Bug
    Affects Versions: 2.0
            Reporter: Simone Tripodi
            Assignee: Phil Steitz


After having restored the Genrics, the TestGenericKeyedObjectPool.testMaxTotalLRU test method is stuck and I didn't figure out the reason :(
That's why I currently put the @Ignore annotation, so JUnit can continue running, but I need help to fix it.
I suspect Continuum is stuck too, but I think I don't have enough karma to unlock it.
Many thanks in advance!!!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (POOL-187) TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops

Posted by "Sebb (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/POOL-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025172#comment-13025172 ] 

Sebb commented on POOL-187:
---------------------------

It's easy enough to fix the test so it does not hang - just enable a timeout.

However, I've no idea why the pool thinks it has no free entries.

> TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops
> ----------------------------------------------------------------------------
>
>                 Key: POOL-187
>                 URL: https://issues.apache.org/jira/browse/POOL-187
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Simone Tripodi
>            Assignee: Phil Steitz
>
> After having restored the Genrics, the TestGenericKeyedObjectPool.testMaxTotalLRU test method is stuck and I didn't figure out the reason :(
> That's why I currently put the @Ignore annotation, so JUnit can continue running, but I need help to fix it.
> I suspect Continuum is stuck too, but I think I don't have enough karma to unlock it.
> Many thanks in advance!!!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (POOL-187) TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops

Posted by "Simone Tripodi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/POOL-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025642#comment-13025642 ] 

Simone Tripodi commented on POOL-187:
-------------------------------------

Hi Phil,
current GenericKeyedObjectPool#clearOldest() implementation with generics is almost the same (unless the Java5 iterators) of the one in the FUTURE branch that works, that's why this problem is driving me crazy and asked your help :(
Any other hint? Many thanks in advance!

> TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops
> ----------------------------------------------------------------------------
>
>                 Key: POOL-187
>                 URL: https://issues.apache.org/jira/browse/POOL-187
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Simone Tripodi
>
> After having restored the Genrics, the TestGenericKeyedObjectPool.testMaxTotalLRU test method is stuck and I didn't figure out the reason :(
> That's why I currently put the @Ignore annotation, so JUnit can continue running, but I need help to fix it.
> I suspect Continuum is stuck too, but I think I don't have enough karma to unlock it.
> Many thanks in advance!!!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (POOL-187) TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops

Posted by "Simone Tripodi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/POOL-187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simone Tripodi resolved POOL-187.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

parametrization was right, problem is that I accidentally merged obsolete code while restoring the generics :(
my fault ;(

> TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops
> ----------------------------------------------------------------------------
>
>                 Key: POOL-187
>                 URL: https://issues.apache.org/jira/browse/POOL-187
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>             Fix For: 2.0
>
>
> After having restored the Genrics, the TestGenericKeyedObjectPool.testMaxTotalLRU test method is stuck and I didn't figure out the reason :(
> That's why I currently put the @Ignore annotation, so JUnit can continue running, but I need help to fix it.
> I suspect Continuum is stuck too, but I think I don't have enough karma to unlock it.
> Many thanks in advance!!!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (POOL-187) TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/POOL-187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13025813#comment-13025813 ] 

Phil Steitz commented on POOL-187:
----------------------------------

Look carefully at the clearOldest code.  That is almost certainly where the problem is (since you can see from a thread dump on a stalled execution that the pool appears exhausted and the test in question is verifying that clearOldest is creating capacity).  The map used to store instances to be considered for removal has pool keys as *values* not keys (per the comment in the code).  It looks like you reversed that in the parameterization. 

> TestGenericKeyedObjectPool.testMaxTotalLRU method falls in an infinite loops
> ----------------------------------------------------------------------------
>
>                 Key: POOL-187
>                 URL: https://issues.apache.org/jira/browse/POOL-187
>             Project: Commons Pool
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Simone Tripodi
>            Assignee: Simone Tripodi
>
> After having restored the Genrics, the TestGenericKeyedObjectPool.testMaxTotalLRU test method is stuck and I didn't figure out the reason :(
> That's why I currently put the @Ignore annotation, so JUnit can continue running, but I need help to fix it.
> I suspect Continuum is stuck too, but I think I don't have enough karma to unlock it.
> Many thanks in advance!!!

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira