Home » Support » Forum » exception during online backup

exception during online backup

#1

hi

  from time to time i get exception during online backup in server/client config:

Exception in thread "Thread-0" com.objectdb.o.UserException: Failed to read from file 'D:\twozniak\Desktop\db\objectdb-2.2.8\db-files\points.odb'
at com.objectdb.o.MSG.d(MSG.java:74)
at com.objectdb.o.LFL.T(LFL.java:1059)
at com.objectdb.o.LFL.B(LFL.java:486)
at com.objectdb.o.LFL.m(LFL.java:449)
at com.objectdb.o.BAC.n(BAC.java:119)
at com.objectdb.o.TOL.run(TOL.java:115)
at com.objectdb.o.DTT.run(DTT.java:73)
at com.objectdb.o.STD.run(STD.java:73)
Caused by: java.io.IOException: The process cannot access the file because another process has locked a portion of the file
at java.io.RandomAccessFile.readBytes(Native Method)
at java.io.RandomAccessFile.read(RandomAccessFile.java:338)
at java.io.RandomAccessFile.readFully(RandomAccessFile.java:397)
at com.objectdb.o.LFL.T(LFL.java:1056)
... 6 more

code:

PersistenceManager em =  pmf.getPersistenceManager();
Query backupQuery = em.newQuery("objectdb backup");
backupQuery.execute();

but this is not an urgent functionality for us

br

#2

Thank you for your report.

I will try to reproduce it by a test that uses online backup extensively while the database is in use (unless of course you already have such a test that you can share).

I assume you use the database only from one ObjectDB server (and no other processes). Do you?

Which operating system and JVM are you using?

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Hi

Only server is running and client which is executing test. In first step provisioning is executed and in a second online backup and as I said, sometimes it works sometimes no

br

Tomasz

#4

Build 2.2.8_07 includes an attempt to fix this bug. Please try it.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login