1214 Commits

Author SHA1 Message Date
Mustafa Elbehery
64fbce5fa3 Bump go 1.23.6
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2025-02-16 16:03:09 +01:00
Benjamin Wang
6691aa14f3
Merge pull request #892 from marcelfranca/issue/19333-release-1.3
[1.3] update golang toolchain to 1.22.12
2025-02-05 08:12:12 +00:00
Marcel Franca
f356cc21ba update goland toolchain to 1.22.12
Signed-off-by: Marcel Franca <marcel@marcelfranca.com>
2025-02-04 21:32:44 -03:00
Benjamin Wang
4f9facc5f6
Merge pull request #885 from ajaysundark/bump-golang-toolchain-1.22.11
bbolt: bump golang toolchain to 1.22.11
2025-01-18 08:45:57 +00:00
ajaysundar.k
c29abf48d7 bbolt: bump golang toolchain to 1.22.11
Signed-off-by: ajaysundar.k <ajaysundar.k@gmail.com>
2025-01-18 01:43:00 +00:00
Benjamin Wang
f06655e558
Merge pull request #868 from deanurag/release-1.3
[1.3] Updated Go Version to 1.22.10
2024-12-09 10:58:01 +00:00
Anurag De
246e55d926 Updated Go Version to 1.22.10
Signed-off-by: Anurag De <anuragde2004@gmail.com>
2024-12-04 14:36:18 +05:30
Benjamin Wang
fc4a8bdcb5
Merge pull request #862 from samuelbartels20/go/1.22.9
[1.3] update go version to 1.22.9
2024-11-15 08:07:07 +00:00
samuelbartels20
9581a75312 update go version to 1.22.9
Signed-off-by: samuelbartels20 <bartelssamuel20@gmail.com>
2024-11-14 22:51:54 +00:00
Benjamin Wang
e79ff94412
Merge pull request #837 from PyAgni/update-release-1.3-go-1.23.2
[1.3] Bump go version to 1.22.8
2024-10-04 10:30:14 +01:00
Agni
bdab6714fe Bump go version to 1.22.8
Signed-off-by: Agni <bhattacharyya.agni@gmail.com>
2024-10-03 00:00:55 +05:30
Benjamin Wang
81df7a3cff
Merge pull request #832 from ArkaSaha30/bump-go-1.22.7
[release-1.3] Bump go toolchain to 1.22.7
2024-09-11 07:35:11 +01:00
ArkaSaha30
96ba7cdd8c
[release-1.3] Bump go toolchain to 1.22.7
This commit will bump go toolchain to 1.22.7

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-09-10 22:42:33 +05:30
Benjamin Wang
d128a10000
Merge pull request #823 from ahrtr/rollback_alloc_20240819_1.3
[1.3] Rollback alloc map: remove all page ids which are allocated by the txid
v1.3.11
2024-08-20 09:57:48 +01:00
Benjamin Wang
94db72d652 Rollback alloc map: remove all page ids which are allocated by the txid
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-08-19 15:47:11 +01:00
Benjamin Wang
8c9b349866
Merge pull request #822 from henrybear327/1.3_go/1.22.0
[release-1.3] Bump go toolchain to 1.22.6
2024-08-16 19:33:39 +01:00
Chun-Hung Tseng
6a0b720300
Fix linter reported issues
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-08-16 17:12:29 +02:00
Chun-Hung Tseng
2104bc90f3 Update golangci-lint to v1.60.1
Reference:
- https://github.com/golangci/golangci-lint/releases/tag/v1.60.1

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-08-15 00:29:19 +02:00
Chun-Hung Tseng
9374ef94d3 Bump go toolchain to 1.22.6
Reference:
- https://github.com/etcd-io/etcd/issues/18443

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-08-15 00:01:51 +02:00
Benjamin Wang
01f29e9e9c
Merge pull request #817 from fuweid/13-backport-49eb212fa8ab67709ea460df01982504cf7fa4a1
[1.3] tests/robustness: switch to kill if no panic after 10sec
2024-08-09 12:40:20 +01:00
Wei Fu
99078466bb tests/robustness: switch to kill if no panic after 10sec
If file doesn't grow in 10 sec, bbolt won't trigger the following
errors:

* lackOfDiskSpace
* mapError
* resizeFileError
* unmapError

We should switch to kill instead of waiting for panic. In order to
trigger these errors, we should increase value size to 512.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit 49eb212fa8ab67709ea460df01982504cf7fa4a1)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-08-09 17:37:02 +08:00
Benjamin Wang
1b38fb35d5
Merge pull request #816 from fuweid/13-failpoint-backport
[1.3] backport failpoints(resizeFileError, lackOfDiskSpace) and dmflakey on XFS
2024-08-09 09:58:27 +01:00
Thomas Jungblut
70ab151d75 Add basic XFS powerfailure tests
This also introduces mkfs options, in case we need to accomodate for
non-default parameters here in the future.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
(cherry picked from commit c27eedcf803fb5c6990d8846275c5136e06de1ae)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-08-09 09:39:33 +08:00
Wei Fu
0719297af8 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>
(cherry picked from commit 4c3a80b2c06cb5a39eeabe422f718a1b6cfc7be2)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-08-09 09:34:35 +08:00
Marcondes Viana
79bcca0e51 tests: add failpoint to simulate lack of disk space
Signed-off-by: Marcondes Viana <marju10@gmail.com>
(cherry picked from commit 5ddbd0c94e221668fff3f9d234bd6fbb74d9457e)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-08-09 09:31:00 +08:00
Benjamin Wang
ec68f060a1 add failpoint 'resizeFileError' to simulate file.Truncate error
Signed-off-by: Benjamin Wang <wachao@vmware.com>
(cherry picked from commit 465077b9e2f3d0bfe593beda5a4b04ea1cd0915a)
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-08-09 09:27:07 +08:00
Benjamin Wang
78b80f5c6d
Merge pull request #813 from henrybear327/release-1.3
[release-1.3] go version bump from 1.21.12 to 1.21.13
2024-08-08 22:05:57 +01:00
Chun-Hung Tseng
2e1187ba48
[release-1.3] go version bump from 1.21.12 to 1.21.13
Reference: https://github.com/etcd-io/etcd/issues/18419
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-08-08 21:55:25 +02:00
Fu Wei
5292f71eda
[1.3] backport go-dmflakey and robustness test (#812)
* tx.go: introduce failpoint before fdatasync

It can be used for power failure cases.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit 445a07b6cb837d1196f9fceb7655900031ca093f)
Signed-off-by: Wei Fu <fuweid89@gmail.com>

* 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>
(cherry picked from commit b05bec2fe3f4de1650daf868e507e686d86770a5)
Signed-off-by: Wei Fu <fuweid89@gmail.com>

* tests/robustness: init with powerfailure case

Add `Robustness Test` pipeline for robustness test cases.

Signed-off-by: Wei Fu <fuweid89@gmail.com>
(cherry picked from commit 300e72ab8a0d3b730dbafb3b5463f00615bbfc9b)
Signed-off-by: Wei Fu <fuweid89@gmail.com>

---------

Signed-off-by: Wei Fu <fuweid89@gmail.com>
2024-08-08 16:22:18 +01:00
Benjamin Wang
3c128a606d
Merge pull request #805 from tjungblu/stdout
[1.3] cmd/bbolt: write bench results to stdout
2024-08-06 07:20:54 +01:00
Thomas Jungblut
c13ec0a16d cmd/bbolt: write bench results to stdout
backport of #767 to fix the missing output on nightly benchmarks

Co-authored-by: Iván Valdés Castillo <iv@nvald.es>
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-08-05 11:26:48 +02:00
Benjamin Wang
14c8aaf575
Merge pull request #802 from tjungblu/nighty_bench_3.5
[1.3] backport make build target and go bench output
2024-08-01 08:23:35 +01:00
Thomas Jungblut
138cbb3bc1 ensure build and bench output in 3.5
manual backport of #765 and partially #664, to make the nightly
benchmark work

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-07-31 13:28:14 +02:00
Benjamin Wang
71159e32bf
Merge pull request #785 from thedtripp/release-1.3
[1.3] Bump Go version to 1.21.12: GO-2024-2963 fix
2024-07-04 12:53:48 +01:00
D Tripp
616a4e1da3 Bump Go version to 1.21.12: CVE 2024-2963 fix
Signed-off-by: D Tripp <38776199+thedtripp@users.noreply.github.com>
2024-07-04 01:09:50 +00:00
Benjamin Wang
f9936edf0f
Merge pull request #763 from ArkaSaha30/release-1.3-cve-2024-24790
[1.3]Bump Go version to 1.21.11: CVE 2024-24790 fix
2024-06-05 16:22:56 +01:00
ArkaSaha30
7b71896470
Bump Go version to 1.21.11: CVE 2024-24790 fix
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-06-05 15:15:22 +05:30
Benjamin Wang
96c3f52f23
Merge pull request #754 from lavishpal/update/go-to-1.21.10
[1.3] dependency : update the go version to 1.21.10
2024-05-10 18:03:19 +01:00
Lavish pal
f5a30b77af update the go version to 1.21.10
Signed-off-by: Lavish pal <lvishpal408@gmail.com>
2024-05-10 20:03:16 +05:30
Benjamin Wang
014b0285cc
Merge pull request #744 from ahrtr/cursor_20240502
[1.3] Ensure a cursor can continue to iterate elements in reverse direction by call Next when it has already reached the beginning
v1.3.10
2024-05-03 06:49:59 +01:00
Benjamin Wang
2d48e1df03 Ensure a cursor can continue to iterate elements in reverse direction by call Next when it has already reached the beginning
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-05-02 16:43:50 +01:00
Benjamin Wang
886753c41a
Merge pull request #717 from henrybear327/fix/remove_UnsafeSlice
Remove UnsafeSlice and use unsafe.Slice
2024-04-07 19:02:39 +01:00
Chun-Hung Tseng
9e3d732b27
Remove UnsafeSlice and use unsafe.Slice
References:
- https://github.com/etcd-io/bbolt/pull/713
- https://github.com/etcd-io/bbolt/pull/566

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-06 21:40:37 +02:00
Benjamin Wang
2c29534715
Merge pull request #713 from henrybear327/cve/CVE-2023-45288-release-1.3
Bump go toolchain version to address CVE-2023-45288 for release-1.3
2024-04-05 19:24:09 +01:00
Chun-Hung Tseng
9b60c134ed
Address linter issues
Changes (align with the main branch):
- remove rand.Seed(s)
- use rand.Read from "crypto/rand"
- add //nolint:all for (*reflect.SliceHeader)(slice) -> will fix in a 
follow-up PR

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
Co-authored-by: Iván Valdés Castillo <iv@nvald.es>
2024-04-05 14:22:02 +02:00
Chun-Hung Tseng
0b59bc1317
Bump go toolchain version to address CVE-2023-45288
Changes:
- Bump toolchain version to 1.21.9 due to CVE-2023-45288
- run `go mod tidy`

Reference:
- PR etcd #17703

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-05 14:21:41 +02:00
Benjamin Wang
9f3524b608
Merge pull request #716 from henrybear327/feat/introduce-go-version-file
Adopt the .go-version approach for toolchain versioning
2024-04-05 13:16:35 +01:00
Chun-Hung Tseng
67a267830e
Adopt the .go-version approach for toolchain versioning
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-05 11:53:07 +02:00
Benjamin Wang
50aef2646b
Merge pull request #683 from Elbehery/backport_fix_cli_panics
[1.3] Fix `bbolt keys` and `bbolt get` to prevent them from panicking when no parameter provided
v1.3.9
2024-02-01 13:56:13 +00:00
Mustafa Elbehery
25dacb34be fix cli cmds panics
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
2024-01-31 19:23:36 +01:00