Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
c8f01b1
fix the concurrent bug of KvIdCache
Dec 7, 2023
cf90eaf
fix the bug of do not report the error which occured in action of get…
Dec 12, 2023
9861c09
fix the bug of do not report the error which occured in action of get…
Dec 12, 2023
7bead9e
resolve conflicts in master
tornado-ssy Jan 8, 2024
c07decf
store kv by local storage (#309)
Dantlian Jan 8, 2024
caa96dc
store kv: readWriteLock optimization (#310)
Dantlian Jan 11, 2024
92aee20
store kv: add test (#313)
Dantlian Jan 17, 2024
77a402f
[fix] change the dependecy of etcdadpt to consisient with the transfe…
tornado-ssy Mar 29, 2024
0a30c3f
[sync] merge master to dev: 1,[fix] cancel the depency between health…
tornado-ssy Mar 29, 2024
49b7c86
Wait时间即将耗尽时,忽略超时报错,降低误报错概率 (#325)
humingcheng May 11, 2025
9339e45
Update db_schema.go ListKVRequest key的检验长度修改为256 (#326)
holden-cpu Sep 3, 2025
14ed5c0
模糊匹配新增kvIdFuzzyCache,查询时缓存,增删改时直接整个失效,底层kvDoc直接复用 (#327)
Wanghb1 Oct 10, 2025
b2e7cbb
批量删除配置参数校验 (#329)
hzp-excellent Dec 11, 2025
ac13453
修复模糊匹配缓存数据设置错误
humingcheng Dec 17, 2025
10d51d6
添加测试用例
humingcheng Dec 17, 2025
51fc14e
修复模糊匹配缓存数据设置错误
chengyouling Dec 17, 2025
6202423
Revert "修复模糊匹配缓存数据设置错误" (#331)
humingcheng Jan 5, 2026
0e0acfd
Revert "模糊匹配新增kvIdFuzzyCache,查询时缓存,增删改时直接整个失效,底层kvDoc直接复用 (#327)" (#332)
humingcheng Jan 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/etcd_storage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v1
- name: UT for etcd
run: |
time docker run -d -p 2379:2379 --name etcd quay.io/coreos/etcd etcd -name etcd --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379
time docker run -d -p 2379:2379 --name etcd quay.io/coreos/etcd:v3.5.15 etcd -name etcd --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379
while ! nc -z 127.0.0.1 2379; do
sleep 1
done
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.51.2
version: v1.55.2
args: --enable gofmt,gocyclo,goimports,dupl,gosec --timeout 5m --skip-dirs=examples,test --skip-files=.*_test.go$
static-checks:
runs-on: ubuntu-latest
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/local_storage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Merge check for local
on: [push, pull_request]
jobs:
etcd-with-localstorage:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.18
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: UT for etcd with local storage
run: |
time docker run -d -p 2379:2379 --name etcd quay.io/coreos/etcd:v3.5.15 etcd -name etcd --advertise-client-urls http://0.0.0.0:2379 --listen-client-urls http://0.0.0.0:2379
while ! nc -z 127.0.0.1 2379; do
sleep 1
done
export TEST_DB_KIND=etcd_with_localstorage
export TEST_DB_URI=127.0.0.1:2379
export TEST_KVS_ROOT_PATH=/data/kvs
sudo rm -rf /data/kvs
sudo time go test $(go list ./... | grep -v mongo | grep -v third_party | grep -v examples)
1 change: 1 addition & 0 deletions cmd/kieserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import (

//storage
_ "github.com/apache/servicecomb-kie/server/datasource/etcd"
_ "github.com/apache/servicecomb-kie/server/datasource/local"
_ "github.com/apache/servicecomb-kie/server/datasource/mongo"

//quota management
Expand Down
3 changes: 3 additions & 0 deletions examples/dev/conf/chassis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ servicecomb:
protocols:
rest:
listenAddress: 127.0.0.1:30110
metrics:
enable: true
interval: 10s
match:
rateLimitPolicy: |
matches:
Expand Down
5 changes: 4 additions & 1 deletion examples/dev/kie-conf.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
db:
# kind can be mongo, etcd, embedded_etcd
# kind can be mongo, etcd, embedded_etcd, embedded_etcd_with_localstorage, etcd_with_localstorage
kind: embedded_etcd

# localFilePath: is the root path to store local kv files
# uri: http://127.0.0.1:2379
# uri is the db endpoints list
# kind=mongo, then is the mongodb cluster's uri, e.g. mongodb://127.0.0.1:27017/kie
# kind=etcd, then is the remote etcd server's advertise-client-urls, e.g. http://127.0.0.1:2379
Expand Down
38 changes: 18 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
module github.com/apache/servicecomb-kie

require (
github.com/apache/servicecomb-service-center/eventbase v0.0.0-20220120070230-26997eb876ca
github.com/apache/servicecomb-service-center/eventbase v0.0.0-20240328150344-01abe81dc5d0
github.com/emicklei/go-restful v2.15.1-0.20220703112237-d9c71e118c95+incompatible
github.com/go-chassis/cari v0.7.1-0.20220815112157-2c62cc5ae1a3
github.com/go-chassis/cari v0.9.1-0.20240328115504-88da93faaca7
github.com/go-chassis/etcdadpt v0.5.3-0.20240328092602-984e34b756fe
github.com/go-chassis/foundation v0.4.0
github.com/go-chassis/go-archaius v1.5.2-0.20210301074935-e4694f6b077b
github.com/go-chassis/go-archaius v1.5.6
github.com/go-chassis/go-chassis/v2 v2.7.1
github.com/go-chassis/openlog v1.1.3
github.com/go-chassis/seclog v1.3.1-0.20210917082355-52c40864f240
github.com/gofrs/uuid v4.0.0+incompatible
github.com/hashicorp/serf v0.9.5
github.com/little-cui/etcdadpt v0.3.2
github.com/patrickmn/go-cache v2.1.0+incompatible
github.com/stretchr/testify v1.7.1
github.com/stretchr/testify v1.7.2
github.com/urfave/cli v1.22.4
go.etcd.io/etcd/api/v3 v3.5.0
go.etcd.io/etcd/api/v3 v3.5.4
go.mongodb.org/mongo-driver v1.5.1
gopkg.in/yaml.v2 v2.4.0
)
Expand All @@ -31,9 +31,7 @@ require (
github.com/cenkalti/backoff/v4 v4.1.1 // indirect
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/coreos/go-semver v0.3.0 // indirect
github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e // indirect
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/deckarep/golang-set v1.7.1 // indirect
Expand All @@ -42,7 +40,7 @@ require (
github.com/form3tech-oss/jwt-go v3.2.3+incompatible // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/go-chassis/go-restful-swagger20 v1.0.4-0.20220704025524-9243cbee26b7 // indirect
github.com/go-chassis/kie-client v0.1.1-0.20210926011742-97eed4281056 // indirect
github.com/go-chassis/kie-client v0.2.0 // indirect
github.com/go-chassis/sc-client v0.6.1-0.20220728072125-dacdd0c834bf // indirect
github.com/go-playground/locales v0.13.0 // indirect
github.com/go-playground/universal-translator v0.17.0 // indirect
Expand Down Expand Up @@ -105,12 +103,12 @@ require (
github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
go.etcd.io/bbolt v1.3.6 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.0 // indirect
go.etcd.io/etcd/client/v2 v2.305.0 // indirect
go.etcd.io/etcd/client/v3 v3.5.0 // indirect
go.etcd.io/etcd/pkg/v3 v3.5.0 // indirect
go.etcd.io/etcd/raft/v3 v3.5.0 // indirect
go.etcd.io/etcd/server/v3 v3.5.0 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.4 // indirect
go.etcd.io/etcd/client/v2 v2.305.4 // indirect
go.etcd.io/etcd/client/v3 v3.5.4 // indirect
go.etcd.io/etcd/pkg/v3 v3.5.4 // indirect
go.etcd.io/etcd/raft/v3 v3.5.4 // indirect
go.etcd.io/etcd/server/v3 v3.5.4 // indirect
go.opentelemetry.io/contrib v0.20.0 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.20.0 // indirect
go.opentelemetry.io/otel v0.20.0 // indirect
Expand All @@ -124,18 +122,18 @@ require (
go.uber.org/atomic v1.7.0 // indirect
go.uber.org/multierr v1.6.0 // indirect
go.uber.org/zap v1.17.0 // indirect
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect
golang.org/x/net v0.0.0-20210525063256-abc453219eb5 // indirect
golang.org/x/crypto v0.0.0-20220131195533-30dcbda58838 // indirect
golang.org/x/net v0.7.0 // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/text v0.7.0 // indirect
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba // indirect
google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c // indirect
google.golang.org/grpc v1.40.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apimachinery v0.19.5 // indirect
k8s.io/client-go v0.19.5 // indirect
k8s.io/utils v0.0.0-20200729134348-d5654de09c73 // indirect
Expand Down
Loading