Benjamin Wang
f10bad3c8f
support injecting failpoints and add failpoint github workflow
...
Implemented first demo "TestFailpoint_MapFail"
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-01-16 20:32:16 +08:00
Piotr Tabor
ee27a544ca
Recursive checker: Final touches.
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2023-01-13 19:14:45 +01:00
Piotr Tabor
93380c59e8
testing: group (reorder) imports.
...
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-28 15:18:46 +01:00
Piotr Tabor
ebca452da7
Add internal iterator to Bucket that goes over buckets.
...
So far the code was frequently traversing all the keys (ignoring flag whether key is a bucket)
and trying to open each of the keys as bucket (seeking the same entry from the scratch).
In this proposal, we iterate only through bucket keys.
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-21 12:16:50 +01:00
Piotr Tabor
b09984ea16
Fix bbolt test for 16KB block page (e.g. Mac with M1 CPU).
...
The tests were failing when doing development on M1 mac. This was due to page-size difference (4KB assumed in tests) vs. the
OS defaults.
Signed-off-by: Piotr Tabor <ptab@google.com>
2022-12-16 19:14:51 +01:00
Benjamin Wang
7591807117
bump golang.org/x/sys to v0.2.0
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2022-11-13 13:34:17 +08:00
Tobias Klauser
74e833b572
Use madvise syscall wrapper from golang.org/x/sys/unix
...
Direct syscalls using syscall.Syscall(SYS_*, ...) should no longer be
used on darwin, see [1]. Instead, use the madvise syscall wrapper
provided by the golang.org/x/sys/unix package for all unix platforms.
This implement the same functionality.
[1] https://golang.org/doc/go1.12#darwin
As suggested by @ptabor in https://github.com/etcd-io/etcd/pull/12316#issuecomment-698193671
2020-09-24 11:58:10 +02:00
Josh Rickmar
543c40ab41
Fix unsafe pointer conversions caught by Go 1.14 checkptr
2020-03-18 21:18:39 -04:00