1682 Commits

Author SHA1 Message Date
Benjamin Wang
7d5cd63a8f add changelog for 1.3.11
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-08-20 10:33:26 +01:00
Benjamin Wang
e6b4ed7812
Merge pull request #819 from ahrtr/rollback_alloc_20240812
Rollback alloc map: remove all page ids which are allocated by the txid
2024-08-19 15:30:33 +01:00
Benjamin Wang
6791db650b
Merge pull request #821 from henrybear327/go/1.23.0
[main] Bump go toolchain to 1.23.0
2024-08-16 19:21:49 +01:00
Chun-Hung Tseng
a4adf65d6e
Fix linter reported issues
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-08-16 17:14:17 +02:00
Chun-Hung Tseng
406670b70e 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:28:10 +02:00
Chun-Hung Tseng
e52dec6c83 Bump go toolchain to 1.23.0
Reference:
- https://github.com/etcd-io/etcd/issues/18443

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-08-15 00:00:45 +02:00
Benjamin Wang
ee5b5967b6
Merge pull request #818 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.24.0
build(deps): Bump golang.org/x/sys from 0.23.0 to 0.24.0
2024-08-12 18:41:14 +01:00
Benjamin Wang
257eadc054 rollback alloc map: remove all page ids which are allocated by the txid
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
2024-08-12 16:05:21 +01:00
dependabot[bot]
5831e3eb62
build(deps): Bump golang.org/x/sys from 0.23.0 to 0.24.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/sys/compare/v0.23.0...v0.24.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-08-12 14:18:53 +00:00
Benjamin Wang
9e2c06fb00
Merge pull request #814 from henrybear327/go/1.22.6
go version bump from 1.22.5 to 1.22.6
2024-08-08 22:23:45 +01:00
Chun-Hung Tseng
f2559dcecb
go version bump from 1.22.5 to 1.22.6
Reference: https://github.com/etcd-io/etcd/issues/18419
Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-08-08 21:54:03 +02:00
Jeffrey Sica
4272a9c897
Update GitHub runners to use ubuntu-latest since they have nested virt (#811)
* update github runners to use ubuntu-latest since they are 4c and have nested virt

Signed-off-by: Jeffrey Sica <me@jeefy.dev>
2024-08-07 14:53:55 +01:00
Benjamin Wang
f777377924
Merge pull request #804 from tjungblu/duplicated_code
Dedupe Reload/NoSyncReload, prefer empty instead of nil init
2024-08-06 13:04:45 +01:00
Thomas Jungblut
33b71a50af Dedupe Reload/NoSyncReload, prefer empty instead of nil init
Reload and NoSyncReload have duplicated code, this unifies both
for later refactoring.

This PR is split from #786, where the tests found differences on reloading
and nil/empty initializations. Added some more clarifications in godocs
for certain panic behavior and expected returns on the interface.

Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
2024-08-06 11:20:34 +02:00
Benjamin Wang
6e95525b99
Merge pull request #808 from etcd-io/dependabot/github_actions/actions/setup-go-5.0.2
build(deps): Bump actions/setup-go from 5.0.0 to 5.0.2
2024-08-06 08:27:10 +01:00
Benjamin Wang
0b93e57a4f
Merge pull request #810 from etcd-io/dependabot/go_modules/golang.org/x/sys-0.23.0
build(deps): Bump golang.org/x/sys from 0.22.0 to 0.23.0
2024-08-06 07:21:19 +01:00
dependabot[bot]
f950a88148
build(deps): Bump golang.org/x/sys from 0.22.0 to 0.23.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/sys/compare/v0.22.0...v0.23.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-08-05 20:49:58 +00:00
Benjamin Wang
04b9397618
Merge pull request #809 from etcd-io/dependabot/go_modules/golang.org/x/sync-0.8.0
build(deps): Bump golang.org/x/sync from 0.7.0 to 0.8.0
2024-08-05 21:48:56 +01:00
dependabot[bot]
6f8410bbb0
build(deps): Bump actions/setup-go from 5.0.0 to 5.0.2
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 5.0.0 to 5.0.2.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](0c52d547c9...0a12ed9d6a)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-05 20:38:04 +00:00
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