Benjamin Wang
8ca298f17f
test: get all concurrent test parameters wrapped in a struct
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-15 05:34:21 +08:00
Benjamin Wang
96372dea01
Merge pull request #455 from ahrtr/concurrent_test_20230407
...
test: improve `TestConcurrentReadAndWrite` to verify read/write linerizability
2023-04-14 18:44:00 +08:00
Benjamin Wang
fd10e60105
test: explictly mention serializable verification
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-14 17:12:16 +08:00
Benjamin Wang
842da43d53
test: move starting worker into separate function, and collect operation history locally firstly
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-14 13:24:58 +08:00
Benjamin Wang
d142709a73
test: improve TestConcurrentReadAndWrite to verify read/write linerizablity
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-14 12:23:16 +08:00
Benjamin Wang
bc572b8783
Merge pull request #460 from ahrtr/freelist_type_20230412
...
Move FreelistType from `internal/common` to top level package `bbolt`
2023-04-13 20:03:32 +08:00
Benjamin Wang
6adc0c47a6
move FreelistType from internal/common to top level package bbolt
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-12 07:32:45 +08:00
Marek Siarkowicz
5602d88f41
Merge pull request #459 from ahrtr/export_freelist_type_20230411
...
Export both FreelistArrayType and FreelistMapType so as to keep API compatibility
2023-04-11 21:27:18 +02:00
Benjamin Wang
feccc712f1
Export both FreelistArrayType and FreelistMapType so as to keep API compatibility
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-11 19:00:31 +08:00
Benjamin Wang
3185d2c9b9
Merge pull request #458 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.7.0
...
Bump golang.org/x/sys from 0.6.0 to 0.7.0
2023-04-11 08:10:50 +08:00
dependabot[bot]
f4bb2bb355
Bump golang.org/x/sys from 0.6.0 to 0.7.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-11 06:04:19 +08:00
Benjamin Wang
055d6a9a98
Merge pull request #457 from etcd-io/dependabot/go_modules/github.com/spf13/cobra-1.7.0
...
Bump github.com/spf13/cobra from 1.6.1 to 1.7.0
2023-04-11 06:02:47 +08:00
dependabot[bot]
ceb6c304a6
Bump github.com/spf13/cobra from 1.6.1 to 1.7.0
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 15:03:30 +00:00
Marek Siarkowicz
a2395be6b8
Merge pull request #452 from jrick/restore_errors
...
Introduce errors package and restore API compatibility
2023-04-07 10:51:52 +02:00
Josh Rickmar
7a957f94b2
Introduce errors package and restore API compatibility
...
This moves the error variables that had been moved to the
internal/common package during recent refactoring to a non-internal
errors package, once again allowing consumers to test for particular
error conditions.
To preserve API compatibility with bbolt v1.3, these error variables
are also redefined in the bbolt package, with deprecation notice to
migrate to bbolt/errors.
Signed-off-by: Josh Rickmar <jrick@zettaport.com>
2023-04-06 13:26:30 +00:00
Benjamin Wang
10f5d671ec
Merge pull request #442 from ahrtr/read_dirty_value_20230328
...
test: add test case to verify concurrent reading and writing transactions always work correctly
2023-04-06 20:45:44 +08:00
Benjamin Wang
35ff2b33d1
Merge pull request #451 from jmhbnz/verify-goimports-workflow
...
test: add verification of go imports when running make fmt
2023-04-06 20:45:01 +08:00
Benjamin Wang
497532ac6a
Merge pull request #453 from kishen-v/64k-page-tests
...
Add tests for 64KB block pages.
2023-04-06 20:08:21 +08:00
James Blair
09b5b50101
Add verification of go imports when running make fmt.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-04-06 22:43:23 +12:00
Benjamin Wang
0c6c296522
test: add test case to verify concurrent reading and writing transactions always work correctly
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-06 18:28:45 +08:00
Kishen V
a333d9323c
Add tests for 64KB block pages.
...
Added data to support test coverage for environments which use 64KB pages.
Signed-off-by: Kishen V <kishen.viswanathan@ibm.com>
2023-04-06 09:25:33 +05:30
Benjamin Wang
6cce7485aa
Merge pull request #450 from ahrtr/move_copyfile_20230405
...
Move `copyFile` into internal/common/util.go
2023-04-05 17:25:17 +08:00
Benjamin Wang
1776766466
move copyFile into internal/common/util.go
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-05 14:08:17 +08:00
Benjamin Wang
e6563eef17
Merge pull request #443 from ahrtr/surgery_abandon_freelist_20230330
...
cmd: add `surgery abandon-freelist` command
2023-03-31 17:58:51 +08:00
Benjamin Wang
dc50a72933
cmd: add 'surgery abandon-freelist' command
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-31 07:04:05 +08:00
Benjamin Wang
3e560dbae2
Merge pull request #445 from ahrtr/fix_testDB_Close_PendingTx_20230330
...
test: improve testDB_Close_PendingTx to reduce flaky
2023-03-31 06:20:33 +08:00
Benjamin Wang
1bc0c6b034
Merge pull request #440 from ahrtr/configure_strict_check_20230325
...
[test] Support enabling strict check
2023-03-31 06:19:43 +08:00
Benjamin Wang
7b07e70b8c
test: improve testDB_Close_PendingTx to reduce flaky
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-30 16:33:34 +08:00
Benjamin Wang
a12c0c4bd7
test: support enabling strict mode in testing
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-29 08:38:02 +08:00
Benjamin Wang
7054e45233
test: make the test timeout configurable
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-29 08:23:32 +08:00
Benjamin Wang
64bac9b723
Merge pull request #417 from ahrtr/surgery_clear_element_20230310
...
Add cobra style `surgery clear-page-elements` command
2023-03-29 06:41:33 +08:00
Benjamin Wang
74e26bee77
update command 'surgery clear-page-elements' not to automatically abandon freelist
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-25 09:33:59 +08:00
Benjamin Wang
87eed0ac93
add test case to verify 'surgery-clear-elements' on overflow page
...
Also resolved a bug related to overflow page.
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-25 07:42:01 +08:00
Benjamin Wang
a0e5e3a1dd
test: add more subcases to verify 'surgery-clear-elements' on branch page
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-25 07:42:01 +08:00
Benjamin Wang
8902ef92e9
resolve some minor review comments
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-25 07:42:01 +08:00
Benjamin Wang
a9a9356ea4
test: verify the left elements after clear-page-elements operation should have the same content
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-25 07:42:01 +08:00
Benjamin Wang
95576a4f10
CMD: add test cases for the 'surgery clear-page-elements' command
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-25 07:42:01 +08:00
Benjamin Wang
3c3da590b1
CMD: add cobra style 'surgery clear-page-elements' command
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-25 07:42:01 +08:00
Benjamin Wang
9832aff38a
internal: add function ClearElements in surgeon package
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-25 07:42:01 +08:00
Benjamin Wang
5a7a94e5cc
Merge pull request #434 from cenkalti/atomic
...
Fix progress reporting in bench cmd
2023-03-25 06:34:08 +08:00
Benjamin Wang
e921b67d8d
Merge pull request #438 from ahrtr/fix_unmap_error_20230323
...
update the error message when rollback unmap also fails
2023-03-24 17:11:06 +08:00
Cenk Alti
b5a219fd29
Fix progress reporting in bench cmd
...
Signed-off-by: Cenk Alti <alticen@amazon.com>
2023-03-23 21:37:19 -04:00
Benjamin Wang
e2c42548f2
update the error message when rollback unmap also fails
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-23 19:51:08 +08:00
Benjamin Wang
b027d19703
Merge pull request #433 from ahrtr/mlock_error_20230320
...
Perform unmap when mlock fails or both meta pages corrupted
2023-03-23 10:06:40 +08:00
Benjamin Wang
b2f3dd5dba
Perform unmap when failing to mlock or both meta pages corrupted
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-22 12:02:01 +08:00
Benjamin Wang
d8ac759d4f
test: add test cases to similate mlock failure
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-21 16:24:27 +08:00
Benjamin Wang
9c5eaa954d
Merge pull request #432 from etcd-io/dependabot/github_actions/actions/setup-go-4
...
Bump actions/setup-go from 3 to 4
2023-03-21 06:37:28 +08:00
dependabot[bot]
360067ce9e
Bump actions/setup-go from 3 to 4
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 15:06:32 +00:00
Benjamin Wang
925b8779d3
Merge pull request #431 from ahrtr/test_check_20230320
...
test: perform check in view (readonly) mode
2023-03-20 16:52:40 +08:00
Benjamin Wang
c00862aa7c
test: add failpoint for mlock operation
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-03-20 15:34:31 +08:00