Community
Participate
Working Groups
Build Identifier: The test suites see occasional failures where the http client gets into a bad state - usually do to the failure of an earlier test. The pattern used in the suites to consume the response content is known to have issues in the HttpClient 4.0.1 libraries we are using. HttpClient 4.0.3 and up use a new pattern (HttpEntity#consumeContent()) which I am investigating as a possible solution to these issues. Please assign this bug to Michael Fiedler Reproducible: Sometimes Steps to Reproduce: Run the CM test suite against the CM RIO you will see connection failures for the final tests. These are caused by the http client getting into a bad state due to [1]. [1] - https://bugs.eclipse.org/bugs/show_bug.cgi?id=357277
Created attachment 205812 [details] Update Apache httpclient to 4.1.1. Consume response correctly in event of error. I wrote all this code and have the rights to contribute it to Eclipse under the eclipse.org web site terms of use
The attached patch allows SimplifiedQueryXmlTests to continue in event of error. It fixes the "Incorrect use of SingleClientConnManager" error subsequent tests would get due to improperly closed connections.
Going to make an additional change to hit all usage of the deprecated HttpEntity#consumeContent method. The current patch fixes the specific issue with leaked connections but we should use the new EntityUtils#consumeContent everywhere.
Created attachment 205831 [details] Replace use of deprecated http client API
Committed http://git.eclipse.org/c/lyo/org.eclipse.lyo.testsuite.git/commit/?id=398d434621e15f3e384b55ef54ccbca80b41f7e2 http://git.eclipse.org/c/lyo/org.eclipse.lyo.testsuite.git/commit/?id=1728bc910b31abcfa36e7900ca8cc3440d5224b7
See comment 5
Bulk update: Closing out Lyo bugs fixed long ago. Feel free to reopen if you feel your bug was closed in error.