forked from TrueCloudLab/frostfs-node
[#1085] shard: allow to ignore errors in Evacuate
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
36eebb5932
commit
d06425c852
4 changed files with 152 additions and 14 deletions
|
@ -34,7 +34,7 @@ func TestWriteCacheObjectLoss(t *testing.T) {
|
|||
writecache.WithSmallObjectSize(smallSize),
|
||||
writecache.WithMaxObjectSize(smallSize * 2)}
|
||||
|
||||
sh := newCustomShard(t, dir, true, wcOpts...)
|
||||
sh := newCustomShard(t, dir, true, wcOpts, nil)
|
||||
|
||||
for i := range objects {
|
||||
_, err := sh.Put(new(shard.PutPrm).WithObject(objects[i]))
|
||||
|
@ -42,7 +42,7 @@ func TestWriteCacheObjectLoss(t *testing.T) {
|
|||
}
|
||||
require.NoError(t, sh.Close())
|
||||
|
||||
sh = newCustomShard(t, dir, true, wcOpts...)
|
||||
sh = newCustomShard(t, dir, true, wcOpts, nil)
|
||||
defer releaseShard(sh, t)
|
||||
|
||||
for i := range objects {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue