Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection pool manager error under adverse conditions [DNET211] #219

Closed
firebird-automations opened this issue Feb 18, 2009 · 3 comments
Closed

Comments

@firebird-automations
Copy link

Submitted by: Gareth Goslett (gareth)

Attachments:
FbPoolManager.patch

When using a connection string with "MinPoolCount" set to more than 0 and connecting to a non-existent .FDB you can trap the File does not exist error.
If you then create the database after this error and connect the connection will fail with a hashtable "Key already exists" excption.

Cause:
The pool manager has already added an EmptyPoolEventHandler object to the Handlers hashtable for the connection string but when creating the pool, the file not found exception is generated and the pool does not gat into it's own hashtable and a subsequent connection will try to add another EmptyPoolEventHandler object and this is where it fails.

Commits: 02fd572

@firebird-automations
Copy link
Author

Commented by: Gareth Goslett (gareth)

SVN Patch for FbPoolManager.cs, revision 866

@firebird-automations
Copy link
Author

Modified by: Gareth Goslett (gareth)

Attachment: FbPoolManager.patch [ 11370 ]

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.0 Beta 2 [ 10340 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants