Commit Graph

7 Commits

Author SHA1 Message Date
Christopher Meiklejohn
d4dec726a9 Fix verify_backup_restore.
First, convert all of the node operations that write/delete to use the
Riak PB connection opened at the start of the test.  When deleting,
ensure we wait for the object to be fully deleted.

Here's where it gets more interesting:

In the original allow_mult=false behaviour, original objects are
replaced with modified objects, and then when performing the restore
operation, the originals are abandoned for the modified objects because
they have a greater timestamp.

In the new allow_mult=true behaviour, original objects are replaced with
modified objects, and then the restore operations restores the original
object as a *sibling*, because the objects have divergent vector clocks.

Adapt the test for this.
2013-11-09 09:33:38 -05:00
Engel A. Sanchez
522e3edf5d Verify deletes in backup restore test
Using the new function to detect when tombstones are really, really gone
so the test is more reliable.
Also, a bit of refactoring of the delete verification and wait_until
functions to make it cleaner.
2013-06-20 11:53:20 -04:00
Engel A. Sanchez
4fc876b524 Fix another rt_config refactor victim 2013-06-17 08:54:10 -04:00
Joe DeVivo
08ac3fdbed refactored config and local into separate modules 2013-04-26 08:24:58 -07:00
Engel A. Sanchez
0e8ecce7d5 Add riak_test behavior 2012-12-14 10:50:49 -05:00
Engel A. Sanchez
643d063b0a Better rt/rtdev separation in backup/restore
Operations that assume a local node are moved to rtdev, and those that
do not stay in rt.
Also, using PB client instead of internal where possible.
2012-12-10 11:46:41 -05:00
Engel A. Sanchez
2baf7a0761 Add backup restore test
This is a port of systest-backup-and-restore from basho_expect with some
changes and additions. Biggest change was not using search-cmd to index
data for search, as it does not seem to update docs, just indexes. Then
added restore on a clean cluster. Basically it does this:

* Writes data, including a search enabled bucket
* Verifies written data, including searches
* Runs backup
* Deletes, modifies some data
* Verifies mods and deletes took
* Runs restore
* Verifies deleted data is back, mods stay (last write wins)
* Stops cluster and wipes out all data dirs
* Verifies clean cluster
* Runs restore
* Verifies data was restored, including searches

Also, adding some more noise to some riak test setup functions. This was
useful when initially debugging the test before it worked the first
time.
2012-12-10 09:02:06 -05:00