activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hiram Chirino <hi...@hiramchirino.com>
Subject Re: Any way to protect from corruption being replicated in LevelDB?
Date Thu, 20 Feb 2014 01:57:23 GMT
On Mon, Dec 9, 2013 at 11:14 AM, pwalker <pwalker@navinet.net> wrote:
> Having a quick look it doesn't seem like ReadOptions are used for this
> function so no verifyChecksums flag is passed in right?
>

Yep.. perhaps we should.

> Was hoping that on initialization of the masterLevelDBClient we would be
> able to validate the datastore at that point and if it was invalid fall
> over?

It might be impractical to check for all corruption at startup since
that might significantly delay the startup process.

> Is that the expected behavior of those parameters or is it completely
> distinct from the replication process as they are used in the non-replicated
> leveldb adapter as well?

The replication bits added to leveldb replicate files at the block
level and don't really check the integrity of the files it's
transferring.

Perhaps if we do detect consistency problem with a master we should
just stop replication and mark it's data files as being inconsistent
so that it does not try to become a master in the future.  That still
would require that one of the slaves data files be consistent to be
able to recover from the failure.



-- 
Hiram Chirino
Engineering | Red Hat, Inc.
hchirino@redhat.com | fusesource.com | redhat.com
skype: hiramchirino | twitter: @hiramchirino

Mime
View raw message