I came across an error - but i have not been able to create a simple reproducible case - the error does not happen often and does not happen always -
Let me explain:
1/ I run 5 java applications at the same time on one machine - each application is using an ODB file (each one is using a different one). Basically each application does a sorted query ( qqq = em.createQuery("SELECT bk FROM OBN bk ORDER BY bk.time ASC", OBN); )
2/ after a little while - some of the applications throw this error message:
Caused by: com.objectdb.o._PersistenceException: Attempt to open a non existing file '/tmp/objectdb_2116263629532821442/SortQueryItr_6.mrg' at com.objectdb.o._PersistenceException.b(_PersistenceException.java:45) at com.objectdb.o.JPE.g(JPE.java:145) at com.objectdb.o.ERR.f(ERR.java:56) at com.objectdb.o.OBC.onObjectDBError(OBC.java:1503) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:725)
(i am using objectDb 2.6.0_02 )
I was not aware that ObjectDB is using a /tmp/ folder - but it looks like the sorted query is creating/using a SortQueryItr_6.mrg file - but b/c there are several applications running at the same time - maybe one application deleted the tmp file of another application.
I hope this description is sufficient.