Hi Jens,

Thanks for the explanation. The file was created just this past August 27, 
so it's not old at all.

It would be interesting to send it off to someone on the ForestDB team to 
take a look at it if they want.

Who do I send it to?

Thanks,

Brendan

On Sunday, August 30, 2015 at 1:35:11 PM UTC-6, Jens Alfke wrote:
>
>
> > On Aug 30, 2015, at 12:24 PM, Brendan Duddridge <[email protected] 
> <javascript:>> wrote: 
> > 
> > FDB_RESULT_NO_DB_HEADERS = -38, 
> > So I suspect then that there is some sort of database file corruption 
> going on here. 
>
> Yeah, -38 is ForestDB giving up on opening a db because it can’t find the 
> database ‘header’ (it’s actually at the end of the file.) 
>
> In theory, ForestDB should never be able to corrupt a database. The file 
> is append-only, so even if a write fails, the previous header will still be 
> found and the data from before that write will still be available. (Of 
> course some external cause could still corrupt a file, like filesystem 
> damage, or another process somehow overwriting the file.) 
>
> One possibility is if this file was created a long time ago — I ran into 
> this recently trying to open a Couchbase Lite database from last year. At 
> some point during development (before it went beta) ForestDB had an 
> incompatible change in the db header format. But I don’t think anyone 
> outside Couchbase was using Couchbase Lite with ForestDB back then. How old 
> is this file? 
>
> The ForestDB engineers might want to have a look at the file, if possible. 
>
> —Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/4b2e36bb-b000-4b22-bcfe-c40d1a88c18d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to