jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jzitt...@adobe.com>
Subject Re: Potential bug: failure to connect to MySQL database when JackRabbit starts a session leaves a .lock file in the repository. Subsequent sessions cannot be created.
Date Fri, 21 Jan 2011 10:59:02 GMT

On 01/21/2011 11:38 AM, Guillaume Belrose wrote:
> I am only creating one repository in my test. I am then trying to
> create multiple sessions in a sequence within the same thread.
> The 1st session fails to be created as the DB is not running. The
> following sessions fail to create as the repository appears to be
> locked. There is only 1 process and 1 thread.

It could be that the TransientRepository startup is getting confused by 
the initial login failure. Can you please file a bug about that?

You should be able to avoid this problem by using the RepositoryImpl 
class directly instead of TransientRepository.

Jukka Zitting

View raw message