You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2014/01/16 12:14:46 UTC

Failing test case; Re: New release tools / release manager for HttpClient 4.3.2?

On Tue, 2014-01-14 at 19:00 -0500, Gary Gregory wrote:
> On Tue, Jan 14, 2014 at 6:56 PM, Gary Gregory <ga...@gmail.com>wrote:
> 
> > On Tue, Jan 14, 2014 at 6:14 PM, Gary Gregory <ga...@gmail.com>wrote:
> >
> >> OK, I was able to get past this last hurdle only to hit the following
> >> fail during 'gradlew -q deployRC'  (not the goofy box corner char).
> >>
> >> Results :
> >>
> >> Tests in error:
> >>   TestIdleConnectionEviction.testIdleConnectionEviction ╗ IllegalState
> >> Entry [id...
> >>
> >> Tests run: 858, Failures: 0, Errors: 1, Skipped: 0
> >>
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Reactor Summary:
> >> [INFO]
> >> [INFO] HttpComponents Client ............................. SUCCESS
> >> [9.949s]
> >> [INFO] Apache HttpClient ................................. FAILURE
> >> [28.403s]
> >> [INFO] Apache HttpClient Mime ............................ SKIPPED
> >> [INFO] Fluent API for Apache HttpClient .................. SKIPPED
> >> [INFO] Apache HttpClient Cache ........................... SKIPPED
> >> [INFO] Apache HttpClient OSGi bundle ..................... SKIPPED
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] BUILD FAILURE
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Total time: 40.122s
> >> [INFO] Finished at: Tue Jan 14 18:11:40 EST 2014
> >> [INFO] Final Memory: 52M/622M
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [ERROR] Failed to execute goal
> >> org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on
> >> project httpclient: There are test failures.
> >> [ERROR]
> >> [ERROR] Please refer to
> >> C:\temp\rc\release-httpclient-4.3.2\build\repos-asf-httpcomponents-httpclient-tags-4.3.2-RC1\httpclient\target\surefire-reports
> >> for the individual test results.
> >>
> >
> More precisely:
> 
> Running org.apache.http.impl.client.integration.TestIdleConnectionEviction
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.332 sec
> <<< FAILURE! - in
> org.apache.http.impl.client.integration.TestIdleConnectionEviction
> testIdleConnectionEviction(org.apache.http.impl.client.integration.TestIdleConnectionEviction)
> Time elapsed: 2.331 sec  <<< ERROR!
> java.lang.IllegalStateException: Entry
> [id:283][route:{}->http://127.0.0.1:58655][state:null] has not been leased
> from this pool
>         at org.apache.http.util.Asserts.check(Asserts.java:40)
>         at
> org.apache.http.pool.RouteSpecificPool.free(RouteSpecificPool.java:123)
>         at
> org.apache.http.pool.AbstractConnPool.release(AbstractConnPool.java:308)
>         at
> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.releaseConnection(PoolingHttpClientConnectionManager.java:280)
>         at
> org.apache.http.impl.execchain.ConnectionHolder.releaseConnection(ConnectionHolder.java:100)
>         at
> org.apache.http.impl.execchain.ResponseEntityWrapper.releaseConnection(ResponseEntityWrapper.java:68)
>         at
> org.apache.http.impl.execchain.ResponseEntityWrapper.streamClosed(ResponseEntityWrapper.java:121)
>         at
> org.apache.http.conn.EofSensorInputStream.checkClose(EofSensorInputStream.java:227)
>         at
> org.apache.http.conn.EofSensorInputStream.close(EofSensorInputStream.java:174)
>         at org.apache.http.util.EntityUtils.consume(EntityUtils.java:88)
>         at
> org.apache.http.impl.client.integration.TestIdleConnectionEviction$WorkerThread.run(TestIdleConnectionEviction.java:119)
> 
> Gary
> 

The problem turned out to be a recent regression introduced by
HTTPCORE-362 and is basically due to my oversight. This also explains
why the test started failing just recently.

Fixed in 4.3.x and trunk.

http://svn.apache.org/r1558755

Oleg



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