History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: COR-694
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Unassigned
Reporter: Andrew Zhang
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
db4o Core

db4o doesn't open file in readonly mode when the database is configured as readonly.

Created: 20/Jun/07 02:11 AM   Updated: 22/Aug/07 07:45 PM
Component/s: Local
Affects Version/s: None
Fix Version/s: Denmark - v6.3

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0h
Time Spent - 4h
Time Spent: 4h
Time Spent - 4h

File Attachments: 1. Zip Archive Test.zip (324 kb)


Resolution Date: 22/Aug/07 07:45 PM
First Response Date: 18/Jul/07 11:27 AM
Labels:
Participants: Andrew Zhang and Neeraj Joshi
Number of Attachments: 1
Number of Comments: 6


 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Andrew Zhang - 23/Jun/07 01:35 AM
It's read only now in IoAdapter layer. But some callers still try to write things into a read-only databas. Has to be fixed soon. It also makes cc failed.

Neeraj Joshi - 18/Jul/07 11:27 AM
We have seen following behaviour:

1) Readonly mode is On. Objects are saved into the database. Querying the database returns 0 result count. Objectmanager does not show any stored classes. However, shows only size of db that make us feel that objects are there in the database.

2) Readonly mode is Off. Objects are saved into the database. Querying the database returns proper result count. Now switching the Readonly mode to On. Adding few more objects to the same database. Querying the database returns only those objects which are saved when the Readonly mode was Off.

Andrew Zhang - 18/Jul/07 12:23 PM
Hi Neeraj,

which version did you use? 6.1 or 6.3? Objects can not be stored into the database if readonly mode is on.

In 6.3, db4o throws an exception for such case. Could you please describe your environment? Thanks!

Neeraj Joshi - 18/Jul/07 12:43 PM
This simple testcase shows the behaviour in a comment. Please suggest if i do anything wrong.

Andrew Zhang - 18/Jul/07 01:44 PM
Hi Neeraj,

Object can not be stored if db4o is configured as read-only. db4o 6.1 returns silently, and the behaviour has been changed in version 6.3. Would you please take a try with version 6.3? Thanks!

Neeraj Joshi - 23/Jul/07 07:33 AM
Thanks Andrew for your suggestion. I am using 6.1 version earlier. Now I have tried the test case with latest 6.3 and it seems there that you cannot add new objects into the readonly database. An attempt to do that is throwing an exception for the same. It looks now the bug is fixed.