Mechiel Lukkien
3501667d55
Update import paths used to pkg.go.dev and go report card
...
They pointed to github.com/etcd-io/bbolt, which only returns the bbolt version
from before the module path change. Some time ago, I caught myself using the
older github.com import path, and I suspect it was because of these links.
This changes the link from godoc.org to pkg.go.dev, and uses the badge from
https://pkg.go.dev/badge/ .
Signed-off-by: Mechiel Lukkien <mechiel@ueber.net>
2023-05-23 09:40:02 +02:00
Benjamin Wang
07579acf0c
Merge pull request #502 from cenkalti/mask
...
Remove unnecessary masking
2023-05-18 08:50:01 +08:00
Benjamin Wang
53ce8c103d
Merge pull request #499 from cenkalti/tx-doc
...
Update Tx.Commit documentation
2023-05-17 11:11:08 +08:00
Benjamin Wang
553ea0aab7
Merge pull request #500 from cenkalti/bucket
...
Add bucket retrieve example to README
2023-05-17 07:03:07 +08:00
Cenk Alti
b3df07c58c
Remove unnecessary masking
...
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-05-16 16:37:46 -04:00
Cenk Alti
6ec43f8da3
Add bucket retrieve example to README
...
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-05-16 16:04:31 -04:00
Cenk Alti
daff030646
Update Tx.Commit documentation
...
Signed-off-by: Cenk Alti <cenkalti@gmail.com>
2023-05-16 14:56:40 -04:00
Benjamin Wang
160cd29ec3
Merge pull request #497 from ahrtr/split_surgery_freelist_20230516
...
cmd: split 'surgery freelist' into separate files
2023-05-16 19:00:15 +08:00
Benjamin Wang
c2efe9f0d8
cmd: split 'surgery freelist' into separate files
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-16 16:51:06 +08:00
Benjamin Wang
94513901af
Merge pull request #496 from ahrtr/surgery_required_flags_20230516
...
cmd: mark some flags of surgery commands as required
2023-05-16 16:29:32 +08:00
Benjamin Wang
065a3e1953
cmd: mark some flags of surgery commands as required
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-05-16 14:13:15 +08:00
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