forked from TrueCloudLab/frostfs-node
[#1869] shard: Restore shard mode on failed reloads
Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
c785e11b20
commit
87be4f1629
3 changed files with 22 additions and 4 deletions
|
@ -113,6 +113,16 @@ func TestShardReload(t *testing.T) {
|
|||
|
||||
// Old objects are still accessible.
|
||||
checkHasObjects(t, true)
|
||||
|
||||
// Successive reload produces no undesired effects.
|
||||
require.NoError(t, os.RemoveAll(badPath))
|
||||
require.NoError(t, sh.Reload(newOpts...))
|
||||
|
||||
obj = newObject()
|
||||
require.NoError(t, putObject(sh, obj))
|
||||
|
||||
objects = append(objects, objAddr{obj: obj, addr: objectCore.AddressOf(obj)})
|
||||
checkHasObjects(t, true)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue