Menu

#438 [ADO.NET] the usage of CUBRIDConnection.SetLockTimeout() and CUBRIDConnectionSetLockTimeout(int value) are not clear

open
nobody
None
5
2013-03-13
2013-03-13
Jira Trac
No

In CUBRIDConnection class, some questions confused me:
1. SetLockTimeout() and SetLockTimeout(int value) must be used togather. Open method does not set the lock timeout value to the server. and I have to set lock timeout value with SetLockTimeout(int value) before open a connection and call SetLockTimeout() after open a connection.
2. The value I set for lock timeout is not used. I set lockTimeout as 60 s, but the lock timeout exception is thrown in about 2 seconds.

Please have a look at the attached test case for details.

More information:
The exception I get in the test case is the same as what I get directly in csql (does not use the interface), just the waiting time is not the same as the time I wait in csql.

The exception is:
Your transaction (index 2, PUBLIC@user-PC|528) timed out waiting on IX_LOCK lock on class t. You are waiting for user(s) PUBLIC@user-PC|cub_cas(312) to finish.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.