C# .Net, locking and lease-granularity
695601Apr 30 2009 — edited May 4 2009Hello,
I have a c# client proxying into a distributed cache. Following is the setup
- C# is a extend client getting access via tcp-ip proxy node
- the proxy-node has storage turned off, and has <lock-enabled>true</lock_enabled>.
- the cache nodes have <lease-granularity>thread</lease-granularity> (thats the default)
Im not able to get lock/unlock to work consistently via the c# client. In the above setup, the c# client is able to lock(key, -1) but then unlock() fails. The key remains locked indefinitely.
If i change the <lease-granularity>member</lease-granularity> on server nodes, then lock(key, -1) appears to succeed but then other c# client is able to lock(key, -1) as well while it has not been unlocked yet.
How can i make lock work for a bunch of c# clients? I understand that TransactionMap is not available, but is something as basic as lock() / unlock() not available as well?
Thanks.