Deleting archive log folder causes exception

Type: BugVersion: 2.5.1Priority: NormalStatus: FixedReplies: 1
#1

Hello,

we have observed strange behaviour when we delete odb archive log directory.

We are running long term tests and during it we are deleting all logs that are not needed keeping the system running.

When the "archive/" folder, where odb logs are archived, is deleted, the exceptions occur:

[2014-01-08 18:53:55 #34601 *]
com.objectdb.o.UserException: Failed to create a new file 'C:\SafeQORS\libs\._1.\logs\archive'
at com.objectdb.o.MSG.d(MSG.java:74)
at com.objectdb.o.LFL.L(LFL.java:842)
at com.objectdb.o.LFL.I(LFL.java:782)
at com.objectdb.o.LFL.I(LFL.java:751)
at com.objectdb.o.LFL.C(LFL.java:492)
at com.objectdb.o.LFL.m(LFL.java:464)
at com.objectdb.o.LFL.n(LFL.java:613)
at com.objectdb.o.LGM.o(LGM.java:302)
at com.objectdb.o.LGR.n(LGR.java:407)
at com.objectdb.o.LGR.n(LGR.java:396)
at com.objectdb.o.QPN.f(QPN.java:150)
at com.objectdb.o.QPN.d(QPN.java:89)
at com.objectdb.o.QRC.w(QRC.java:208)
at com.objectdb.o.QRM.U6(QRM.java:252)
at com.objectdb.o.MST.U6(MST.java:933)
at com.objectdb.o.WRA.U6(WRA.java:293)
at com.objectdb.o.WSM.U6(WSM.java:113)
at com.objectdb.o.QRR.g(QRR.java:244)
at com.objectdb.o.QRR.f(QRR.java:153)
at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:686)
at com.ysoft.cache.objectdb.ObjectCacheDB.search(ObjectCacheDB.java:522)
at com.ysoft.cache.objectdb.ObjectCacheDB.search(ObjectCacheDB.java:496)
at ysoft.sqpro.queue.CacheNamedQueueManager.getQueueByName(CacheNamedQueueManager.java:76)
at ysoft.sqpro.queue.CacheNamedQueueManager.getValidQueueByName(CacheNamedQueueManager.java:89)
at com.ysoft.safeq.terminal.SafeQConnector.validateTerminal(SafeQConnector.java:130)
at com.ysoft.safeq.terminal.operation.TerminalValidationInputCommand.execute(TerminalValidationInputCommand.java:19)
at com.ysoft.safeq.terminal.TerminalListener.run(TerminalListener.java:95)
Caused by: java.io.FileNotFoundException: C:\SafeQORS\libs\._1.\logs\archive (The system cannot find the path specified)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(Unknown Source)
at com.objectdb.o.LFL.L(LFL.java:829)
... 25 more

We have not change any configuration. There is some file named archive created instead(?) of the original directory. The only way to get system working is to delete the archive file.

Can you provide us some hint, how to solve this problem?

Thanks

Marta

 

#2

Please try build 2.5.4_01 that should be able to handle also deletion of the archive directory when the database is open.

Alternatively, use the old version but delete only the files in the archive directory but not the directory itself.

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

Post Reply

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