1763 Commits

Author SHA1 Message Date
Benjamin Wang
7b6185ae2c
Merge pull request #807 from etcd-io/dependabot/github_actions/actions/checkout-4.1.7
build(deps): Bump actions/checkout from 4.1.1 to 4.1.7
2024-08-05 21:37:09 +01:00
Benjamin Wang
38a0aa2b0c
Merge pull request #806 from etcd-io/dependabot/github_actions/golangci/golangci-lint-action-6.1.0
build(deps): Bump golangci/golangci-lint-action from 6.0.1 to 6.1.0
2024-08-05 20:47:13 +01:00
dependabot[bot]
88233131eb
build(deps): Bump golang.org/x/sync from 0.7.0 to 0.8.0
Bumps [golang.org/x/sync](https://github.com/golang/sync) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/sync/compare/v0.7.0...v0.8.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>
2024-08-05 14:54:02 +00:00
dependabot[bot]
8a64275c92
build(deps): Bump actions/checkout from 4.1.1 to 4.1.7
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4.1.1...692973e3d937129bcbf40652eb9f2f61becf3332)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 14:44:48 +00:00
dependabot[bot]
6f4e0e5c5c
build(deps): Bump golangci/golangci-lint-action from 6.0.1 to 6.1.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.0.1 to 6.1.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](a4f60bb28d...aaa42aa062)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 14:44:44 +00:00
Benjamin Wang
02e13c1341
Merge pull request #803 from ivanvc/set-top-level-permissions-to-github-workflows
github/workflows: set top-level file permissions
2024-08-02 20:08:02 +01:00
Ivan Valdes
83aba89820
github/workflows: set top-level file permissions
The gh-workflow-approve and tests_windows actions didnt't specify
top-level permissions. This is an improvement towards having a better
OpenSSF Scorecard Report score.

Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-08-02 10:38:44 -07:00
Benjamin Wang
b87f244ec2
Merge pull request #801 from ivanvc/pin-github-action-dependencies
github/workflows: pin dependency versions
2024-07-31 09:28:59 +01:00
Ivan Valdes
5378ea12fd
github/workflows: pin dependency versions
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-07-30 08:58:49 -07:00
Benjamin Wang
df83d9d752
Merge pull request #792 from ahrtr/freelist_rollback_20240709
Panicking when a write txn tries to free a page which was allocated by itself
2024-07-30 13:32:08 +01:00
Benjamin Wang
da1c83cbeb panicking when a write txn tries to free a page which was allocated by itself
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-07-30 08:41:22 +01:00
Benjamin Wang
49c7697344
Merge pull request #794 from tjungblu/791_inconsistency
ensure hashmap init clears maps
2024-07-30 08:37:25 +01:00
Benjamin Wang
4a77dd9481
Merge pull request #793 from tjungblu/nightly_bench
add nightly benchmark
2024-07-30 08:24:18 +01:00
Thomas Jungblut
2f15c08377 add nightly benchmark
This should ensure we don't creep little percentages over the course of
multiple commits into main, compared to the last release branch.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-07-23 09:42:08 +02:00
Benjamin Wang
2e6b37b6d2
Merge pull request #796 from ahrtr/rollback_test_20240717
Add test case to verify freelist in case of TXN rollback
2024-07-22 16:16:43 +01:00
Thomas Jungblut
f4de460a1b add testcases for hashmap init
This also rectifies a bunch of nil/empty differences between the
implementation that show up during init and page releases.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-07-22 16:52:06 +02:00
Thomas Jungblut
ce50f55c6e ensure hashmap init clears maps
This reorders some statements in the hashmap initialization to ensure we
always start fresh, even when no pageids were passed to it.

fixes #791

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-07-22 16:20:01 +02:00
Benjamin Wang
7b031d53c9 add test case to verify freelist in case of TXN rollback
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-07-22 14:17:46 +01:00
Benjamin Wang
d72e6bf8c1
Merge pull request #788 from ahrtr/simply_free_20240708
No need to handle freelist as a specical case when freeing a page
2024-07-22 12:54:30 +01:00
Benjamin Wang
d1cd0deee6 No need to handle freelist as a specical case when freeing a page
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-07-17 13:25:50 +01:00
Benjamin Wang
efc3eb649b
Merge pull request #775 from tjungblu/refactor_freelists
introduce a freelist interface
2024-07-16 09:58:47 +01:00
Thomas Jungblut
62e81c036f introduce a freelist interface
This introduces an interface for the freelist, splits it into two concrete
implementations.

fixes etcd-io#773

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-07-09 10:41:35 +02:00
Benjamin Wang
46d9b10bd7
Merge pull request #790 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.22.0
build(deps): Bump golang.org/x/sys from 0.21.0 to 0.22.0
2024-07-08 18:36:02 +01:00
dependabot[bot]
12835a3580
build(deps): Bump golang.org/x/sys from 0.21.0 to 0.22.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.21.0 to 0.22.0.
- [Commits](https://github.com/golang/sys/compare/v0.21.0...v0.22.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>
2024-07-08 15:00:07 +00:00
Benjamin Wang
3fd94a41d1
Merge pull request #784 from thedtripp/main-go-2024-2963
Bump Go version to 1.22.5: GO-2024-2963 fix
2024-07-04 12:53:39 +01:00
D Tripp
9c4649ce62 Bump Go version to 1.22.5: GO-2024-2963 fix
Signed-off-by: D Tripp <38776199+thedtripp@users.noreply.github.com>
2024-07-04 01:00:19 +00:00
Benjamin Wang
ee58c7e830
Merge pull request #779 from ahrtr/concurent_writeto_20240627
Enhance `TestDB_Concurrent_WriteTo` to check consistent read
2024-07-02 14:11:19 +01:00
Benjamin Wang
d537eff505
Merge pull request #783 from ahrtr/refactor_freelist_20240701
Move method freePages into freelist.go
2024-07-02 12:15:13 +01:00
Benjamin Wang
263e75d059 move method freePages into freelist.go
The motivation is to get all freelist related logic included
in freelist.go. We are going to introduce freelist interface
in the next step.

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-07-02 10:04:14 +01:00
Benjamin Wang
cc78a5a0b9
Merge pull request #750 from ivanvc/add-pr-benchmark
Add PR benchmarking
2024-06-28 10:02:54 +01:00
Manuel Rüger
ac4f75514d
Add benchmark tooling
This adds benchmarking using cmd/bbolt's bench, inspired on what it's
used in kube-state-matrics.

Co-authored-by: Manuel Rüger <manuel@rueg.eu>
Signed-off-by: Ivan Valdes <ivan@vald.es>

wip

Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-06-27 15:26:58 -07:00
Benjamin Wang
848f5fb7e4 Enhance TestDB_Concurrent_WriteTo to check consistent read
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-27 18:31:39 +01:00
Benjamin Wang
53977ba4a8
Merge pull request #777 from tjungblu/freelist_first_array
move array related freelist functions into own file
2024-06-26 18:20:42 +01:00
Benjamin Wang
de78e5deb2
Merge pull request #776 from ahrtr/concurrent_test_pagesize_20240626
Explicitly set the pagesize as 4096 for the concurrent test
2024-06-26 16:36:51 +01:00
Thomas Jungblut
a4a52a2d81 move array related freelist functions into own file
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-06-26 17:21:46 +02:00
Benjamin Wang
607abddc74 explicitly set the pagesize as 4096 for the concurrent test
Different platforms may have different page size, but the test
should be independent to the platforms; so explicitly set the
pagesize as 4096.

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-26 12:37:20 +01:00
Benjamin Wang
065ba27ab6
Merge pull request #774 from andyxning/change_FileMode_formatter_to_s
change FileMode var formatter to %s
2024-06-25 11:04:59 +01:00
Andy Xie
3a7dc77481 change FileMode var formatter to %s
Signed-off-by: Andy Xie <andy.xning@gmail.com>
2024-06-25 11:35:33 +08:00
Benjamin Wang
f8ffaee87a
Merge pull request #772 from ahrtr/verify_freelist_20240620
Add verification on mergeSpans
2024-06-24 10:53:28 +01:00
Benjamin Wang
3c0d2eeff7 Add verification on mergeSpans
There shouldn't have any duplicated free page IDs, or overlap
between the new free page IDs and the existing free page IDs.

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-06-21 16:31:58 +01:00
Benjamin Wang
7b66ea8962
Merge pull request #771 from ArkaSaha30/bump-gofail-0.2.0
Dependency Bump: gofail to v0.2.0
2024-06-20 05:34:16 +01:00
ArkaSaha30
127f59ee18
Dependency Bump: gofail to v0.2.0
This commit will bump gofail to v0.2.0

Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com>
2024-06-19 15:06:32 +05:30
Benjamin Wang
e3513b98e5
Merge pull request #770 from etcd-io/dependabot/go_modules/github.com/spf13/cobra-1.8.1
build(deps): Bump github.com/spf13/cobra from 1.8.0 to 1.8.1
2024-06-18 15:21:12 +01:00
dependabot[bot]
c3662951a6
build(deps): Bump github.com/spf13/cobra from 1.8.0 to 1.8.1
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-17 14:15:33 +00:00
Benjamin Wang
a8b2675b55
Merge pull request #767 from ivanvc/write-bench-results-to-stdout
cmd/bbolt: write bench results to stdout
2024-06-12 09:40:35 +01:00
Ivan Valdes
8704e5ef3a
cmd/bbolt: write bench results to stdout
Signed-off-by: Ivan Valdes <ivan@vald.es>
2024-06-10 17:20:41 -07:00
Benjamin Wang
29ffc0879d
Merge pull request #766 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.21.0
build(deps): Bump golang.org/x/sys from 0.20.0 to 0.21.0
2024-06-10 19:52:31 +01:00
Benjamin Wang
e692f9baff
Merge pull request #764 from ahrtr/enhance_concurrent_test_20240605
Update concurrent test to support multiple operations in each transaction
2024-06-10 18:35:34 +01:00
dependabot[bot]
9fbc1e8688
build(deps): Bump golang.org/x/sys from 0.20.0 to 0.21.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.20.0 to 0.21.0.
- [Commits](https://github.com/golang/sys/compare/v0.20.0...v0.21.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>
2024-06-10 14:16:38 +00:00
Benjamin Wang
5a99eaa6f2
Merge pull request #765 from tjungblu/gobench_out
add gobench output option
2024-06-07 18:02:59 +01:00