Lame AAE hashtree query test
Corruption of the values wihtin the journal doesn't get detected by the hashtree query
This commit is contained in:
parent
73004328e1
commit
7d35ef7126
1 changed files with 16 additions and 0 deletions
|
@ -99,6 +99,22 @@ aae_bustedjournal(_Config) ->
|
|||
true = GetCount > 19000,
|
||||
true = GetCount < HeadCount,
|
||||
|
||||
{async, HashTreeF1} = leveled_bookie:book_returnfolder(Bookie2,
|
||||
{hashtree_query,
|
||||
?RIAK_TAG,
|
||||
false}),
|
||||
KeyHashList1 = HashTreeF1(),
|
||||
20001 = length(KeyHashList1),
|
||||
{async, HashTreeF2} = leveled_bookie:book_returnfolder(Bookie2,
|
||||
{hashtree_query,
|
||||
?RIAK_TAG,
|
||||
check_presence}),
|
||||
KeyHashList2 = HashTreeF2(),
|
||||
% The file is still there, and the hashtree is not corrupted
|
||||
KeyHashList2 = KeyHashList1,
|
||||
% Will need to remove the file or corrupt the hashtree to get presence to
|
||||
% fail
|
||||
|
||||
ok = leveled_bookie:book_close(Bookie2),
|
||||
testutil:reset_filestructure().
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue