Thanks for trying to help.

Reading the second block would be done somewhere around here?

        // read the first two blocks
        ByteBuffer fileHeaderBlocks = fileStore.readFully(0, 2 * 
BLOCK_SIZE);
        byte[] buff = new byte[BLOCK_SIZE];
        for (int i = 1; i <= BLOCK_SIZE; i += BLOCK_SIZE) {
            fileHeaderBlocks.get(buff);
            // the following can fail for various reasons


like this?
        ByteBuffer fileHeaderBlocks = fileStore.readFully(BLOCK_SIZE,  
BLOCK_SIZE);


Whatever I try, I get the same error message. At least a bit catching 
errors leads to some small output files, but not to my large data base I am 
trying to restore.


Am Montag, 9. Juli 2018 12:33:51 UTC+2 schrieb Noel Grandin:
>
>
>
> On 2018/07/09 12:15 PM, 'Sven Eric Panitz' via H2 Database wrote: 
> > Okay I cloned the repository and I am willing to tweak the source code 
> to ignore the errors. Anyone out there who can 
> > guide me a bit. Reading chunks gives the error. 
> > 
>
> try making the loop at the top of readStoreHeader use the second block, 
> that might pointer to slightly older, but still 
> consistent data. 
>
> And just comment out that throws code, and see how far you get. 
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to