1269 Commits

Author SHA1 Message Date
Benjamin Wang
7cf280547b
Merge pull request #481 from ahrtr/migrate_copy_page_20230504
cmd: migrate 'surgery copy-page' command to cobra style comamnd
2023-05-06 06:04:53 +08:00
Benjamin Wang
88c6eb7fdc
Merge pull request #482 from ahrtr/failpoint_20230505
add failpoint 'resizeFileError' to simulate file.Truncate error
2023-05-05 20:57:22 +08:00
Benjamin Wang
e618196323 cmd: migrate 'surgery copy-page' command to cobra style comamnd
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-05 20:50:14 +08:00
Benjamin Wang
465077b9e2 add failpoint 'resizeFileError' to simulate file.Truncate error
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-05 15:47:48 +08:00
Benjamin Wang
97d2cc34ac
Merge pull request #473 from ahrtr/revert_meta_20230426
Migrate `surgery revert-meta-page` to cobra style command
2023-05-03 20:57:56 +08:00
Benjamin Wang
44af899429
Merge pull request #479 from ahrtr/empty_write_20230501
test: support no-op write transaction
2023-05-03 20:57:19 +08:00
Benjamin Wang
578d3a857e test: support no-op write transaction
A no-op write transaction has two consequences:
    1. The txid increases by 1;
    2. Two meta pages point to the same root page.

Please also read https://github.com/etcd-io/etcd/issues/15498#issuecomment-1528971788.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-03 08:33:20 +08:00
Benjamin Wang
a300774a81
Merge pull request #480 from ahrtr/simplify_concurrent_test_20230502
test: update concurrent test case to remove the dependency on internal package
2023-05-03 08:26:33 +08:00
Benjamin Wang
aaada7b154 test: update concurrent test case to remove the dependency on internal package
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-03 06:52:59 +08:00
Benjamin Wang
96ca46ea06
Merge pull request #478 from ahrtr/check_corrupt_20230501
test: check database consistency at the end of concurrent test case
2023-05-01 15:26:18 +08:00
Benjamin Wang
39964028c5 test: check database consistency at the end of concurrent test case
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-01 13:07:36 +08:00
Benjamin Wang
1792915731
Merge pull request #475 from ahrtr/save_data_if_failed_20230427
test: save data in deferred function
2023-04-27 16:26:13 +08:00
Benjamin Wang
e0f875d11b test: save data in deferred function
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-27 14:48:31 +08:00
Benjamin Wang
8164464f8e migrate 'surgery revert-meta-page' to cobra style command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-27 04:04:32 +08:00
Benjamin Wang
9dbb260869
Merge pull request #474 from ahrtr/bolt_old_commands_20230426
test: add test cases to cover some old commmands
2023-04-27 04:03:29 +08:00
Benjamin Wang
690c9c9a51 test: add test cases to cover some old commmands
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-26 20:24:39 +08:00
Benjamin Wang
bd7d6e9f18
Merge pull request #471 from ahrtr/rename_runoperation_20230424
test: rename runOperation to executeOperation
2023-04-24 20:24:10 +08:00
Benjamin Wang
ec3ff470f6 test: rename runOperation to executeOperation
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-24 18:55:18 +08:00
Benjamin Wang
b312285496
Merge pull request #469 from ahrtr/delete_20230423
test: refactor worker/operation and support Delete operation
2023-04-24 18:18:59 +08:00
Benjamin Wang
0ddf0fb8ff test: refactor worker/operation and support Delete operation
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-24 16:38:27 +08:00
Marek Siarkowicz
c62e1b7dfd
Merge pull request #470 from ahrtr/fix_readme_20230423
Remove codecov and build badges
2023-04-23 12:45:46 +02:00
Benjamin Wang
f63484f54d remove codecov and build badges
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-23 11:04:52 +08:00
Benjamin Wang
3bd9260041
Merge pull request #454 from ahrtr/add_maintainer_20230406
Add a MAINTAINERS to list all members of all roles
2023-04-20 18:17:43 +08:00
Benjamin Wang
c858ecab87
Merge pull request #468 from ahrtr/multi_writer_20230420
test: support multiple writing transactions in the concurrent test
2023-04-20 18:05:12 +08:00
Benjamin Wang
0d799dc620 test: support multiple writing transactions in the concurrent test
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-20 14:40:54 +08:00
Benjamin Wang
f15324181d
Merge pull request #467 from ahrtr/txid_incremental_check_20230416
test: verify that txids are incremental
2023-04-18 13:53:07 +08:00
Benjamin Wang
e431258c0d test: verify that txids are incremental
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-17 18:50:21 +08:00
Benjamin Wang
89ed8dcb40
Merge pull request #466 from cenkalti/short
skip concurrent read and write tests in short mode
2023-04-16 12:41:06 +08:00
Cenk Alti
651c74ab07
skip concurrent read and write tests in short mode
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-04-15 23:48:47 -04:00
Benjamin Wang
4ad7b144f3
Merge pull request #456 from ahrtr/rebuild_freelist_20230410
cmd: add 'surgery freelist rebuild' command
2023-04-15 07:19:52 +08:00
Benjamin Wang
61ccab1438
Merge pull request #463 from ahrtr/concurrent_test_struct_parameters_20230414
test: get all concurrent test parameters wrapped in a struct
2023-04-15 07:19:38 +08:00
Benjamin Wang
ba26255141 cmd: add 'surgery freelist rebuild' command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-15 05:39:35 +08:00
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
171b7aa6ea add a MAINTAINERS to list all members of all roles
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-04-11 15:22:22 +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