Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Best way to force unlocking view/locking manager
[CDO] Best way to force unlocking view/locking manager [message #1847025] Tue, 12 October 2021 13:38 Go to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
Twice in the last month we've had some locks that wouldn't release in production.

The first time we could only identify the thread and part of the stack trace (by default ThreadInfo only shows the top of the stack trace).

The second time we got an OptimisticLockingException and it would never get released, until we restarted everything.

We've now added monitoring as part of the health checks (Felix Health Check) and via console command to track locked views and to report on active locks from the LockingManager.

But our next step is to find a way to kill/disabled/recover from any such situation in the future if it arises again.

Any idea on how best to force a view/transaction down and in the case of locked objects, it seems that this can be a bit broader as it seems to be used by repository and few other places as well.

Thanks
Alain

Re: [CDO] Best way to force unlocking view/locking manager [message #1847028 is a reply to message #1847025] Tue, 12 October 2021 14:29 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
I remember a few bug fixes related to locks being not properly released in certain situations, so upgrading your 4.7 installation might already help.

You can always close a view, transaction, or even entire session from the server:

repository.getSessionManager().getSession(sessionID).getView(viewID).close();


Previous Topic:Improving containment list performance in CDO/EMF
Next Topic:XCore: Bundle 'org.eclipse.emf.ecore.xcore.lib' cannot be resolved
Goto Forum:
  


Current Time: Fri Apr 26 13:09:17 GMT 2024

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

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

Back to the top