About optimistic

forum_thread

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

Anyone know what this means?? Suddenly cropped up.   Failed to commit transaction: Attempt to commit a rollback only transaction (error 613) at com.objectdb.jpa.EMImpl.commit(EMImpl.java:271) at javax.jdo.Transaction$commit.call(Unknown Source) ... 04:25 note: optimistic locking is off edit ... update 1: problem persists if optimistic locking set to true in config file update 2: problem goes ...

 
issue

again merger missing logs + objectdb exception

we are facing similar problems as we had before, in the log we have a lot of entries merger ... missing + an objectdb exception. Some objects in the system behave strange. This is a part of the log: ... [2017-09-26 12:16:14 #1222 store] SectionClassifier: SectionClassifier{238146996->merger[3309]-missing:1} [2017-09-26 12:16:25 #1223 store] SectionClassifier: SectionClassifier{238146996->merger[3309]-missing:1} ... healthy). It shows that this happens when an optimistic lock exception is thrown during commit, and failed (locked) objects ... Which trace? The log just shows locations of optimistic lock exceptions, which should fail regardless of printing their ...

 
issue

Entity Version History

ObjectDB manages automatic entity versioning (for optimistic lock purposes). Every entity object modification is reflected by a new version number. Previous values in the entity object that are overridden by new values, however, are discarded. Some applications may benefit from the ability to go back in time and view old versions (and old values) of entity object. Future versions of ObjectDB should support archiving old versions of specific entity classes.... ObjectDB manages automatic entity versioning (for optimistic lock purposes). Every entity object modification is reflected by a ...

 
page

What is new in ObjectDB 2.0?

... of persistent classes that are not enhanced. Improved optimistic locking support. Performance improvement in writing and reading ...

 
page

How to upgrade from ObjectDB 1.0?

Explains how to upgrade from ObjectDB 1.0 to ObjectDB 2.0.... only to the recovery file . ObjectDB 2.0 uses optimistic transactions by default (the default was datastore transactions in ...

 
issue

Remove an entity which attributes were changed

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic lock exception of the removed entity.   If this operations on the entity are executed in only one plugin, it works well.   ... After commit the transaction an exception is caused with optimistic lock exception of the removed entity.   If this ...

 
api-jdo

isTransactional(pc)

Tests whether this object is transactional.(Method of javax.jdo.spi.StateManager)

 
api-jdo

checkConsistency()

Validates the PersistenceManager cache with the datastore.(Method of javax.jdo.PersistenceManager)

 
api-jdo

Constants.PMF_ATTRIBUTE_OPTIMISTIC

The name of the persistence manager factory element's "optimistic" attribute.(Static Field of javax.jdo.Constants)

 
api-jdo

getConnectionFactory2Name()

Get the name for the second data store connection factory.(Method of javax.jdo.PersistenceManagerFactory)