About lock

forum_thread

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

I have a simple task to validate the sample code will switch over to the slave database when the master is unavailable. I simulate the master unavailable by stopping the master server; which generates the following exception below. What am I doing wrong? It appears the connection manager fails to try the second URL in the list: objectdb://10.9.2.15:9998//10.9.2.15:9999/test.odb;user=admin;password=password Thank you in advance. #1 2013-05-06 20:16 I have a simple task to validate the sample code will switch over to the slave database when the master is unavai ...

 
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} ... It shows that this happens when an optimistic lock exception is thrown during commit, and failed (locked) objects are loaded ... Which trace? The log just shows locations of optimistic lock exceptions, which should fail regardless of printing their location now to ...

 
issue

Error during closing an entity manager

Hello, can you explain the the following exception? Caused by: com.objectdb.o._PersistenceException: Failed to read the value of field field com.btc.ep.architecture.bl.internal.dmos.types.NormalizedAccessPathImpl.accessPathRoot using reflection at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) ~[na:na] at com.objectdb.o.JPE.g(JPE.java:145) ~[na:na] at com.objectdb.o.ERR.f(ERR.java:56) ~[na:na] at com.objectdb.o.OBC.onObjectDBError(OBC.java:1560) ~[na:na] at com.objectdb.o.OBM.close(OBM.java:212) ~[na:na] ... also 2.7.1_03 and with this one we get an optimistic lock exception without enhancement. If we enhance all entities then the issue ... exception from the one in #3 above to an optimistic lock exception. More information and possibly a test case that demonstrates the ...

 
forum_thread

Replication error on slave restart

I'm trying to enable replication on master server that was running with "recovery" enabled previously. I have copied database file to slave... and so on by manual. It worked fine. But if I restart slave server: ... step 3: com.objectdb.o.UserException: Optimistic lock failed (see multiple nested exceptions) at ...

 
forum_thread

How force always recreate database on redeployment.

Is there some easy way to force recreation/deletion of the current database on deployment of a web application (to Glassfish). My web application uses a @Singleton @Startup bean to create and persist a test model each run. I keep getting models on top of each other on rerunning my web application. Currently, to avoid multiple models in the database, I have to undeploy from Glassfish, stop the server, delete the database file, re-start the objectdb server, re-run the web app, which is tedious. #1 2012-03-03 09:32 Is there some easy way to force recreation/deletion of the current database on deployment of a web application (t ...

 
forum_thread

Occasionally slow requests in load testing

We are running load testing against objectdb version 2.3.7_18. The performance is generally OK, however there are quite a few "spikes" in the performance where we are getting a lot of very slow response times from the DB, around 10 - 15 seconds. Looking at the DB server process with AppDynamics we can see that most of the requests get stuck in one of 2 places: com.objectdb.o.PGC:w: line number 232 com.objectdb.o.LFL:U: line number 1068 Please see the attached callgraph examples for full stack trace examples. ... threads (e.g. database pages) is much more extensive so lock competition is more likely. But the number of threads may not be related ...

 
api-jpa

getLockMode()

Get the current lock mode for the query.(Method of javax.persistence.Query)

 
forum_thread

javax.persistence.LockTimeoutException

... Is it possible to change a LockTimeout for pessimistic lock? edit ... a LockTimeoutException immediately when a pessimistic lock cannot be granted. Future versions will support timeout setting. ...

 
api-jpa

javax.persistence.NamedQuery

Specifies a static, named query in the Java Persistence query language.(Annotation of JPA)

 
api-jpa

getLockMode(entity)

Get the current lock mode for the entity instance.(Method of javax.persistence.EntityManager)