175 words

exception during online backup

#1
2011-07-20 14:08

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

Tomasz
Tomasz's picture
Joined on 2011-07-11
User Post #11
#2
2011-07-21 06:39

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)
support
support's picture
Joined on 2010-05-03
User Post #461
#3
2011-07-21 07:26

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

Tomasz
Tomasz's picture
Joined on 2011-07-11
User Post #12
#4
2011-07-24 01:16

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)
support
support's picture
Joined on 2010-05-03
User Post #469

Post Reply

Please read carefully the posting instructions - before posting to the ObjectDB website.

  • You may have to disable pop up blocking in order to use the toolbar (e.g. in Chrome).
  • Use ctrl + right click to open the browser context menu in the editing area (e.g. for using a browser spell checker).
  • To insert formatted lines (e.g. Java code, stack trace) - select a style in the toolbar and then insert the text in the new created block.
  • Avoid overflow of published source code examples by breaking long lines.
  • You may mark in paragraph code words (e.g. class names) with the code style (can be applied by ctrl + D).
  • Long stack traces (> 50 lines) and complex source examples (> 100 lines) should be posted as attachments.
Attachments:
Maximum file size: 32 MB
Cancel