directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <>
Subject Re: Creating new connections in integration tests
Date Sat, 05 Feb 2011 17:05:35 GMT
On 2/5/11 12:51 PM, Stefan Seelmann wrote:
> On Sat, Feb 5, 2011 at 8:35 AM, Emmanuel Lecharny wrote:
>> On 2/4/11 10:58 PM, Stefan Seelmann wrote:
>>> Hi guys,
>>> one of our Hudson builds currently fails [1], the cause is an
>>> IOException (Too many open files). The reason this happens is that in
>>> our integration test (server-integ and ldap-api-test) we open real
>>> network connections. In many cases a new connection is opened in each
>>> test method. I also found a case where we open new connections within
>>> a loop.
>> I added some performance tests for each operation, but those tests are
>> @Ignored.
>> What is the tests containing a loop ?
> SimpleBindRequestTest.testSimpleBindAnonymous() in ldap-api-test.

AFAIR, this test was used last year when we had a problem with multiple 
bind occuring. At some point in the test, the Bind failed (it was after 
a few hundred failures). Right now, I'm nt sure it makes sense anymore 
to loop, even if it's only for 5 attempts...

Emmanuel L├ęcharny

View raw message