71 words

Issue #197 - Deadlock on Schema Update during Multithreading activity

BugVersion: 2.5.0Priority: NormalStatus: FixedReplies: 1
#1
2013-05-29 19:47

A possible deadlock was detected when new types are registered during multithreading activity against ObjectDB.

Until this issue is fixed, the recommended workaround is to complete registration of all the persistable types before starting any multithreading activity against ObjectDB.

A single class can be registered by:

    emf.getMetamodel().entity(MyClass.class);

All the classes can be registered by:

    emf.getMetamodel().getManagedTypes();

The last command will work when ObjectDB can find managed classes automatically.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,558
#2
2013-05-30 12:39

Version 2.5.1 should fix this issue.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
support
support's picture
Joined on 2010-05-03
User Post #1,561

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel