c12e15d91a
Add verification on keys: should be always mononically increasing
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-25 18:00:26 +00:00
c647614b6a
test: fix TestHashKVWhenCompacting: ensure all goroutine finished
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-25 13:30:27 +00:00
f932c00791
Merge pull request #17314 from ahrtr/configure_peer_log_20240124
...
Print error log when creating peer listener failed
2024-01-25 10:05:38 +00:00
d1cc01a574
Merge pull request #17319 from jmhbnz/weekly-dependency-update
...
[2024-01-25] Bump dependencies identified by dependabot
2024-01-25 10:02:42 +00:00
9cfbbb9556
dependency: bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.46.1. to 0.47.0.
...
Signed-off-by: James Blair <mail@jamesblair.net >
2024-01-25 15:26:26 +13:00
3666454826
depdendency: bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.21.0 to 1.22.0.
...
Signed-off-by: James Blair <mail@jamesblair.net >
2024-01-25 15:24:53 +13:00
2edcf60b4f
depdendency: bump go.opentelemetry.io/otel from 1.21.0 to 1.22.0.
...
Signed-off-by: James Blair <mail@jamesblair.net >
2024-01-25 15:19:09 +13:00
362f0a2fcb
print error log when creating peer listener failed
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-24 13:47:30 +00:00
dd0b0526e1
Merge pull request #17284 from ahrtr/test_TestScheduleCompaction_20240119
...
Fix test issue in TestScheduleCompaction
2024-01-20 13:29:04 +00:00
30b242f800
Revert "add test cases of duplicate keys in one tx."
...
This reverts commit 8d29b245a3
.
Signed-off-by: Siyuan Zhang <sizhang@google.com >
2024-01-19 08:58:48 -08:00
93afd8e430
Revert "add key dedupe when a write buffer writeback to an empty read buffer bucket."
...
This reverts commit 971a4f57cc
.
Signed-off-by: Siyuan Zhang <sizhang@google.com >
2024-01-19 08:58:27 -08:00
82562abc3c
Fix test issue in TestScheduleCompaction
...
It always reuse the same memory space. Each next iteration
will always overwrite previous data
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-19 15:29:51 +00:00
7a7d4684df
depdendency: bump github.com/prometheus/common from 0.45.0 to 0.46.0.
...
Signed-off-by: James Blair <mail@jamesblair.net >
2024-01-17 22:28:43 +13:00
690916f018
replace CreateBucket with CreateBucketIfNotExists
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-16 09:40:20 +00:00
4bc55e5208
Merge pull request #17204 from rahulbapumore/branch1
...
mvcc: Printing etcd backend database related metrics inside scheduleCompaction function
2024-01-15 15:37:08 +00:00
21bbc82710
mvcc: Printing etcd backend database related metrics inside
...
scheduleCompaction function
To improve traceability of backend database usage, Added below parameter
related to backend database usage metrics inside scheduledCompaction
function.
current-db-size-bytes
current-db-size
current-db-size-in-use-bytes
current-db-size-in-use
Signed-off-by: Rahul More <rahulbapumore@gmail.com >
2024-01-15 17:36:38 +05:30
9ded10ec76
Merge pull request #17237 from ahrtr/bbolt_logger_20240112
...
Specify logger for bbolt
2024-01-13 11:03:14 +00:00
ed994248e0
Merge pull request #17228 from siyuanfoundation/txBuf1
...
Fix tx buffer inconsistency if there are duplicate keys in one tx.
2024-01-12 18:34:35 +00:00
cfbf672b3c
specify logger for bbolt
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-12 16:38:18 +00:00
40f22e9319
Merge pull request #17176 from YaoC/fix-learner-metric
...
server: fix learner metric incorrect issue
2024-01-12 17:37:46 +01:00
cf648e8503
bump raft to v3.6.0-alpha.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-12 15:30:11 +00:00
f2ada58144
bump bbolt to 1.4.0-alpha.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-12 15:27:48 +00:00
f7ab7adf29
server: fix learner metric incorrect issue
...
Signed-off-by: YaoC <chengyao09@hotmail.com >
2024-01-12 09:36:33 +00:00
971a4f57cc
add key dedupe when a write buffer writeback to an empty read buffer bucket.
...
Signed-off-by: Siyuan Zhang <sizhang@google.com >
2024-01-11 11:31:09 -08:00
8d29b245a3
add test cases of duplicate keys in one tx.
...
Signed-off-by: Siyuan Zhang <sizhang@google.com >
2024-01-11 11:31:03 -08:00
b3bf59a355
Merge pull request #17195 from siyuanfoundation/txBuf1
...
Fix delete inconsistencies in read buffer
2024-01-11 08:21:47 +00:00
db61c9695d
commit bbolt transaction if there is any pending deleting operations
...
Signed-off-by: Siyuan Zhang <sizhang@google.com >
2024-01-10 09:33:21 -08:00
b3a5307640
add tests to test tx delete consistency.
...
Signed-off-by: Siyuan Zhang <sizhang@google.com >
2024-01-10 09:33:13 -08:00
a73078928d
Merge pull request #17219 from devincd/fix-usage
...
Fix Struct Config has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation.
2024-01-10 09:47:05 +00:00
28f4c6fef6
dependency: bump github.com/grpc-ecosystem/grpc-gateway/v2 from 2.18.1 to 2.19.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com >
2024-01-09 16:26:47 +01:00
98646057d6
dependency: bump golang.org/x/sys from 0.15.0 to 0.16.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com >
2024-01-09 16:04:19 +01:00
931687f87e
fix Struct Config has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation.
...
Signed-off-by: devincd <505259926@qq.com >
2024-01-09 17:42:59 +08:00
a2eb17c809
Merge pull request #17199 from serathius/dont-flock
...
Don't flock snapshot files
2024-01-08 15:03:29 +01:00
970abc211e
Merge pull request #17152 from serathius/logs-recover-backend
...
Improve logs around recovering snapshot backend and add an e2e test
2024-01-05 15:38:58 +01:00
3471ef133d
Add an e2e test and robustness failpoint around recovering from snapshot backend
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2024-01-04 15:25:24 +01:00
7f8346b3f2
Don't flock snapshot files
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2024-01-04 14:53:44 +01:00
553d88cfd3
bump github.com/prometheus/client_golang to v1.18.0
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2024-01-02 16:52:42 +00:00
c21b966478
dependency: bump google.golang.org/protobuf from 1.31.0 to 1.32.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com >
2023-12-27 17:27:40 +01:00
0c55ed7464
build(deps): bump google.golang.org/grpc from 1.59.0 to 1.60.1
...
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go ) from 1.59.0 to 1.60.1.
- [Release notes](https://github.com/grpc/grpc-go/releases )
- [Commits](https://github.com/grpc/grpc-go/compare/v1.59.0...v1.60.1 )
---
updated-dependencies:
- dependency-name: google.golang.org/grpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-21 19:07:47 +00:00
362477b077
dependency: bump golang.org/x/crypto from 0.16.0 to 0.17.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com >
2023-12-21 18:19:10 +01:00
d39d86a214
Improve logs around recovering from snapshot backend
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-12-20 16:26:27 +01:00
1e8d66ef95
Add beforeOpenSnapshotBackend failpoint
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-12-20 15:36:54 +01:00
67f17166bf
Safeguard lease operations by double checking the leadership
...
1. ignore old leader's leases revoking request
2. double check current member's leadership before perform lease renew request
3. etcdserve: ensure current member's leadership before performing lease checkpoint request
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2023-12-15 17:53:36 +00:00
36b2523669
added some log messages for better diagnosis
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2023-12-13 18:43:22 +00:00
902436eee5
Merge pull request #17078 from overvenus/ignore-message-mismatch
...
server: ignore raft messages if member id mismatch
2023-12-07 16:50:08 +01:00
9f82390ae9
server: refine TestProcessIgnoreMismatchMessage
...
Signed-off-by: Neil Shen <overvenus@gmail.com >
2023-12-07 20:32:43 +08:00
fb769c4306
server: ignore raft messages if member id mismatch
...
Ignore Raft messages when the `To` field mismatches the local member ID.
In cases where incorrect Raft messages are dispatched, potentially due
to a malfunctioning switch, this proactive check prevents panics,
such as "tocommit is out of range".
Signed-off-by: Neil Shen <overvenus@gmail.com >
2023-12-07 11:57:45 +08:00
235ec793fd
dependency: bump golang.org/x/net from 0.18.0 to 0.19.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com >
2023-12-06 13:44:54 +01:00
9a6eeb5f7e
Rollback the pull/14080: which fixed the potential deadlock
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2023-12-05 10:51:38 +00:00
8578e07117
server: disable redirects in peer communication
...
Disable following redirects from peer HTTP communication on the client's side.
Etcd server may run into SSRF (Server-side request forgery) when adding a new
member. If users provide a malicious peer URL, the existing etcd members may be
redirected to another unexpected internal URL when getting the new member's
version.
Signed-off-by: Ivan Valdes <ivan@vald.es >
2023-12-04 13:53:28 -08:00