1288 Commits

Author SHA1 Message Date
Benjamin Wang
bd6b79cad1
Merge pull request #484 from ahrtr/surgery_20230507
cmd: migrate 'surgery clear-page' command to cobra style command
2023-05-16 08:47:09 +08:00
Benjamin Wang
fbc136d482
Merge pull request #493 from cenkalti/deprecated
Fix deprecated comment.
2023-05-16 06:21:48 +08:00
Cenk Alti
6c836cbcaf
Fix deprecated comment.
Correct way of marking a method deprecated is adding a paragraph that
starts with "Deprecated:".

https://go.dev/blog/godoc
ff3aefbad4/src/cmd/api/api.go (L1137)

Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-05-15 16:01:11 -04:00
Benjamin Wang
8974e912fb cmd: check source db path for all surgery commands
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-09 08:50:17 +08:00
Benjamin Wang
383d990794 cmd: wrap 'surgery clear-page' options into surgeryClearPageOptions
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-09 08:38:56 +08:00
Benjamin Wang
6e12e088d4 cmd: migrate 'surgery copy-page' command to cobra style command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-09 08:27:04 +08:00
Benjamin Wang
8b1ee10512
Merge pull request #489 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.8.0
build(deps): Bump golang.org/x/sys from 0.7.0 to 0.8.0
2023-05-09 07:48:03 +08:00
Benjamin Wang
d6c7a4bdd6
Merge pull request #485 from serathius/command-decompose
Decompose command options
2023-05-09 06:23:27 +08:00
dependabot[bot]
d76c5b8f3e
build(deps): Bump golang.org/x/sys from 0.7.0 to 0.8.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sys/compare/v0.7.0...v0.8.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-05-08 21:52:11 +00:00
Benjamin Wang
78709910ae
Merge pull request #488 from etcd-io/dependabot/go_modules/golang.org/x/sync-0.2.0
build(deps): Bump golang.org/x/sync from 0.1.0 to 0.2.0
2023-05-09 05:51:33 +08:00
dependabot[bot]
f2d7356f6d
build(deps): Bump golang.org/x/sync from 0.1.0 to 0.2.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.1.0 to 0.2.0.
- [Commits](https://github.com/golang/sync/compare/v0.1.0...v0.2.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sync
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 15:02:30 +00:00
Marek Siarkowicz
f483d799ae Decompose command options
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-05-08 14:18:24 +02:00
Benjamin Wang
56e033be33
Merge pull request #486 from ahrtr/enhance_concurrent_test_20230508
test: enhance the concurrent test to support customize buckets, keys and testDuration
2023-05-08 17:00:22 +08:00
Benjamin Wang
3ebf0b741b test: enhance the concurrent test to support customize bucket and key
Also support customize the test duration by environment variable.

Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-08 15:12:09 +08:00
Benjamin Wang
c01592669a
Merge pull request #487 from jmhbnz/upgrade-go-patch-release
Updated go to latest patch release 1.19.9
2023-05-08 10:48:01 +08:00
James Blair
7f578facbe
Updated go to latest patch release 1.19.9.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-05-08 13:03:08 +12:00
Marek Siarkowicz
179e0203f2
Merge pull request #483 from ahrtr/surgery_20230506
cmd: enhance the surgery commands
2023-05-07 07:39:22 +02:00
Benjamin Wang
81eb691a8e cmd: get all surgery options included in a struct surgeryOptions
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-06 07:06:12 +08:00
Benjamin Wang
b027e485ce cmd: print a warning to abandon the freelist if present in 'surgery copy-page' command
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-06 06:25:23 +08:00
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