Skip to main content



      Home
Home » Modeling » EMF » [CDO] Remote unlocking mechanism changed
[CDO] Remote unlocking mechanism changed [message #1850255] Wed, 23 February 2022 02:56 Go to next message
Eclipse UserFriend
We are using durable cdo locks. These locks could be released on the server side via the InternalLockingManager:

      LockArea lockArea = lockManager.getLockArea(durableLockingID);
      lockArea.getLocks().clear();
      lockManager.updateLockArea(lockArea);


This seems to be not possible anymore with the newest build. Is there any alternative way to do it now, or did this get broken?

I also attached a test case (modified from LockingManagerRestartTransactionTest) which worked for CDO version 4.14.

Edit: this mechanism still works, but the currently open sessions will always see the object as locked. New sessions see the correct status.

[Updated on: Wed, 23 February 2022 08:06] by Moderator

Re: [CDO] Remote unlocking mechanism changed [message #1850355 is a reply to message #1850255] Fri, 25 February 2022 22:12 Go to previous messageGo to next message
Eclipse UserFriend
Hi Robert,

In the 4.16 cycle a complete overhaul of the locking mechanism was started with the goal of optimizing the prefetching and caching of lock states, see 4.16 Release Notes. In the 4.17 cycle there were more fundamental improvements/changes regarding locking, see 4.17 Release Notes.

I suspect that for lock state changes that are initiated in the server there are no notifications sent to the clients. Please submit a bugzilla and attach your test case.


Re: [CDO] Remote unlocking mechanism changed [message #1850415 is a reply to message #1850355] Wed, 02 March 2022 03:44 Go to previous message
Eclipse UserFriend
Hi Eike, thanks for looking into this.
I created this bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=579047
Previous Topic:[CDO] Standalone CDO client
Next Topic:[CDO] NPE in AbstractQueryIterator.close(AbstractQueryIterator.java:88)
Goto Forum:
  


Current Time: Thu Jul 03 07:52:53 EDT 2025

Powered by FUDForum. Page generated in 0.26673 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top