frostfs-node/pkg/local_object_storage/pilorama
Evgenii Stratonikov 5335e7089e [#615] pilorama: Speedup TestForest_ApplyRandom()
Some of our pilorama tests fail on CI.
The reasons are not obvious, but one possible improvement
is using `WithNoSync` option for these. It should have much effect,
because we are writing on the tmpfs, but doesn't hurt anyway.

If I replace `t.TempDir()` with a local directory, test execution time
goes down from 5s (sync) to 0.4s (nosync), which is the same time as
with `t.TempDir()`. Maybe we have some strange CI configuration.

```
panic: test timed out after 10m0s
running tests:
	TestForest_ApplyRandom (8m22s)
	TestForest_ApplyRandom/bbolt (8m21s)
...
goroutine 170 [syscall]:
syscall.Syscall(0xc000100000?, 0xc00047b758?, 0x6aff9a?, 0xc00041c1b0?)
	/opt/hostedtoolcache/go/1.20.7/x64/src/syscall/syscall_linux.go:69 +0x27
syscall.Fdatasync(0x9e35c0?)
	/opt/hostedtoolcache/go/1.20.7/x64/src/syscall/zsyscall_linux_amd64.go:418 +0x2a
go.etcd.io/bbolt.fdatasync(0xc000189000?)
```

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-08-16 19:09:08 +00:00
..
batch.go [#447] pilorama: Use named constant for the key size 2023-06-26 07:42:05 +00:00
batch_test.go [#398] pilorama: Disallow applying same operations 2023-05-26 12:14:29 +00:00
bench_test.go [#447] pilorama: Add benchmark for create ops 2023-06-26 07:42:05 +00:00
boltdb.go [#335] treesvc: Sort nodes by Filename in GetSubTree 2023-07-20 10:14:10 +03:00
forest.go [#335] treesvc: Sort nodes by Filename in GetSubTree 2023-07-20 10:14:10 +03:00
forest_test.go [#615] pilorama: Speedup TestForest_ApplyRandom() 2023-08-16 19:09:08 +00:00
generic_test.go [#xx] Avoid manual management of files in tests 2023-08-14 14:01:39 +03:00
info.go [#1333] services/control: Return pilorama info in ListShards RPC 2022-07-21 15:08:24 +03:00
inmemory.go [#335] treesvc: Fix inmemory unit tests and nil meta items 2023-07-20 10:14:10 +03:00
interface.go [#335] treesvc: Sort nodes by Filename in GetSubTree 2023-07-20 10:14:10 +03:00
meta.go [#1444] pilorama: Optimize internal encoding/decoding 2022-07-21 15:08:24 +03:00
meta_test.go [#587] Do not use math/rand.Read 2023-08-09 16:02:44 +03:00
metrics.go [#373] local storage: Pass parent ID 2023-06-21 15:13:26 +03:00
option.go [#373] pilorama: Add metrics 2023-06-21 15:13:26 +03:00
types.go [#335] treesvc: Sort nodes by Filename in GetSubTree 2023-07-20 10:14:10 +03:00
util.go [#1442] pilorama: Generate timestamp based on node position in the container 2022-07-21 15:08:24 +03:00
util_test.go [#1442] pilorama: Generate timestamp based on node position in the container 2022-07-21 15:08:24 +03:00