Benjamin Wang
0bd26bc48c
Refactor test case TestTx_MoveBucket and add log for MoveBucket
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-02 13:38:32 +00:00
Mustafa Elbehery
ac355dec24
add MoveSubBucket test
...
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2024-01-02 14:33:00 +01:00
Benjamin Wang
27ded38c22
add MoveBucket to support moving a sub-bucket from one bucket to another bucket
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-01-02 14:33:00 +01:00
Wei Fu
c61a3be3e8
*: introduce nightly run for robustness
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-02 21:29:51 +08:00
Wei Fu
4c3a80b2c0
tests: Update TestRestartFromPowerFailure
...
Update case with a combination of EXT4 filesystem's commit setting and
unexpected exit event. That EXT4 filesystem's commit is to sync all its data
and metadata every seconds. The kernel can help us sync even if that
process has been killed. With different commit setting, we can simulate
that case that kernel syncs half part of dirty pages before power
failure. And for unexpected exit event, we can kill that process
randomly or panic at failpoint instead of fixed code path.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-01-02 21:29:46 +08:00
Benjamin Wang
9f1a1d35fb
Merge pull request #657 from ahrtr/refactor_check_20231231
...
Move checking the invariant properties into a common method
2024-01-02 13:26:00 +00:00
Benjamin Wang
b18e7931c5
move the invariant properties into a common method
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-31 14:19:19 +00:00
Benjamin Wang
c1eb99248d
Merge pull request #646 from ahrtr/logger_bbolt_20231207
...
Add log messages
2023-12-29 13:42:33 +00:00
Benjamin Wang
4c7075efe6
add log messages
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-29 11:25:43 +00:00
Benjamin Wang
de6c42bcf2
Merge pull request #651 from ahrtr/renaming_20231227
...
Refactor the implementation of check
2023-12-29 10:21:51 +00:00
Benjamin Wang
47cc272875
Merge pull request #652 from jmhbnz/tune-arm64-memory-allocation
...
Tune arm64 memory allocation and disable telemetry
2023-12-28 09:38:09 +00:00
James Blair
2cd6213e4a
Remove workflow telemetry to reduce noise.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:14:03 +13:00
James Blair
53450a9f2b
Fix yamllint errors in workflow files.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:12:31 +13:00
James Blair
7cab486ea2
Reduce arm64 runner memory allocation to 8GB.
...
Based on memory consumption statistics for historic runs.
Signed-off-by: James Blair <mail@jamesblair.net>
2023-12-28 09:09:23 +13:00
Benjamin Wang
23c97d55e6
refactor the implementation of check
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-27 15:32:54 +00:00
Benjamin Wang
4b761832c4
Merge pull request #649 from fuweid/add-fuwei-as-reviewer
...
OWNERS: add fuweid as reviewer
2023-12-21 16:48:39 +00:00
Wei Fu
052862c261
OWNERS: add fuweid as reviewer
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-21 23:24:48 +08:00
Benjamin Wang
008e27b0e4
Merge pull request #645 from fuweid/update-changelog
...
CHANGELOG: update for v1.3.9
2023-12-18 17:46:36 +00:00
Wei Fu
e4ab08e221
CHANGELOG: update for v1.3.9
...
- [bucket: allow to allocate key on stack in Put()](https://github.com/etcd-io/bbolt/pull/550 )
- [bucket.Put: copy key before seek](https://github.com/etcd-io/bbolt/pull/637 )
- [copy key before comparing during CreateBucket or CreateBucketIfNotExists](https://github.com/etcd-io/bbolt/pull/641 )
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-19 00:20:29 +08:00
Benjamin Wang
cce7a799a9
Merge pull request #644 from etcd-io/dependabot/github_actions/actions/github-script-7.0.1
...
build(deps): Bump actions/github-script from 6.4.1 to 7.0.1
2023-12-18 16:17:58 +00:00
dependabot[bot]
70aa6e651d
build(deps): Bump actions/github-script from 6.4.1 to 7.0.1
...
Bumps [actions/github-script](https://github.com/actions/github-script ) from 6.4.1 to 7.0.1.
- [Release notes](https://github.com/actions/github-script/releases )
- [Commits](d7906e4ad0...60a0d83039
)
---
updated-dependencies:
- dependency-name: actions/github-script
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 14:30:46 +00:00
Benjamin Wang
086cd74c57
Merge pull request #641 from fuweid/copy-key-before-seek-for-bucket
...
copy key before comparing during CreateBucket or CreateBucketIfNotExists
2023-12-17 16:02:54 +00:00
Wei Fu
ac2258bb13
copy key before seeking in CreateBucketIfNotExists
...
It's follow-up of #637 .
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-17 22:00:18 +08:00
Wei Fu
62d80260de
*: copy key before comparing during CreateBucket
...
It's follow-up of #637 .
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-17 21:58:53 +08:00
Benjamin Wang
c89db63269
Merge pull request #640 from ivanvc/add-github-workflows-telemetry
...
github actions: add workflow telemetry to collect metrics
2023-12-17 12:06:23 +00:00
Ivan Valdes
a9cde4d6c8
github actions: add workflow telemetry to collect metrics
...
Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-12-16 13:34:38 -08:00
Benjamin Wang
cd4a7570d5
Merge pull request #637 from fuweid/copy-key-before-seek
...
bucket.Put: copy key before seek
2023-12-13 14:35:03 +00:00
Wei Fu
a05ec68aaa
bucket: copy key before Put
...
Application might change key value after seeking and before real put.
This unexpected behaviour could corrupt database. When users file issue,
maintainers doesn't know application behaviour. It could be caused by
data race. This patch is to prevent such case and save maintainers' time.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-13 20:57:57 +08:00
Wei Fu
1b08078707
tests/robustness: add issue72 reproducer
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-13 20:57:40 +08:00
Wei Fu
324df9cd26
*: introduce failpoint beforeBucketPut
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-13 10:49:05 +08:00
Benjamin Wang
f34eb5e786
Merge pull request #638 from ivanvc/enable-github-workflow-approval-via-ok-to-test-label
...
github workflow: enable workflow approval
2023-12-12 20:27:22 +00:00
Ivan Valdes
82cf0eda8c
github workflow: enable workflow approval
...
Allow to run GitHub workflows for Pull Requests that have the ok-to-test
label.
Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-12-12 10:06:49 -08:00
Benjamin Wang
a7a791ca81
Merge pull request #634 from etcd-io/dependabot/github_actions/actions/setup-go-5
...
build(deps): Bump actions/setup-go from 4 to 5
2023-12-11 16:06:16 +00:00
dependabot[bot]
5ff325a6a3
build(deps): Bump actions/setup-go from 4 to 5
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
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-12-11 14:46:21 +00:00
Benjamin Wang
568e75457b
Merge pull request #614 from ahrtr/cursor_20231117
...
Update doc to clarify the behavior when removing key/value pairs during iteration
2023-12-08 10:32:33 +00:00
Benjamin Wang
95a982c5d4
Merge pull request #622 from fuweid/powerfailure
...
tests/robustness: init with powerfailure case
2023-12-08 10:30:40 +00:00
Wei Fu
300e72ab8a
tests/robustness: init with powerfailure case
...
Add `Robustness Test` pipeline for robustness test cases.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-08 09:48:57 +08:00
Benjamin Wang
eeea655cfa
Merge pull request #628 from fuweid/init-godmflakey
...
tests/*: introduce go-dmflakey
2023-12-07 09:52:56 +00:00
Wei Fu
b05bec2fe3
tests/*: introduce go-dmflakey
...
This commit is to add go-binding for go-dmflakey. It's used to simulate
powerfailure with common filesystems.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-12-07 08:55:33 +08:00
Benjamin Wang
10e18c531c
Merge pull request #630 from ivanvc/update-to-go-1.21.5
...
Update go version to 1.21.5
2023-12-06 10:55:35 +00:00
Benjamin Wang
173f1cfa74
update doc to clarify the behavior when removing key/value pair during iteration
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2023-12-06 09:37:44 +00:00
Ivan Valdes
9dd229558c
Update go version to 1.21.5
...
Signed-off-by: Ivan Valdes <ivan@vald.es>
2023-12-05 19:35:57 -08:00
Benjamin Wang
04846951a3
Merge pull request #627 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.15.0
...
build(deps): Bump golang.org/x/sys from 0.14.0 to 0.15.0
2023-12-04 20:28:27 +00:00
dependabot[bot]
bc9ab2f746
build(deps): Bump golang.org/x/sys from 0.14.0 to 0.15.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/sys/compare/v0.14.0...v0.15.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-12-04 14:28:54 +00:00
Benjamin Wang
125523a569
Merge pull request #624 from Elbehery/add_log
...
Add log
2023-12-01 10:17:01 +00:00
Mustafa Elbehery
9e8668ed74
logger: add logger to bbolt
...
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2023-11-27 17:26:35 +01:00
caojiamingalan
5ce15f0a8a
add tx.ID() in log. Change the position of log. If we call tx.ID() before testing the nullity of tx.db, it may panic.
...
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-11-27 17:26:26 +01:00
caojiamingalan
7d93161fbd
add logger
...
Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
2023-11-27 17:08:16 +01:00
Benjamin Wang
d630253fcd
Merge pull request #623 from fuweid/add-failpoint-when-sync
...
Add failpoint when sync
2023-11-26 16:10:21 +00:00
Wei Fu
445a07b6cb
tx.go: introduce failpoint before fdatasync
...
It can be used for power failure cases.
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-11-26 21:26:30 +08:00