This is a migrated thread and some comments may be shown as answers.

Harden Database Access

1 Answer 34 Views
Feature Requests
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wolfgang
Top achievements
Rank 1
Wolfgang asked on 11 Sep 2014, 08:06 AM
Hi,

The follwoing situation occured:
IObjectContext context = Database.GetContext(this);

Programm keeped hanging in Database.GetContext(this)
If i look at the stack it seems like it is hanging in
Telerik.OpenAccess.Runtime / SynchronizedStateManagerProxy.getPersistenceManager.

Sad thing is: It just hangs there. No exception is thrown. It never returns from GetContext.

As we are using multiple processes I think I knew what happened: In another thread i find:
"Telerik.OpenAccess.RT.sql.SQLException: Verbindungsfehler ---> iAnywhere.Data.SQLAnywhere.SAException: " - yep, the other process had issues connecting to the database, so most likely also the hanging task should have the same issues.

I had this issue some time before with external databases (database on another network). It was "solved" with using for this special purpose ADO Pooling as Pooltype and not the OpenAccessIntegratedConnectionPool. This is not possible in this use case as there are problems between ui and telerik if Poollevel 1 or 2 is used.

So my wish is to harden the database access that a non reacting database will not lead to a state that Telerik will never return from calls.

Best regards,
Wolfgang

P.S: ATM no clue how to sovle the actual issue. 














1 Answer, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 15 Sep 2014, 08:22 AM
Hi Wolfgang,

 If you are using 'OpenAccessIntegratedConnectionPool' the pool management should throw an timeout exception after the 'ActiveConnectionTimeout' value is surpassed. Can you lower the 'ActiveConnectionTimeout' value and check if it still blocks?
Can you send me your sample code from all threads that are active?

Regards,
Ady
Telerik
 
OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
 
Tags
Feature Requests
Asked by
Wolfgang
Top achievements
Rank 1
Answers by
Ady
Telerik team
Share this question
or