Skip to content

Commit

Permalink
engine: fix TestEvacuateShard
Browse files Browse the repository at this point in the history
It looks like on a slow (few-core?) machine put operation can be failed because
the internal pool has not been freed from the previous iteration (another shard
is tried then and additional "fake" relocation is detected in the test).
Closes #2860.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
carpawell committed Jun 13, 2024
1 parent 3591bc1 commit 9680cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/local_object_storage/engine/evacuate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func newEngineEvacuate(t *testing.T, shardNum int, objPerShard int) (*StorageEng

e := New(
WithLogger(zaptest.NewLogger(t)),
WithShardPoolSize(1))
WithShardPoolSize(uint32(objPerShard)))

ids := make([]*shard.ID, shardNum)

Expand Down

0 comments on commit 9680cd5

Please sign in to comment.