]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
VerifyFileStore: Check if two FileStore's match after applying a set of operations.
authorJoao Eduardo Luis <jecluis@gmail.com>
Wed, 11 Apr 2012 20:49:09 +0000 (21:49 +0100)
committerSage Weil <sage.weil@dreamhost.com>
Sat, 14 Apr 2012 03:38:19 +0000 (20:38 -0700)
commit6573690a88d57efcac91a742de30d79c8e039c35
treeb7453dd3675b932f3ba4870bfae479459b420971
parent2f02a8a567dcef47c9f5a720da4aa39191bd0c8c
VerifyFileStore: Check if two FileStore's match after applying a set of operations.

With DeterministicOpSequence we are able to reproduce exactly the same
sequence of operations, over and over. However, if the filestore fails
(e.g., because we injected a failure), we want to check if it is kept
consistent after replaying its journal.

With VerifyFileStore, which extends DeterministicOpSequence, we are able
to bring a brand new filestore to the state the failed filestore would
reach had it not failed. We can then compare to check if the failure
introduced inconsistencies after replaying the journal.

(This is still work in progress and not fully functional)

Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
src/test/filestore_test/VerifyFileStore.cc [new file with mode: 0644]
src/test/filestore_test/VerifyFileStore.h [new file with mode: 0644]