You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <ga...@gmail.com> on 2018/11/19 22:27:09 UTC
[pool] test failures
HI all:
When I run 'mvn clean verify' on git master, I get test failures on my
rather busy CPU (~60-90%):
[INFO] Running org.apache.commons.pool2.impl.TestGenericKeyedObjectPool
[ERROR] Tests run: 63, Failures: 2, Errors: 0, Skipped: 0, Time elapsed:
177.53 s <<< FAILURE! - in
org.apache.commons.pool2.impl.TestGenericKeyedObjectPool
[ERROR]
testEviction2(org.apache.commons.pool2.impl.TestGenericKeyedObjectPool)
Time elapsed: 15.04 s <<< FAILURE!
java.lang.AssertionError: Should be less than 900 idle, found 962
at
org.apache.commons.pool2.impl.TestGenericKeyedObjectPool.testEviction2(TestGenericKeyedObjectPool.java:519)
[ERROR]
testMinIdleMaxTotalPerKey(org.apache.commons.pool2.impl.TestGenericKeyedObjectPool)
Time elapsed: 0.705 s <<< FAILURE!
java.lang.AssertionError: Should be 5 idle, found 3
at
org.apache.commons.pool2.impl.TestGenericKeyedObjectPool.testMinIdleMaxTotalPerKey(TestGenericKeyedObjectPool.java:672)
Does anyone see this as well?
Gary
Re: [pool] test failures
Posted by Rob Tompkins <ch...@gmail.com>.
> On Nov 19, 2018, at 5:27 PM, Gary Gregory <ga...@gmail.com> wrote:
>
> HI all:
>
> When I run 'mvn clean verify' on git master, I get test failures on my
> rather busy CPU (~60-90%):
>
> [INFO] Running org.apache.commons.pool2.impl.TestGenericKeyedObjectPool
> [ERROR] Tests run: 63, Failures: 2, Errors: 0, Skipped: 0, Time elapsed:
> 177.53 s <<< FAILURE! - in
> org.apache.commons.pool2.impl.TestGenericKeyedObjectPool
> [ERROR]
> testEviction2(org.apache.commons.pool2.impl.TestGenericKeyedObjectPool)
> Time elapsed: 15.04 s <<< FAILURE!
> java.lang.AssertionError: Should be less than 900 idle, found 962
> at
> org.apache.commons.pool2.impl.TestGenericKeyedObjectPool.testEviction2(TestGenericKeyedObjectPool.java:519)
>
> [ERROR]
> testMinIdleMaxTotalPerKey(org.apache.commons.pool2.impl.TestGenericKeyedObjectPool)
> Time elapsed: 0.705 s <<< FAILURE!
> java.lang.AssertionError: Should be 5 idle, found 3
> at
> org.apache.commons.pool2.impl.TestGenericKeyedObjectPool.testMinIdleMaxTotalPerKey(TestGenericKeyedObjectPool.java:672)
>
> Does anyone see this as well?
What are your memory settings? I definitely run into tests that sit for quite a while.
-Rob
>
> Gary
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [pool] test failures
Posted by Phil Steitz <ph...@gmail.com>.
Look at the source for the failing tests. What you will likely see
is a lot of threads being started, a delay waiting for them to
complete / hit conditions and then some assertions. If the threads
run into scheduling delays, they may not complete / hit conditions
in time. The timings are generally set so that on a reasonably
loaded machine with decent clock resolution, tests will succeed. It
is not surprising that many will fail on slow or loaded machines.
Adding more delay would likely "fix" this, but the tests already
take a very long time to run.
Phil
On 11/19/18 3:27 PM, Gary Gregory wrote:
> HI all:
>
> When I run 'mvn clean verify' on git master, I get test failures on my
> rather busy CPU (~60-90%):
>
> [INFO] Running org.apache.commons.pool2.impl.TestGenericKeyedObjectPool
> [ERROR] Tests run: 63, Failures: 2, Errors: 0, Skipped: 0, Time elapsed:
> 177.53 s <<< FAILURE! - in
> org.apache.commons.pool2.impl.TestGenericKeyedObjectPool
> [ERROR]
> testEviction2(org.apache.commons.pool2.impl.TestGenericKeyedObjectPool)
> Time elapsed: 15.04 s <<< FAILURE!
> java.lang.AssertionError: Should be less than 900 idle, found 962
> at
> org.apache.commons.pool2.impl.TestGenericKeyedObjectPool.testEviction2(TestGenericKeyedObjectPool.java:519)
>
> [ERROR]
> testMinIdleMaxTotalPerKey(org.apache.commons.pool2.impl.TestGenericKeyedObjectPool)
> Time elapsed: 0.705 s <<< FAILURE!
> java.lang.AssertionError: Should be 5 idle, found 3
> at
> org.apache.commons.pool2.impl.TestGenericKeyedObjectPool.testMinIdleMaxTotalPerKey(TestGenericKeyedObjectPool.java:672)
>
> Does anyone see this as well?
>
> Gary
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [pool] test failures
Posted by Eitan Adler <li...@eitanadler.com>.
On Mon, 19 Nov 2018 at 14:27, Gary Gregory <ga...@gmail.com> wrote:
>
> HI all:
>
> When I run 'mvn clean verify' on git master, I get test failures on my
> rather busy CPU (~60-90%):
>
I can not replicate
∴java -version
openjdk version "11.0.1" 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
∴uname -rms
Darwin 18.2.0 x86_64
--
Eitan Adler
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org