About lock

91-100 of 180Refresh
Forum
2

How to do multithreading with embedded ObjectDB

, rather than concurrently:     synchronized (lock) {         em.createQuery("UPDATE Point SET x = x + 1").executeUpdate();     } Your lock object must be one object that is shared by all the threads. 2. Use ObjectDB / JPA locking, by setting a pessimistic locking timeout, e.g. by: Map
Forum
2

OptimisticLockException

._OptimisticLockException: Optimistic lock failed for object model.UserSession#28 (object has version ... will attach Optimistic locking is enabled by ObjectDB automatically even if no version field is defined. You can disable optimistic locking checks (and eliminate these exceptions) but first verify
Forum
2

Remove an entity which attributes were changed - OptimisticLockException

the entity from the database. After commit the transaction an exception is caused with optimistic lock ... . You may also disable optimistic locking checks if you do not need it. We use only one entity ... , if invoking the operations in different plugins. This leads to the optimistic lock exception
Forum
2

Setting temp directory location in ObjectDB

. This might be a side effect of the file locking method that is used by ObjectDB 1.x. Try running ObjectDB in a process ... permission permission is blocked for the parent folder, won't ObjectDB locking method throw exceptions ... . > And if write permission permission is blocked for the parent folder, won't ObjectDB locking method throw
Forum
2

Some technical questions

Hi, ObjectDB looks interesting. Have two technical questions... (1) what locking model does ... you, Andrej (1) what locking model does ObjectDB use? I.e. 2PL or MVCC? Do writers block readers? Do readers block writers? ObjectDB implements the standard JPA locking model - see this manual page. (2
Forum
2

Failed to commit transaction: Attempt to commit a rollback only transaction

against the same objects being queried by the other client. Seems like some sort of locking problem, but for some ... " />   <locking version-check="false" />       note: optimistic locking
Issue
2

again merger missing logs + objectdb exception

when an optimistic lock exception is thrown during commit, and failed (locked) objects are loaded by keys ... lock exceptions, which should fail regardless of printing their location now to the log. ok, we'll ... , and may be ignored now. They should be shown on any OS when there is an optimistic lock exception
Result
1

ObjectDB version 2.2.4

Version 2.2.4 Added support of JPA UPDATE and DELETE queries (issue #12). Added support of pessimistic lock timeout (javax.persistence.lock.timeout). Added implementation of the getParameters method. Added exception on pessimistic locking retrieval with no active transaction. Improved support
Issue
1

Error during closing an entity manager

, so that the enhancement is not necessary. We tested also 2.7.1_03 and with this one we get an optimistic lock ... above to an optimistic lock exception. More information and possibly a test case that demonstrates the exception ... of the optimistic lock exception and we fixed it in our code. From my sight of view this issue is fixed. btc_es
Issue
1

InternalException during producer/consumer scenario

.InterruptedException at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly ... of another user and ends after that commit might succeed in locking an object that was locked by