mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
Update kv679_dataloss_fb2.erl
Brutal kill is an async operation - so need to wait to check it has worked
This commit is contained in:
parent
8c083ffcc3
commit
0e7152cce7
@ -134,6 +134,7 @@ confirm() ->
|
||||
[FB1] = [Node || {{_Idx, Node}, Type} <- FBPL,
|
||||
Type == fallback],
|
||||
rt:brutal_kill(FB1),
|
||||
rt:wait_until_unpingable(FB1),
|
||||
|
||||
%% get a new preflist with a different fallback
|
||||
rt:wait_until(fun() ->
|
||||
@ -155,6 +156,7 @@ confirm() ->
|
||||
[FB2] = [Node || {{_Idx, Node}, Type} <- FBPL2,
|
||||
Type == fallback],
|
||||
rt:brutal_kill(FB2),
|
||||
rt:wait_until_unpingable(FB2),
|
||||
|
||||
%% meanwhile, in the other partition, let's write some data
|
||||
P2PL = kv679_tombstone:get_preflist(hd(P2), ?NVAL),
|
||||
|
Loading…
Reference in New Issue
Block a user