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

Lock request time out period exceeded

8 Answers 475 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
FISCAL
Top achievements
Rank 1
FISCAL asked on 29 Oct 2010, 09:48 AM
Hi,

Processing & dumping 200k size csv file into one of the SQL table and at the same time if some other user tries to access the same table where still it is dumping records, I get the following error- 

[This is a ASP.NET driven application with the use of Telerik ORM version 2010.2.714.1]

Message: Telerik.OpenAccess.RT.sql.SQLException: Lock request time out period exceeded. at Telerik.OpenAccess.RT.Adonet2Generic.Impl.ResultSetImp.next() at OpenAccessRuntime.Relational.fetch.FetchResultImp.rsNext() at OpenAccessRuntime.Relational.fetch.FetchResultImp.hasNext()

Source: Telerik.OpenAccess.Runtime

StackTrace: System.Exception Throw()

Full Error Log:
 Telerik.OpenAccess.Exceptions.LockNotGrantedException: Telerik.OpenAccess.RT.sql.SQLException: Lock request time out period exceeded. at Telerik.OpenAccess.RT.Adonet2Generic.Impl.ResultSetImp.next() at OpenAccessRuntime.Relational.fetch.FetchResultImp.rsNext() at OpenAccessRuntime.Relational.fetch.FetchResultImp.hasNext() at Telerik.OpenAccess.RT.ExceptionWrapper.Throw() at OpenAccessRuntime.storagemanager.logging.LoggingStorageManager.executeQueryAll(ApplicationContext context, ImmutableQueryDetails query, CompiledQuery compiledQuery, Object[] para, Int32 skip, Int32 take) at OpenAccessRuntime.DataObjects.UnsynchronizedPMProxy.getAllQueryResults(CompiledQuery cq, Object[] para, Int32 skip, Int32 take) at OpenAccessRuntime.DataObjects.OpenAccessQueryImp.executeWithArrayImp(Object[] parameters) at Telerik.OpenAccess.RT.QueryResultImpl.check() at Telerik.OpenAccess.RT.ListEnumerator.get_Count() at Telerik.OpenAccess.Query.ExpressionExecution.PerformDatabaseQuerySingle[TResult,T](Piece`1 piece, Int32& found, Int32 elemAt) at Telerik.OpenAccess.Query.ExpressionExecution.PerformQuerySingle[T,TResult](Piece`1 piece, Expression expression) at Telerik.OpenAccess.Query.Piece`1.System.Linq.IQueryProvider.Execute[TResult](Expression expr) at System.Linq.Queryable.Sum(IQueryable`1 source) at APForensicsDataRepository.InvoiceAnalysis.DetectionRepository.GetTotalnvoiceValues(Int32 processID) in D:\APForensics\branches\InvoiceAnalysisModule\APForensicsDataRepository\InvoiceAnalysis\DetectionRepository.cs:line 81 at APForensicsDataRepository.InvoiceAnalysis.DetectionRepository.ListAllDPFProcess() in D:\APForensics\branches\InvoiceAnalysisModule\APForensicsDataRepository\InvoiceAnalysis\DetectionRepository.cs:line 69 at IsisWebApp.WebUI.InvoiceAnalysis.Detection.frmInvoiceDatasetListing.PopulateGrid() in D:\APForensics\branches\InvoiceAnalysisModule\APForensicsWebApp\WebUI\InvoiceAnalysis\Detection\frmViewDataList.aspx.cs:line 128 


Any idea?

Many thanks.

M G

8 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 29 Oct 2010, 02:00 PM
Hello M G,
Our connection pool has a timeout where we close connecrtions that are busy for a certain time, default is 2 minutes. This should show you where you have too long running operations.

You can set this timeout to 0 which means we do not care or just increase the number of seconds. The timeout can be set in the DSL via the Model Settings Dialog or with the old wizard via Telerik->OpenAccess->Configuration->BackendConfigurations

All the best,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
FISCAL
Top achievements
Rank 1
answered on 29 Oct 2010, 02:29 PM
Many thanks Jan.

I will try to reset to 0.

Cheers,
MG
0
Ingo Oltmann
Top achievements
Rank 1
answered on 02 Nov 2010, 08:52 PM
Hello Jan,

what exactly is the name of the property you are talking about?

Regards,
Ingo
0
Jan Blessenohl
Telerik team
answered on 04 Nov 2010, 09:19 AM
Hello Ingo Oltmann,
I am talking about this:
http://www.telerik.com/help/openaccess-orm/active-connection-timeout.html

Or if you use the new context you have to modify the backendconfiguration before you call the context ctor with:

backendConfig.ConnectionPool.ActiveConnectionTimeout = 1200;

Regards,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Patrice Boissonneault
Top achievements
Rank 2
answered on 07 Apr 2011, 02:02 PM
What is the unit of the

ActiveConnectionTimeout

property?

1200 seems like an odd number for 2 minutes?

Thanks.
0
Jan Blessenohl
Telerik team
answered on 07 Apr 2011, 04:48 PM
Hello Patrice Boissonneault,
Please have a look here.

All the best,
Jan Blessenohl
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Patrice Boissonneault
Top achievements
Rank 1
answered on 27 Mar 2012, 02:22 AM
The article you refer to is talking about seconds where are in your example, you are specifying 1200.  Does that mean 1200 seconds or are those milliseconds (in which case this would only be 1.2 second...).  I'm confused.  Can you please precise the unit of this property.
Thanks.
0
Jan Blessenohl
Telerik team
answered on 27 Mar 2012, 11:38 AM
Hi Patrice,
The documentation is right, it is in seconds. 2 minutes --> 120 seconds.

Regards,
Jan Blessenohl
the Telerik team
Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
Tags
Development (API, general questions)
Asked by
FISCAL
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
FISCAL
Top achievements
Rank 1
Ingo Oltmann
Top achievements
Rank 1
Patrice Boissonneault
Top achievements
Rank 2
Patrice Boissonneault
Top achievements
Rank 1
Share this question
or