instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
alibaba__nacos__12764
alibaba/nacos
12,764
defect
2b178bec38a24664269ce92db4684abfee6eeb3c
a077282dee35bfd651de7a83f5402899929635ec
[ISSUE#12748] Support custom client configuration timeout.
## What is the purpose of the change its closes #12748 ## Brief changelog XX ## Verifying this change XXXX Follow this checklist to help us incorporate your contribution quickly and easily: * [x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial...
diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigHttpClientManager.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigHttpClientManager.java index 9afc49cfcf1..86de1116312 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/ConfigHttpClientManager.java ...
1
1
1
[{"id": "G0", "claim": "The pull request should add related unit tests for the new read-timeout parameter and update the related documentation, since it introduces a new configuration parameter (NACOS.READ.TIMEOUT).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alibaba__nacos__12942
alibaba/nacos
12,942
defect
08fac169fa27f952b0a43d347b6a2b2f92b6da9a
01b1f32ec244b5b1c1d5f4b3353bfd48341ea50d
[ISSUE #12925] Optimize configuration history comparison and rollback.
## What is the purpose of the change resolve #12925 ## Brief changelog Add API-`getConfigHistoryInfoPair` : Query history configuration information details and version changes, including the original version and the changed version. 新增 API-`getConfigHistoryInfoPair`: 查询历史配置信息详情及版本变更,包括原始版本和变更后的版本。 ## ...
diff --git a/config/src/main/java/com/alibaba/nacos/config/server/controller/HistoryController.java b/config/src/main/java/com/alibaba/nacos/config/server/controller/HistoryController.java index 81ea3984d36..3de11b85cab 100644 --- a/config/src/main/java/com/alibaba/nacos/config/server/controller/HistoryController.java ...
7
6
3
[{"id": "G0", "claim": "The SELECT constant in the new OperationType enum makes no sense and should be deleted.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Now that an OperationType enum exists, all hard-coded 'D'/'I'/'U' op-type literals should be re...
null
alibaba__nacos__13008
alibaba/nacos
13,008
defect
14becb80bea6b5e548600a216f820d06e8e9e1b9
abdc5ce0a271211eb28600b92181acfebeb9c18f
Return all subscriber when ip or port is null.
Add a new param to support return all subscriber when ip or port is null.
diff --git a/naming/src/main/java/com/alibaba/nacos/naming/controllers/v2/ClientInfoControllerV2.java b/naming/src/main/java/com/alibaba/nacos/naming/controllers/v2/ClientInfoControllerV2.java index 7625a170ed7..c8dc5634451 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/controllers/v2/ClientInfoControllerV2...
2
1
1
[{"id": "G0", "claim": "Add a new request parameter to let callers judge whether to filter and return all subscribers when ip or port is null.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add unit tests covering the changed null-filtering behaviour of th...
null
alibaba__nacos__13390
alibaba/nacos
13,390
defect
acb967b0632087163510f0e8c691a8f238065259
d0fbec6c05ea5e30beee9f24e82329c07b328c0c
[ISSUE #13273]: support create cluseter client use nacos.remote.client.grpc config
Please do not create a Pull Request without creating an issue first. ## What is the purpose of the change https://github.com/alibaba/nacos/issues/13273 ## Brief changelog RpcClientFactory新增方法支持GrpcClientConfig构建GrpcClusterClient,ClusterRpcClientProxy构建GrpcClient时通过properties构建GrpcClientConfig,然后再t通过RpcClien...
diff --git a/common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClientFactory.java b/common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClientFactory.java index 31915c632b6..64e6dccc78c 100644 --- a/common/src/main/java/com/alibaba/nacos/common/remote/client/RpcClientFactory.java +++ b/common/sr...
4
1
1
[{"id": "G0", "claim": "The refactor to GrpcClientConfig in ClusterRpcClientProxy.buildRpcClient may not carry the original TLS configuration (certificates, keys) into the new path, which could leave cluster client communication unencrypted or fail when the server requires TLS; the reviewer asks to confirm GrpcClientCo...
null
alibaba__nacos__13459
alibaba/nacos
13,459
defect
c5aebb0246f95c2912a3d9a1eb7f3119d3fa5979
97e5aa5ef0719f369bffe7386c8fbb7f09b56bba
[ISSUE#13449] Fix service pagination
Please do not create a Pull Request without creating an issue first. ## What is the purpose of the change fix #13449 fix service pagination in `CatalogServiceV2Impl.java` and add test. ## Brief changelog fix service pagination in `CatalogServiceV2Impl.java` and add revelant test. ## Verifying this chang...
diff --git a/naming/src/main/java/com/alibaba/nacos/naming/core/CatalogServiceV2Impl.java b/naming/src/main/java/com/alibaba/nacos/naming/core/CatalogServiceV2Impl.java index f652b6d3979..f616ec3ff0e 100644 --- a/naming/src/main/java/com/alibaba/nacos/naming/core/CatalogServiceV2Impl.java +++ b/naming/src/main/java/com...
12
1
0
[{"id": "G0", "claim": "The new testListService test should additionally assert the cluster-map content of the returned ServiceView (e.g. assertEquals(1, serviceView.getClusterMap().size(), ...)) so the paginated data content is verified.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "intr...
null
alibaba__nacos__14847
alibaba/nacos
14,847
defect
5e0ab608db644bdd42385c59083139f1f949e755
745b5a5b48f4100d826f01ffede69aac0cde8d05
feat(auth,ai) support auth ai resource subtype parse
Please do not create a Pull Request without creating an issue first. ## What is the purpose of the change support auth ai resource subtype parse ## Brief changelog support auth ai resource subtype parse ## Verifying this change support auth ai resource subtype parse Follow this checklist to help us...
diff --git a/auth/src/main/java/com/alibaba/nacos/auth/parser/grpc/AiGrpcResourceParser.java b/auth/src/main/java/com/alibaba/nacos/auth/parser/grpc/AiGrpcResourceParser.java index b26b08b42c0..de4baa56c02 100644 --- a/auth/src/main/java/com/alibaba/nacos/auth/parser/grpc/AiGrpcResourceParser.java +++ b/auth/src/main/j...
1
1
0
[{"id": "G0", "claim": "Don't change the indentation of Constants.java — the PR should not add trailing whitespace in place of the previously blank lines.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
alibaba__nacos__8162
alibaba/nacos
8,162
defect
b9dfe3ff9b59626fc6fb0554f8371acf1ed11475
0350ea2b36689ccc3087f41cbf7f95e52a9d9355
[ISSUE #8153]Fix AutoExpireCache NPE
Please do not create a Pull Request without creating an issue first. ## What is the purpose of the change Close #8153 ## Brief changelog XX ## Verifying this change XXXX Follow this checklist to help us incorporate your contribution quickly and easily: * [ ] Make sure there is a Github issue fi...
diff --git a/common/src/main/java/com/alibaba/nacos/common/cache/decorators/AutoExpireCache.java b/common/src/main/java/com/alibaba/nacos/common/cache/decorators/AutoExpireCache.java index c8884c87284..b9801bf8ec9 100644 --- a/common/src/main/java/com/alibaba/nacos/common/cache/decorators/AutoExpireCache.java +++ b/com...
2
2
2
[{"id": "G0", "claim": "Adding synchronized to get cannot solve the NPE because the NPE occurs inside the isExpire method, so the problem remains even with the lock.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G2", "claim": "The pull request's changes need a un...
null
alibaba__pairec__182
alibaba/pairec
182
defect
4aa76dc5f57273a0287205fe06519648f7d65be0
707c9d9518b69c7826b11fa2bd06f1e32e5f54f3
feat: add ConditionSort to Sort module
## Summary - Add ConditionSort that routes to different sort strategies based on user attributes - Follow the same pattern as ConditionFilter - callback 增加了FeaturesMap 类型,解析出具体的类型。 否则复杂类型通过 callback , 原先的 json 反序列化变成了 []any or map[string]any, 导致 构造EasyRecBuilder 时类型不匹配,实际没有传递到模型侧。 ## Changes - `recconf/recc...
diff --git a/recconf/recconf.go b/recconf/recconf.go index dd79f9a7..4df89ecc 100644 --- a/recconf/recconf.go +++ b/recconf/recconf.go @@ -836,6 +836,13 @@ type SortConfig struct { Debug bool RemainItem bool BoostScoreConditionsFilterAll bool + ConditionSortConfs ...
1
1
1
[{"id": "G0", "claim": "In CloneWithConfig the cloneInstances map is a non-thread-safe map read and written by concurrent goroutines (e.g. concurrent A/B-testing calls), which may cause a data race or panic; it should be protected with sync.RWMutex or sync.Map.", "category": "security", "verdict": "supported", "priorit...
null
alibaba__pairec__185
alibaba/pairec
185
defect
c0fb8ad9bb84057f7cad4522e4ea39848324795e
95e72a110be3eead2d8503f17b81a6fa8e5508cd
feat: add timestamp() function to expr feature generation
## Summary - 在 expr 特征生成表达式中新增 `timestamp()` 内置函数,支持生成当前时间戳 - `timestamp()` 返回秒级 unix 时间戳,`timestamp("ms")` 返回毫秒级 unix 时间戳 - govaluate (`expression` normalizer) 和 expr-lang (`expr` normalizer) 两种引擎均支持 ## Changes - `utils/govaluate_functions.go`: 在 functions map 中新增 `timestamp` 函数,接受可选参数区分秒/毫秒 - `service/feature/normal...
diff --git a/go.mod b/go.mod index a5b13e10..fdc158ac 100644 --- a/go.mod +++ b/go.mod @@ -43,7 +43,7 @@ require ( require ( fortio.org/assert v1.2.1 github.com/alibabacloud-go/opensearch-util v1.0.1 - github.com/aliyun/aliyun-pai-featurestore-go-sdk/v2 v2.4.0 + github.com/aliyun/aliyun-pai-featurestore-go-sdk/v2 ...
2
2
2
[{"id": "G0", "claim": "In TestExpressionFunctionNormalizer the test should not call time.Now() separately for the expected value and the assertion — the elapsed time between the calls can make assert.Equal fail, so save one now at the start and derive both the seconds and milliseconds expectations from it.", "category...
null
alibaba__pairec__43
alibaba/pairec
43
defect
9f5fd8b3fb61a09d7f23ec4f47fb0bbb425dfde0
c0d3c104ce29547696fc692661030415d6cb8237
Add PriorityAdjustCountFilterV2
1. 增加优先级数量调整过滤 V2 版本,对于在多个召回重复出现的 Item,尽量使其能够保留下来 2. 支持在实验参数中修改优先级数量调整过滤配置 3. 增加特征加载指标
diff --git a/filter/filter.go b/filter/filter.go index 8a8489d9..38dc98db 100644 --- a/filter/filter.go +++ b/filter/filter.go @@ -33,6 +33,11 @@ type IFilter interface { Filter(filterData *FilterData) error } +type ICloneFilter interface { + CloneWithConfig(params map[string]interface{}) IFilter + GetFilterName()...
1
1
0
[{"id": "G0", "claim": "The new filterInfoLogV2 helper duplicates filterInfoLog and never uses its filterName parameter, so the filter name is not logged; the reviewer asks whether it would not be simpler to just change the existing filterInfoLog instead.", "category": "maintainability", "verdict": "supported", "priori...
null
alibaba__rax__1355
alibaba/rax
1,355
defect
e24b831972e9d83d2d2eed2eb0678da1d5b176ca
2e2e31bf9b8342f81ffd0503a8f2fc8f89b9a33d
print warning when loop elements without key property
Closed #1327 This PR is based on #1354, please merge the previous PR before merging this
diff --git a/packages/rax-server-renderer/src/__tests__/renderToString.js b/packages/rax-server-renderer/src/__tests__/renderToString.js index fcb5c4f62e..042efffd9d 100644 --- a/packages/rax-server-renderer/src/__tests__/renderToString.js +++ b/packages/rax-server-renderer/src/__tests__/renderToString.js @@ -132,7 +13...
6
6
0
[{"id": "G0", "claim": "rax core should not depend on an external package (the new import of rax-is-valid-element/src in createElement.js).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The validate functionality should be extracted into its own file in...
null
alibaba__sentinel-golang__102
alibaba/sentinel-golang
102
defect
92bdc644bcc0a5ab24c003f39d3d7c08fdb164c0
7c586fc47f7124d6ce95945e9fb6a5b360e0e5a8
Polish gRPC-go adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com> <!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ###...
diff --git a/adapter/grpc/client.go b/adapter/grpc/client.go index 9fc1ffcbb..bfeebed8a 100644 --- a/adapter/grpc/client.go +++ b/adapter/grpc/client.go @@ -8,8 +8,8 @@ import ( "google.golang.org/grpc" ) -// SentinelUnaryClientIntercept returns new grpc.UnaryClientInterceptor instance -func SentinelUnaryClientInt...
1
1
0
[{"id": "G0", "claim": "The doc comment on NewStreamClientInterceptor should be kept consistent with the style of \"// NewUnaryClientInterceptor creates the unary client interceptor wrapped with Sentinel entry.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__11
alibaba/sentinel-golang
11
defect
8ef783eb05d6342407b44386fa2bd2698818cf2d
079e8ce57eaa079e4f7e895de42ac84e8a633b15
Add basic logging abstraction
### Describe what this PR does / why we need it For MVP, I think we could wrap the SDK log and provide the standard log interface. In future, we can upgrade with minimal cost. ### Does this pull request fix one issue? Fixes #10 ### Describe how you did it ### Describe how to verify it ### Special not...
diff --git a/.gitignore b/.gitignore index 787c458c9..91849b355 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,9 @@ *.iml out/ +# VS code +.vscode + # File-based project format *.iws diff --git a/core/logging.go b/core/logging.go deleted file mode 100644 index fa1b67b81..000000000 --- a/core/logging.go +++...
1
1
0
[{"id": "G0", "claim": ".gitignore already excludes .vscode, so the pull request's newly added .vscode entry is a duplicate.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__152
alibaba/sentinel-golang
152
defect
112f169a581710130d8e95e8542471671aa79f79
512a78ed75fb1d9b4ddcab984d862bab9360e98f
Polish code of circuit breaker module
Signed-off-by: Eric Zhao <sczyh16@gmail.com> <!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ###...
diff --git a/core/circuitbreaker/circuit_breaker.go b/core/circuitbreaker/circuit_breaker.go index ae82aada3..aa1dc061c 100644 --- a/core/circuitbreaker/circuit_breaker.go +++ b/core/circuitbreaker/circuit_breaker.go @@ -49,11 +49,13 @@ func (s *State) get() State { statePtr := (*int32)(unsafe.Pointer(s)) return St...
2
2
1
[{"id": "G0", "claim": "The newly added StateChangeListener doc comments contain typos: a duplicated \"when when\" in the OnTransformToClosed, OnTransformToOpen and OnTransformToHalfOpen comments, and the HalfOpen comment wrongly names the method OnTransformToOpen.", "category": "documentation", "verdict": "supported",...
null
alibaba__sentinel-golang__153
alibaba/sentinel-golang
153
defect
112f169a581710130d8e95e8542471671aa79f79
963b3749399f01c5dcb5909164bcb2ef95e630ea
Polish api.Tracer with new error tracing mechanism
Signed-off-by: Eric Zhao <sczyh16@gmail.com> <!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ###...
diff --git a/adapter/dubbo/consumer_filter.go b/adapter/dubbo/consumer_filter.go index 3c34cedaa..f574a95b8 100644 --- a/adapter/dubbo/consumer_filter.go +++ b/adapter/dubbo/consumer_filter.go @@ -44,12 +44,12 @@ func (d *consumerFilter) Invoke(ctx context.Context, invoker protocol.Invoker, i func (d *consumerFilter) ...
1
1
0
[{"id": "G0", "claim": "If nothing else uses the traceErrorToNode function, it should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__155
alibaba/sentinel-golang
155
defect
46b892aae907f2667cc80fd624ded482aeba10f8
b272bcce00394241e5b7c4e55cf9d64a9e113591
Improve pooling and time retrieval mechanism to optimize performance
1. pool EntryOption 2. optimize EntryContext pool 3. optimize time.Now ### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### D...
diff --git a/api/api.go b/api/api.go index ecaade3ba..e832fb948 100644 --- a/api/api.go +++ b/api/api.go @@ -1,9 +1,25 @@ package api import ( + "sync" + "github.com/alibaba/sentinel-golang/core/base" ) +var entryOptsPool = sync.Pool{ + New: func() interface{} { + return &EntryOptions{ + resourceType: base....
2
2
1
[{"id": "G0", "claim": "Add a yaml struct tag like `yaml:\"useTimeTicker\"` to the new UseTimeTicker config field (which otherwise would not be deserialized from YAML config files).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the config fi...
null
alibaba__sentinel-golang__170
alibaba/sentinel-golang
170
defect
36da212ccb8ceed172d4c23df9127dbd03ef12c6
7880b62707e764f1f09f8b4aaa27d36d6842bc01
enhance #169: integrate linters into CI
# Describe what this PR does / why we need it Integrate golang linters (**govet**, **staticcheck**, **ineffassign** and **misspell**) into CI. Those linters is commonly used I think and you can find more available ones [here](https://golangci-lint.run/usage/linters/). ### Does this pull request fix one issue? ...
diff --git a/.travis.yml b/.travis.yml index b764934c1..3d840ce86 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,29 @@ language: go dist: xenial -sudo: required go: - 1.12.x - 1.13.x - 1.14.x + env: - GO111MODULE=on -before_install: go get golang.org/x/tools/cmd/goimports +before_install: ...
2
1
0
[{"id": "G0", "claim": "The lint step should run before `go test` instead of after it.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G4", "claim": "The `currentValue < 0` check looks like a bug: `currentValue` was uint64, so the comparison could never be true.", "cate...
null
alibaba__sentinel-golang__171
alibaba/sentinel-golang
171
defect
36da212ccb8ceed172d4c23df9127dbd03ef12c6
9dc81f1f85469b20981de6ca33ce4dc2a7cd2d69
Polish the circuit breaker code.
### Describe what this PR does / why we need it Refine the way to instance circuit breaker rule. 1. Using unified function `circuitbreaker.NewRule` to instance circuit rule instead of three function: `circuitbreaker.NewSlowRtRule、circuitbreaker.NewErrorRatioRule、circuitbreaker.NewErrorCountRule` 2. Using options ...
diff --git a/api/slot_chain.go b/api/slot_chain.go index 3d8a5fc11..113662388 100644 --- a/api/slot_chain.go +++ b/api/slot_chain.go @@ -30,7 +30,7 @@ func BuildDefaultSlotChain() *base.SlotChain { sc.AddStatPrepareSlotLast(&stat.StatNodePrepareSlot{}) sc.AddRuleCheckSlotLast(&system.SystemAdaptiveSlot{}) sc.AddR...
2
2
0
[{"id": "G0", "claim": "The comment added on stat_slot.go reads \"MetricStatSlot must be filled into slot chain is circuit breaker is alive\", which is garbled and does not convey what the line means.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
alibaba__sentinel-golang__176
alibaba/sentinel-golang
176
defect
e4bd5dc806c9e52af59b76238e042e33a249b6e4
ea41dfd8e86a403d33f9bf5c7414d568f9098b50
Optimize load rules for max size rule
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/core/circuitbreaker/rule_manager.go b/core/circuitbreaker/rule_manager.go index 2a61c86c5..f351a16f8 100644 --- a/core/circuitbreaker/rule_manager.go +++ b/core/circuitbreaker/rule_manager.go @@ -6,6 +6,7 @@ import ( "sync" "github.com/alibaba/sentinel-golang/logging" + "github.com/alibaba/sentinel-g...
3
3
1
[{"id": "G0", "claim": "The new tests should call rand.Seed() first, otherwise rand.Int() will generate the same pseudo-random sequence on every run.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The per-update timing log in hotspot onRuleUpdate sh...
null
alibaba__sentinel-golang__179
alibaba/sentinel-golang
179
defect
d3f4832f064deff1a9bd4a7b1aa10c5ba8ee0198
1ae6f67d26ae9825424e258c87314dc4bd6a344a
Refactor consul datasource and polish related code
### Describe what this PR does / why we need it 1. refactor consul datasource 2. add example for datasource: etcdv3, consul ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### D...
diff --git a/example/datasource/consul/main.go b/example/datasource/consul/main.go new file mode 100644 index 000000000..85a5130eb --- /dev/null +++ b/example/datasource/consul/main.go @@ -0,0 +1,52 @@ +package main + +import ( + "bufio" + "fmt" + "os" + + "github.com/alibaba/sentinel-golang/ext/datasource" + "github.c...
4
2
1
[{"id": "G0", "claim": "Returning an error when the KV pair does not exist may be wrong, since non-existence may not actually be an error.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The example could be made a real demo (with sentinel.Entry(xxx)) so ...
null
alibaba__sentinel-golang__190
alibaba/sentinel-golang
190
defect
1f1c71b99daafc10ebca124749047d28ed6904b0
8d0b2f5764f4d2ed89973fe53c25d627cc5c8719
[177] Add "warm-up" control behavior support
### Describe what this PR does / why we need it Add "warm-up" control behavior support ### Does this pull request fix one issue? https://github.com/alibaba/sentinel-golang/issues/177 ### Describe how you did it ### Describe how to verify it run qps_warm_up_example.go ### Special notes for reviews
diff --git a/core/base/stat.go b/core/base/stat.go index e1828d80b..bd9404d8a 100644 --- a/core/base/stat.go +++ b/core/base/stat.go @@ -23,6 +23,7 @@ const ( type ReadStat interface { GetQPS(event MetricEvent) float64 + GetPreviousQPS(event MetricEvent) float64 GetSum(event MetricEvent) int64 MinRT() float6...
8
7
4
[{"id": "G0", "claim": "The new constant DEFAULT_COLD_FACTOR should follow the Go mixedCaps naming convention described in the Go wiki code review comments.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Only WarmUpTrafficShapingCalculator is ne...
null
alibaba__sentinel-golang__198
alibaba/sentinel-golang
198
defect
07a5dba85dbdb43a99f43acabf76871e605484fb
041acb67e45774fcf5503ec74399ad579ebbac84
update datasource_flow_json_parsers
### Describe what this PR does / why we need it update datasource_flow_json_parsers ### Does this pull request fix one issue? fix:https://github.com/alibaba/sentinel-golang/issues/191 ### Describe how to verify it go test -v -race ./... ### Special notes for reviews
diff --git a/core/flow/rule.go b/core/flow/rule.go index 06336c806..2087e4f92 100644 --- a/core/flow/rule.go +++ b/core/flow/rule.go @@ -58,24 +58,24 @@ type ClusterRuleConfig struct { // FlowRule describes the strategy of flow control. type FlowRule struct { // ID represents the unique ID of the rule (optional). -...
5
5
2
[{"id": "G0", "claim": "Apply the new JSON array parser (struct-tag based json.Unmarshal) to the other rule types' converters as well, not just flow rules.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new check in hotspot IsValidRule is wrong becau...
null
alibaba__sentinel-golang__239
alibaba/sentinel-golang
239
defect
f9ddf58e3a00ab1d6af781961c2503b6feaa4e55
078ae4f4f1bd086e6c9fe325f2f393e81da3222c
Refine GetResRule API and GetRules API in flow/circuitbreaker/hotspot/system module
### Describe what this PR does / why we need it Refine GetResRule func and GetRules func in flow/circuitbreaker/hotspot/system module ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ...
diff --git a/core/circuitbreaker/rule_manager.go b/core/circuitbreaker/rule_manager.go index 00fb04c8a..f2645b638 100644 --- a/core/circuitbreaker/rule_manager.go +++ b/core/circuitbreaker/rule_manager.go @@ -69,12 +69,35 @@ func init() { } } -func GetResRules(resource string) []*Rule { +// GetResRules returns spe...
1
1
0
[{"id": "G0", "claim": "The function GetResRules should be renamed to GetRulesOfResource.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__270
alibaba/sentinel-golang
270
defect
0b7f723b533f3f564e1731d6636cd0b39c600545
953dc11dcf4ae29a37f4038ea4d37cb282aac86e
Refine naming for ext/datasource module
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it ...
diff --git a/ext/datasource/consul/consul.go b/ext/datasource/consul/consul.go index 1586c9fcc..af5b1c98d 100644 --- a/ext/datasource/consul/consul.go +++ b/ext/datasource/consul/consul.go @@ -26,7 +26,7 @@ var ( ErrKeyDoesNotExist = errors.New("key does not exist") ) -func NewDatasource(propertyKey string, op...
1
1
0
[{"id": "G0", "claim": "Maybe the NewError() refinement should be extended to HotSpotParamRulesUpdater (its error construction/naming refined), which at S1 still builds Error literals directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__283
alibaba/sentinel-golang
283
defect
cb639b42a0f87f947ed8b8f287d284df3de37600
dbee9fcb5733bf058b4dc8b258f6d2dbd481547a
Abstract concurrency-related operations as ConcurrencyStat interface and polish StatNode
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/core/base/stat.go b/core/base/stat.go index 2a410ded8..a3aa337de 100644 --- a/core/base/stat.go +++ b/core/base/stat.go @@ -38,18 +38,19 @@ type WriteStat interface { AddCount(event MetricEvent, count int64) } +type ConcurrencyStat interface { + CurrentConcurrency() int32 + IncreaseConcurrency() + Dec...
1
1
0
[{"id": "G0", "claim": "The struct field `goroutineNum` in BaseStatNode should be renamed to `concurrency` to match the renamed Concurrency* methods.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__288
alibaba/sentinel-golang
288
defect
cb639b42a0f87f947ed8b8f287d284df3de37600
d664cfd095aaf27f8d58d8ad514539395b1b4c15
Refine string builder usage in logging pkg
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it Us...
diff --git a/logging/logging.go b/logging/logging.go index fcbe0d124..2d1f7088e 100644 --- a/logging/logging.go +++ b/logging/logging.go @@ -31,6 +31,8 @@ const ( var ( DefaultDirName = filepath.Join("logs", "csp") + + defaultLogMsgBufferSize = 256 ) var ( @@ -117,6 +119,9 @@ func caller(depth int) (file strin...
1
1
0
[{"id": "G0", "claim": "defaultLogMsgBufferSize should be declared as a const instead of a var.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__291
alibaba/sentinel-golang
291
defect
0f7c7265fe660910fd6a4f22d05a8d98bed6f0f4
d44631c282e8362ebb9a21e301dbabc5b7c488e1
Refine APIs of per-resource slot chain and improve rule slot registering logic in rule managers
### Describe what this PR does / why we need it Refine code logic related to resource slot chain ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ...
diff --git a/api/api.go b/api/api.go index 7bccc62e7..b9263e7bb 100644 --- a/api/api.go +++ b/api/api.go @@ -130,7 +130,7 @@ func Entry(resource string, opts ...EntryOption) (*base.SentinelEntry, *base.Blo if options.slotChain == nil { options.slotChain = misc.GetResourceSlotChain(resource) if options.slotChain...
1
1
0
[{"id": "G0", "claim": "The name of the new helper function ValidateRuleCheckSlot could be more concrete.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__298
alibaba/sentinel-golang
298
defect
a9496edafe1a2a6d13085db85ad1cec403a2ed2d
0ca55371a2bf5c2b75822b325102043b96eee2c4
Fix bug that StatIntervalInMs do not take effect in throttling checker
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it Fi...
diff --git a/core/base/stat.go b/core/base/stat.go index a3aa337de..d802f4e7e 100644 --- a/core/base/stat.go +++ b/core/base/stat.go @@ -25,6 +25,11 @@ const ( MetricEventTotal ) +var ( + globalNopReadStat = &nopReadStat{} + globalNopWriteStat = &nopWriteStat{} +) + type ReadStat interface { GetQPS(event Metri...
3
3
1
[{"id": "G0", "claim": "For ControlBehavior Throttling, rule.StatIntervalInMs should be optional and given a default value instead of being rejected when <= 0.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The pre-existing upper-bound check on rule.Stat...
null
alibaba__sentinel-golang__3
alibaba/sentinel-golang
3
defect
324a11c0fd9edbe68637581fe31daeec1dbfea62
22da79824f3e88b4d4446c11f0cbea9938c625be
Add core pipeline (slot-chain) implementation
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/sentinel-group/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need...
diff --git a/README.md b/README.md index 2132e7103..d91ee6cb9 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,9 @@ ## Contributing Contributions are always welcomed! Please see [CONTRIBUTING](./CONTRIBUTING.md) for detailed guidelines. +Sentinel Golang + +## core package +core: core pipeline + +demo: some demo to...
5
4
2
[{"id": "G0", "claim": "The core-package notes added to README.md should be put in the project wiki instead of the README.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Node interface's method signatures may need to be redesigned following th...
null
alibaba__sentinel-golang__301
alibaba/sentinel-golang
301
defect
89bc23b039ea8c8ec80a95e914e0643e6d5ee0d7
fd9de11a32c0563f4094e6a95134dc6aa39f72c7
Enhance snapshot for blocked entry
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it En...
diff --git a/core/flow/tc_default.go b/core/flow/tc_default.go index f2807af1e..0f1d49018 100644 --- a/core/flow/tc_default.go +++ b/core/flow/tc_default.go @@ -1,6 +1,8 @@ package flow import ( + "fmt" + "github.com/alibaba/sentinel-golang/core/base" ) @@ -47,7 +49,10 @@ func (d *RejectTrafficShapingChecker) ...
3
3
0
[{"id": "G0", "claim": "The nil guard for BoundOwner/BoundRule and the ruleID plumbing should be dropped because the rule in a real ThrottlingChecker is never nil.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The if rule == nil / else branch around the...
null
alibaba__sentinel-golang__309
alibaba/sentinel-golang
309
defect
15282ae3038066ece39946914c87ce51456d1520
3a785bf7ff3ef0abf1d4485eed05ab5b66d2ea5a
Enhance logging
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it - ...
diff --git a/core/circuitbreaker/rule_manager.go b/core/circuitbreaker/rule_manager.go index ed36d9cc7..6a5d7cd65 100644 --- a/core/circuitbreaker/rule_manager.go +++ b/core/circuitbreaker/rule_manager.go @@ -187,7 +187,7 @@ func onRuleUpdate(rules []*Rule) (err error) { continue } if err := IsValid(rule); er...
2
2
0
[{"id": "G0", "claim": "When json.Marshal fails, toSafeJSONString should return the original string wrapped in quotes (`\"` + s + `\"`) instead of the fixed \"JSON Marshal Error\" placeholder.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The value seri...
null
alibaba__sentinel-golang__332
alibaba/sentinel-golang
332
defect
f64335215af0b82be10eaa3967e843937596fa71
6a0224bd55bcea8a2de130620897c3b252382132
Fix bugs of throttling control behavior in flow control module
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it ...
diff --git a/core/base/result.go b/core/base/result.go index ce5d1da25..4f24d7d80 100644 --- a/core/base/result.go +++ b/core/base/result.go @@ -58,13 +58,13 @@ func (s TokenResultStatus) String() string { type TokenResult struct { status TokenResultStatus - blockErr *BlockError - waitMs uint64 + blockErr *Bl...
1
1
0
[{"id": "G0", "claim": "TokenResult should store the wait time as time.Duration instead of a raw uint64 nanoseconds field, so callers don't have to honor the time precision.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__338
alibaba/sentinel-golang
338
defect
365844bd4fae2fdcfaaf35ed08932fbc8eb8578e
dcfaced99b5235dc0b0c20f8075600265ae58fac
Support stat sliding window bucket count config of circuit breaker
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it Su...
diff --git a/core/circuitbreaker/circuit_breaker.go b/core/circuitbreaker/circuit_breaker.go index cacd96525..43853d2aa 100644 --- a/core/circuitbreaker/circuit_breaker.go +++ b/core/circuitbreaker/circuit_breaker.go @@ -223,8 +223,9 @@ func newSlowRtCircuitBreakerWithStat(r *Rule, stat *slowRequestLeapArray) *slowR ...
7
6
1
[{"id": "G0", "claim": "isEqualsToBase should also compare StatSlidingWindowBucketCount so rules differing only in bucket count are not treated as equal.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new logging.Warn call in IsValid should prin...
null
alibaba__sentinel-golang__365
alibaba/sentinel-golang
365
defect
2a4109883020b4278932d4dfe8ec77be2e27add3
f18f4fa29f86594db1bdb049f35799c5f7c41d5c
hotspot add mod:CLOSE;MONITOR;CONTROL
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it ...
diff --git a/core/hotspot/rule.go b/core/hotspot/rule.go index b72658760..7a63cfceb 100644 --- a/core/hotspot/rule.go +++ b/core/hotspot/rule.go @@ -97,8 +97,20 @@ type Rule struct { ParamsMaxCapacity int64 `json:"paramsMaxCapacity"` // SpecificItems indicates the special threshold for specific value SpecificItem...
3
3
1
[{"id": "G0", "claim": "The comment on the new Mode field should read \"Mode Switch\" instead of \"Mod Switch\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When a rule's Mode is \"\" or CLOSE, the rule should not be put into the RuleMap at all...
null
alibaba__sentinel-golang__371
alibaba/sentinel-golang
371
defect
c0595301e04248716c66d8da248d38fd01def6b0
a249d15857d3f4e4a3b73f4b2c307b1b99e66bf7
Record max concurrency in MetricItem and metric logs
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it Re...
diff --git a/core/base/constant.go b/core/base/constant.go index db65d30f4..bbc2d1be0 100644 --- a/core/base/constant.go +++ b/core/base/constant.go @@ -29,4 +29,6 @@ const ( DefaultIntervalMsTotal uint32 = 10000 DefaultStatisticMaxRt = int64(60000) + + DefaultStatisticMinConcurrency = int32(0) ) diff --git a/co...
5
4
1
[{"id": "G0", "claim": "The new constant DefaultStatisticMinConcurrency should maybe be named DefaultStatisticMaxConcurrency instead.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The constant DefaultStatisticMinConcurrency is not necessary, as...
null
alibaba__sentinel-golang__373
alibaba/sentinel-golang
373
defect
1eaa5c5cc8ea53d25036bf0eb36ba42719cc5b1b
b8902649e4e1e4413ec41fc709e7b78250edbb82
Support resource level rule replacement in hotspot module
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it Su...
diff --git a/core/hotspot/rule_manager.go b/core/hotspot/rule_manager.go index ee383c1d6..08fa90109 100644 --- a/core/hotspot/rule_manager.go +++ b/core/hotspot/rule_manager.go @@ -35,7 +35,7 @@ var ( tcGenFuncMap = make(map[ControlBehavior]TrafficControllerGenFunc, 4) tcMap = make(trafficControllerMap) ...
2
2
0
[{"id": "G0", "claim": "The new code's wording should say \"hotspot rules\" instead of \"flow rules\", e.g. the ClearRulesOfResource doc comment and the onResourceRuleUpdate debug log.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The whole-map a...
null
alibaba__sentinel-golang__376
alibaba/sentinel-golang
376
defect
aafce3f11390fbad986eaa21cc81463a1fb8bd40
b244a55856c1326ee65819a64814f8f4fe0250f1
feat: hotspot rule add paramKey;
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> In the hotspot parameter rule, ParamKey is added to c...
diff --git a/core/hotspot/concurrency_stat_slot.go b/core/hotspot/concurrency_stat_slot.go index ad64ae119..43d3c74f7 100644 --- a/core/hotspot/concurrency_stat_slot.go +++ b/core/hotspot/concurrency_stat_slot.go @@ -44,13 +44,12 @@ func (s *ConcurrencyStatSlot) Order() uint32 { func (c *ConcurrencyStatSlot) OnEntry...
5
4
1
[{"id": "G0", "claim": "In IsValidRule the mutual-exclusion check should be `rule.ParamIndex >= 0` rather than `rule.ParamIndex > 0`.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Rule struct docs should include comments illustrating the priori...
null
alibaba__sentinel-golang__386
alibaba/sentinel-golang
386
defect
588100c7f3a1f7276766a3eef96df4ef32b0cc0b
f63ad385bce8e16f0e0e3636d12edfd140979380
feat:block_err add opts func ,add RegistryBlockType func;
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it ...
diff --git a/core/base/block_error.go b/core/base/block_error.go index e72a7a787..1f23aa863 100644 --- a/core/base/block_error.go +++ b/core/base/block_error.go @@ -27,6 +27,50 @@ type BlockError struct { snapshotValue interface{} } +type BlockErrorOption func(*BlockError) + +func WithBlockType(blockType BlockType...
3
3
2
[{"id": "G0", "claim": "TestNewBlockError should compare the built BlockError against an expected struct rather than against the result of NewBlockError itself, otherwise the test cannot fail.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The descripti...
null
alibaba__sentinel-golang__428
alibaba/sentinel-golang
428
defect
671274f04b3f7ded73120361171b9ecc1a12c5cf
199b93b8d2bde17976cbd1d418d6a8c28256578d
circuit breaker supported probe number
Describe what this PR does / why we need it circuit breaker support probes num Does this pull request fix one issue? fix:#411 Describe how you did it Provides the probe count configuration to match the probe count when the circuit breaker is half-open Describe how to verify it Special notes for reviews
diff --git a/core/circuitbreaker/circuit_breaker.go b/core/circuitbreaker/circuit_breaker.go index b7d2396ab..f00234559 100644 --- a/core/circuitbreaker/circuit_breaker.go +++ b/core/circuitbreaker/circuit_breaker.go @@ -136,6 +136,10 @@ type circuitBreakerBase struct { retryTimeoutMs uint32 // nextRetryTimestampMs...
1
1
1
[{"id": "G0", "claim": "curProbeNumber may exceed probeNumber, in which case the equality check (`== b.probeNumber`) would never be satisfied and the circuit breaker would never transition from half-open to closed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alibaba__sentinel-golang__57
alibaba/sentinel-golang
57
defect
400e957483be9cfa045feffac509a0cd2eccc7bc
3074ccfab82561aa2ca7205a3ab324207bdf605e
Add support for collecting CPU usage for SystemRule
Signed-off-by: Eric Zhao <sczyh16@gmail.com> <!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ###...
diff --git a/core/system/sys_stat.go b/core/system/sys_stat.go index 705e2a725..be64b67f1 100644 --- a/core/system/sys_stat.go +++ b/core/system/sys_stat.go @@ -2,6 +2,7 @@ package system import ( "github.com/alibaba/sentinel-golang/util" + "math" "sync/atomic" "time" @@ -17,14 +18,21 @@ var ( currentLoad ...
1
1
0
[{"id": "G0", "claim": "Use a pointer instead of the cpu.TimesStat struct to avoid struct copy when caching and passing CPU stat info.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__sentinel-golang__583
alibaba/sentinel-golang
583
defect
7100e5be01f5caec5de3de3277d2bb68ff0b05d0
5784a81ee4e07a65a3ac6565c5f218e181aa53e7
[bug-fix] probeNum参数更新,loadRule生效
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it...
diff --git a/core/circuitbreaker/rule.go b/core/circuitbreaker/rule.go index 0886604bc..5992dc5dd 100644 --- a/core/circuitbreaker/rule.go +++ b/core/circuitbreaker/rule.go @@ -61,7 +61,7 @@ type Rule struct { // that can trigger circuit breaking. MinRequestAmount uint64 `json:"minRequestAmount"` // StatIntervalM...
1
1
1
[{"id": "G0", "claim": "MaxAllowedRtMs and Threshold should not be involved in the isEqualsToBase comparison (it should compare only the fields that apply to all rule strategy types).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alibaba__sentinel-golang__60
alibaba/sentinel-golang
60
defect
f806c598b01178d69baba62eb1925da289e0b4d4
1c51171532eed2ad0c1920c15a87f406a0b45989
Add dubbogo adapter
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it ...
diff --git a/.travis.yml b/.travis.yml index bd5daf05d..28942a15c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ sudo: required go: - 1.12.x - 1.13.x - +env: + - GO111MODULE=on script: - go test -v -race ./... \ No newline at end of file diff --git a/adapter/dubbogo/consumer_filter.go b/adapter/...
4
3
1
[{"id": "G0", "claim": "The adapter's package name could be `dubbo` directly, to make it concise.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When the invocation completes, whether successful or with error, the Sentinel entries need to be exi...
null
alibaba__sentinel-golang__80
alibaba/sentinel-golang
80
defect
c0363c14d0638ec5b53968db4068527d67162377
63921a8d3e41bb5e465dc6d09dbf9ceda2b29555
Add atomic bool in util
### Describe what this PR does / why we need it ### Does this pull request fix one issue? Add atomic bool in util ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/util/atomic.go b/util/atomic.go new file mode 100644 index 000000000..ad3110286 --- /dev/null +++ b/util/atomic.go @@ -0,0 +1,48 @@ +package util + +import "sync/atomic" + +func IncrementAndGetInt64(v *int64) int64 { + old := int64(0) + for { + old = atomic.LoadInt64(v) + if atomic.CompareAndSwapInt64(v,...
1
1
0
[{"id": "G0", "claim": "The code needs reformatting (e.g. missing space in `if old == new{`).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
alibaba__sentinel-golang__82
alibaba/sentinel-golang
82
defect
7c013e094bd8fa193cd5c2e1e7c7519ec131376f
4b7b55afafaeb46c98f3013e15045af1198d4622
fix #49; implement gin adapter
<!-- Thanks for submitting a pull request! Here are some tips for you: 1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/blob/master/CONTRIBUTING.md 2. Please make sure the PR has a corresponding issue. --> ### Describe what this PR does / why we need it ...
diff --git a/adapter/gin/middleware.go b/adapter/gin/middleware.go new file mode 100644 index 000000000..f4acd753f --- /dev/null +++ b/adapter/gin/middleware.go @@ -0,0 +1,39 @@ +package gin + +import ( + "net/http" + + sentinel "github.com/alibaba/sentinel-golang/api" + "github.com/alibaba/sentinel-golang/core/base" +...
7
5
2
[{"id": "G0", "claim": "Use `:` instead of `_` as the resource-name separator so it stays consistent with Sentinel web adapters in other languages.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Rename the option `WithResourceExtract` to `WithResourceExt...
null
alibaba__sentinel-golang__89
alibaba/sentinel-golang
89
defect
4b38317c83002fa0273b3224207823b4460a5fe7
08b0d56419353da8aaa2b4d6889287da6fb9f0cd
Enhance datasource framework.
### Describe what this PR does / why we need it Enhance datasource framework. ### Does this pull request fix one issue? ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/ext/datasource/datasource.go b/ext/datasource/datasource.go index 1889f5ec9..2da6af697 100644 --- a/ext/datasource/datasource.go +++ b/ext/datasource/datasource.go @@ -12,9 +12,12 @@ type DataSource interface { // Remove specified property handler in current datasource RemovePropertyHandler(h PropertyH...
3
3
0
[{"id": "G0", "claim": "Initialize should return the error instead of just panicking on failure.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The newly added error-check code in Handle is not gofmt-formatted and should be formatted.", "category": "styl...
null
alibaba__sentinel-golang__90
alibaba/sentinel-golang
90
defect
adb9db4ea8d4676be72eaef385bbd2e2fb727a78
95946dde83872c21de1309c4debde0f085104a07
Add helper for system.SystemRule and flow.FlowRule in datasource
### Describe what this PR does / why we need it Encapsulate converter(default json) and updater related logic for specific property. properties: 1. []system.SystemRule 2. []flow.FlowRule ### Does this pull request fix one issue? ### Describe how you did it ### Describe how to verify it ### Special not...
diff --git a/core/flow/rule_manager.go b/core/flow/rule_manager.go index 43fe9d059..acf28b9d0 100644 --- a/core/flow/rule_manager.go +++ b/core/flow/rule_manager.go @@ -80,6 +80,13 @@ func GetRules() []*FlowRule { return rulesFrom(tcMap) } +func ResetTcMap() { + tcMux.RLock() + defer tcMux.RUnlock() + + tcMap = ma...
7
5
4
[{"id": "G0", "claim": "The updater could use the asserted []flow.FlowRule value directly instead of copying it element-by-element into a new []*flow.FlowRule slice.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "FlowRulesUpdater could accept bo...
null
alibaba__sentinel-golang__92
alibaba/sentinel-golang
92
defect
a24a42dc3b226a05e49fbd2f26c6902592e03392
6d0e7c1a98f9b2dd27ea3842f6dc2cbb762868b8
Hotfix: Fix bug for SystemRulesUpdater and FlowRulesUpdater
### Describe what this PR does / why we need it Hotfix: If the update value is nil in PropertyUpdater, sentinel should clear downstream property. ### Does this pull request fix one issue? ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/ext/datasource/helper.go b/ext/datasource/helper.go index 0ee461dbc..3c904dcf2 100644 --- a/ext/datasource/helper.go +++ b/ext/datasource/helper.go @@ -24,7 +24,7 @@ func FlowRulesJsonConverter(src []byte) (interface{}, error) { // FlowRulesUpdater load the newest []flow.FlowRule to downstream flow compon...
1
1
0
[{"id": "G0", "claim": "The unit tests of helper should be updated to match the new nil-update clearing behavior.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__spring-ai-alibaba__1088
alibaba/spring-ai-alibaba
1,088
defect
db36e2dd54762e340ccb0f7eb5316b3d041566d5
a7d8e7f463cf68e03f230dff3cc724513b129d39
feat(graph): update graph code node java code execute
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/spring-ai-alibaba-graph/spring-ai-alibaba-graph-core/pom.xml b/spring-ai-alibaba-graph/spring-ai-alibaba-graph-core/pom.xml index 4b04d97b57..fa25785c3b 100644 --- a/spring-ai-alibaba-graph/spring-ai-alibaba-graph-core/pom.xml +++ b/spring-ai-alibaba-graph/spring-ai-alibaba-graph-core/pom.xml @@ -97,6 +97,...
5
5
2
[{"id": "G0", "claim": "The docker-java dependencies should declare their version through a pom property (like <version>${fastjson.version}</version>) instead of hardcoding 3.3.3 in each dependency.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
alibaba__spring-ai-alibaba__2309
alibaba/spring-ai-alibaba
2,309
defect
97c82dd32aaf6f76bd9d4401ff8ad8e6d2fdaa9a
2c7e555644e2a5c69f934279b9cf15b1cd302ddd
fix(memories): fix chat message media serializer exception
### Describe what this PR does / why we need it Because jackson default behavior serializes method names with `get` or `is`, for `Message`, its subclass `UserMessage` contains a `media` field, which is a list composed of `Media` objects. The `Media` contains the `getDataAsByteArray` method, which is used to handle dif...
diff --git a/community/memories/spring-ai-alibaba-starter-memory-redis/pom.xml b/community/memories/spring-ai-alibaba-starter-memory-redis/pom.xml index 08b1a87531..8d8b1d39e8 100644 --- a/community/memories/spring-ai-alibaba-starter-memory-redis/pom.xml +++ b/community/memories/spring-ai-alibaba-starter-memory-redis/p...
6
6
2
[{"id": "G0", "claim": "The unit test run fails with an error deserializing Message, likely because the new field-based ObjectMapper configuration changed the JSON keys, so MessageDeserializer should be modified accordingly.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, ...
null
alibaba__spring-ai-alibaba__2368
alibaba/spring-ai-alibaba
2,368
defect
116670b362968744c283fd2b1efbe80a5efb6b67
6f7e8362746ca6edac5e8399f8dfcff78129296d
feat(mcp): support read config from database (MySQL, etc.)
### Describe what this PR does / why we need it This PR read config of MCP services from a database(MySQL, etc.). Used in the module spring-ai-alibaba-mcp-router currently. ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add...
diff --git a/auto-configurations/spring-ai-alibaba-autoconfigure-mcp-router/src/main/java/com/alibaba/cloud/ai/autoconfigure/mcp/router/DbMcpRouterAutoConfiguration.java b/auto-configurations/spring-ai-alibaba-autoconfigure-mcp-router/src/main/java/com/alibaba/cloud/ai/autoconfigure/mcp/router/DbMcpRouterAutoConfigurat...
8
6
2
[{"id": "G0", "claim": "Refactor the three duplicated try/catch resource-close blocks in DbMcpServiceDiscovery into a closeResources helper delegating to a single closeQuietly(AutoCloseable, String) method that null-checks, special-cases Connection with isClosed(), and logs failures with the resource name.", "category"...
null
alibaba__spring-ai-alibaba__2399
alibaba/spring-ai-alibaba
2,399
defect
915fe2952862c1d74686f735f2e6868a61a92932
fe519b78edb81104972a363fb4bcdc977895d837
feat(mcp): support multi-level data extraction
### Describe what this PR does / why we need it Using Handlebars.java, we support multi-level data extraction using MCP. Simple extraction still uses the original strategy. ### Does this pull request fix one issue? #2389 <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, ...
diff --git a/spring-ai-alibaba-mcp/spring-ai-alibaba-mcp-router/pom.xml b/spring-ai-alibaba-mcp/spring-ai-alibaba-mcp-router/pom.xml index b352dc1530..d8156cadea 100644 --- a/spring-ai-alibaba-mcp/spring-ai-alibaba-mcp-router/pom.xml +++ b/spring-ai-alibaba-mcp/spring-ai-alibaba-mcp-router/pom.xml @@ -72,6 +72,13 @@ ...
2
2
1
[{"id": "G0", "claim": "The Chinese comments in ResponseTemplateParser.java should be written in English.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new MULTI_LEVEL_PATTERN regex that routes multi-level templates to the Handlebars engine h...
null
alibaba__spring-ai-alibaba__2424
alibaba/spring-ai-alibaba
2,424
defect
8dadf4087bf1388372160242514472a19a22cb92
adb3cb8bd6f72bf2f4f05844b4e0c00c51391ba2
feat(tool-calls): 添加百度千帆智能搜索功能
### Describe what this PR does / why we need it 添加百度千帆智能搜索,更适合大模型调用,缺点是收费,但每天有100次免费额度 默认不开启,不影响原BaiduSearchService的使用 ### Does this pull request fix one issue? NONE <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it - 新增...
diff --git a/community/tool-calls/spring-ai-alibaba-starter-tool-calling-baidusearch/README-zh.md b/community/tool-calls/spring-ai-alibaba-starter-tool-calling-baidusearch/README-zh.md new file mode 100644 index 0000000000..d08b8cc3d1 --- /dev/null +++ b/community/tool-calls/spring-ai-alibaba-starter-tool-calling-baidu...
4
4
1
[{"id": "G0", "claim": "If possible, please write an English README.md (the PR only ships a Chinese README-zh.md).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Please change the @author ID in BaiduAiSearchProperties.java (left as vlsmb) to the P...
null
alibaba__spring-ai-alibaba__2455
alibaba/spring-ai-alibaba
2,455
defect
b4dc09fb94fd4400860d9fa717362dd2a4850eb9
83c37b000037cdff12f899dba60768f9f6b12200
chore(nl2sql): fix typos
### Describe what this PR does / why we need it 修复 typos 修复 org.mockito.ArgumentMatchers.*; 引用未使用 ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it...
diff --git a/spring-ai-alibaba-deepresearch/src/main/java/com/alibaba/cloud/ai/example/deepresearch/node/PlannerNode.java b/spring-ai-alibaba-deepresearch/src/main/java/com/alibaba/cloud/ai/example/deepresearch/node/PlannerNode.java index 715324f425..dd5d199132 100644 --- a/spring-ai-alibaba-deepresearch/src/main/java/...
1
1
1
[{"id": "G0", "claim": "The jmanus code changes may affect the workflow under active development and should be removed (the developers will make the adjustments themselves); typo fixes are acceptable but the files must not be renamed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
alibaba__spring-ai-alibaba__2730
alibaba/spring-ai-alibaba
2,730
defect
ca3d1e417219dedc34af812161e245997aeb4bf9
203850c0b3e1c94d0688a9719e3b7a019981759d
fix(graph): resolve NullPointerException in streaming with tools when streamUsage enabled
Fixes #2702 1. Why multiple layers of null checks? - Filter at line 189-195: Catches null results early in the stream - Null check at line 198-200: Defensive programming for edge cases that pass the filter - Null check at line 220-222: Protects against null in lastResponse (from AtomicReference) - Filt...
diff --git a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/executor/NodeExecutor.java b/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/executor/NodeExecutor.java index 324f3327ae..8dcaf62fc8 100644 --- a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph...
3
3
0
[{"id": "G0", "claim": "llmNode already handles the stream through GraphFluxGenerator, so the defensive null-check changes made to getEmbedFlux in NodeExecutor should not be needed here.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The reproduction tes...
null
alibaba__spring-ai-alibaba__2949
alibaba/spring-ai-alibaba
2,949
defect
33e6950d8733e7d0eaf58c2ac52a7e5f567cbede
7fe47e986ca9adbde9ada4c73a1384c7db91faa5
fix(graph): preserve custom Map types in deepCopyMap to prevent ClassCastExc…
### Describe what this PR does / why we need it This PR fixes a critical bug in `SerializationUtils.deepCopyMap()` where custom `Map` implementations (like `fastjson2.JSONObject`) were being incorrectly converted to `HashMap` during deep copy operations. This caused `ClassCastException` when users expected to receiv...
diff --git a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/utils/SerializationUtils.java b/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/utils/SerializationUtils.java index 7cae1b07e3..47308298d6 100644 --- a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai...
3
1
0
[{"id": "G0", "claim": "Remove the extra blank line at the end of SerializationUtilsCustomMapTypeTest.java for consistency with the project's Java files, which end with a single newline after the closing brace.", "category": "maintainability", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1...
null
alibaba__spring-ai-alibaba__3194
alibaba/spring-ai-alibaba
3,194
defect
0b3d253c4b50816dd4e61feb3560ad0b65b6b857
d3554ec635f0bb19096772c99bf3eae9a4d487be
feat(agent): agent builder executor
### Describe what this PR does / why we need it support agent builder executor ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special no...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/Agent.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/Agent.java index b533e1b3bd..707c7fa5c2 100644 --- a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agen...
8
4
0
[{"id": "G0", "claim": "The customExecutor created in ExecutorConfigTest's setUp() is never shut down, which can lead to thread leaks; add an @AfterEach method to shut it down.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The executor created in Paral...
null
alibaba__spring-ai-alibaba__3399
alibaba/spring-ai-alibaba
3,399
defect
cb2951bb2786ef89e17f26cc7eb1a168735bedf3
5cad77a13b5b4e8416820090686908cbd15abca5
refactor(graph): integrate GraphFlux into agent framework for improved streaming support
- Added GraphFlux to ReactAgent, A2aNodeActionWithConfig, ModelResponse, and AgentLlmNode to enhance streaming capabilities. - Updated method signatures and internal logic to accommodate GraphFlux, ensuring consistent handling of streaming responses across components. - Improved code readability by formatting and o...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/ReactAgent.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/ReactAgent.java index d8b24dedde..3aa4188766 100644 --- a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/...
6
6
0
[{"id": "G0", "claim": "GraphFlux.of should be called with the three meaningful parameters only (nodeId, outputKey, flux) instead of passing optional trailing parameters as null, via a dedicated factory method.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim...
null
alibaba__spring-ai-alibaba__3864
alibaba/spring-ai-alibaba
3,864
defect
1ad40ca7266abef6bf9d44b038408c1a2ea4604d
47d8bad3a243371540c1ab287b09c65db9aa4355
feat(graph): add interruptAfter hook to InterruptableAction
### Describe what this PR does / why we need it This PR adds an `interruptAfter()` hook to the `InterruptableAction` interface, enabling graph execution to be interrupted AFTER a node's `apply()` method completes. Currently, the `interrupt()` method only supports interruption BEFORE node execution. This limit...
diff --git a/spring-ai-alibaba-graph-core/README.md b/spring-ai-alibaba-graph-core/README.md index 57454bc870..4b424fc6fa 100644 --- a/spring-ai-alibaba-graph-core/README.md +++ b/spring-ai-alibaba-graph-core/README.md @@ -33,9 +33,59 @@ The core of the framework includes: **StateGraph** (the state graph for defining ...
1
1
1
[{"id": "G0", "claim": "The interruptAfter hook is only invoked on the non-streaming path in handleActionResult(), so streaming nodes (Flux / GraphFlux / ParallelGraphFlux returns) never get a post-execution interruption check, and leiz-me strongly suggests the after hook should also work for streaming nodes for API co...
null
alibaba__spring-ai-alibaba__3931
alibaba/spring-ai-alibaba
3,931
defect
084defa82509df1b152b7124132887f952c8627e
ebfd08d36a4ce825c48a806001a5f50cf840502d
fix(graph): fix TypeSerializer bug
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> Close #3895 ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/serializer/plain_text/jackson/AgentInstructionMessageHandler.java b/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/serializer/plain_text/jackson/AgentInstructionMessageHandler.java index e3a4cd06d6..b052c9f6da 1006...
4
2
0
[{"id": "G0", "claim": "The test assertion error messages are written in Chinese and should be written in English for consistency and accessibility in an international codebase.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Using baos.toString(...
null
alibaba__spring-ai-alibaba__3941
alibaba/spring-ai-alibaba
3,941
defect
52ab0a8e0018ea7d8d41da3c5233c8f20d6aacbc
fc96a212ff867df183bec659e624ea65fe01a7e6
Fix(graph): add full output(with _FINISHED OutputType) for streaming node.
```java ReactAgent Streaming Output Chunk: AGENT_HOOK_FINISHED ReactAgent Streaming Output Chunk: null ReactAgent Streaming Output Chunk: AGENT_MODEL_STREAMING ReactAgent Streaming Output Chunk: AssistantMessage [messageType=ASSISTANT, toolCalls=[ToolCall[id=call_1a717f3c393544b98c552b, type=function, name=getWeath...
diff --git a/spring-ai-alibaba-agent-framework/src/test/java/com/alibaba/cloud/ai/graph/agent/ReactAgentTest.java b/spring-ai-alibaba-agent-framework/src/test/java/com/alibaba/cloud/ai/graph/agent/ReactAgentTest.java index 8eb47a51d1..463f192345 100644 --- a/spring-ai-alibaba-agent-framework/src/test/java/com/alibaba/c...
1
1
0
[{"id": "G0", "claim": "The test should verify that finalOutput is not null before calling finalOutput.state(), since the flux could complete without emitting a final element if all GraphResponse.done() responses are filtered out.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
alibaba__spring-ai-alibaba__3983
alibaba/spring-ai-alibaba
3,983
defect
5f3fdce9b0a6bf27e5c3ae5ca8a4ca2114e3d071
e952051f383fa25da5bc43acd2b56b492fcd09a1
feat: supervisor hook
# Supervisor Agent Hook 机制技术文档 ## 一、背景与目标 ### 1.1 背景 在 Supervisor Agent 模式下,当前缺乏灵活的扩展机制来在 Agent 执行前后插入自定义逻辑(如日志记录、权限校验、数据预处理等)。用户无法在不修改核心代码的情况下对 Agent 的执行流程进行干预和增强。 ### 1.2 目标 - 为 Supervisor Agent 引入 Hook 机制,支持在 Agent 和 Model 执行前后插入自定义逻辑 - 提供统一的 Hook 接口和位置定义 - 支持优先级排序,确保 Hook 执行顺序可控 - 提供便捷的 Hook 工厂类,降低使用门...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/agent/FlowAgent.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/agent/FlowAgent.java index eb242ba4fb..4b8e517dc6 100644 --- a/spring-ai-alibaba-agent-framework/src/main/java/c...
1
1
0
[{"id": "G0", "claim": "Avoid importing a whole package with a wildcard; import the specific classes used instead of `java.util.*`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
alibaba__spring-ai-alibaba__3994
alibaba/spring-ai-alibaba
3,994
defect
a36a7a00acc493f148bc153cbe34de2e2a66c1d1
17ef5c12724585873b9b43f7522a7fdffee7cefd
feat(agent): support hook for LlmRoutingAgent
### Describe what this PR does / why we need it 1.目前问题 用户在使用 LlmRoutingAgent 时遇到以下问题: - 无法在 LlmRoutingAgent 上设置 hooks - 使用 RedisSaver 时,记忆会无限增长 - 同一个 thread 多次请求,消息历史越积越长 - 浪费大量 token,无法裁剪路由决策时的记忆 ### Does this pull request fix one issue? fixes #3967 ### Describe how you did it 2.解决方法 - 首先在必要的类添加hooks字段...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/agent/FlowAgent.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/agent/FlowAgent.java index eb242ba4fb..de4ed2e7a7 100644 --- a/spring-ai-alibaba-agent-framework/src/main/java/c...
3
3
0
[{"id": "G0", "claim": "FlowAgent should check that hooks is not empty (List.isEmpty()) and not only for null before passing hooks to the config.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Chinese comments in LlmRoutingAgentTest should be re...
null
alibaba__spring-ai-alibaba__4028
alibaba/spring-ai-alibaba
4,028
defect
4377d88c4aa3ee51963731a62b88ad0151a884b8
ae7ec0085b4dc619f9307e723f96fc0b4f88656a
feat(graph): add aggregation strategy for parallel branches.
Fixes https://github.com/alibaba/spring-ai-alibaba/issues/4010 ## Parallel Node Aggregation Strategy Adds configurable aggregation strategies for parallel node execution. **Supported Strategies:** - **`NodeAggregationStrategy` enum** with two strategies: - `ALL_OF` (default): Wait for all parallel branches...
diff --git a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/CompiledGraph.java b/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/CompiledGraph.java index e3001ff992..2def0681e3 100644 --- a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/CompiledGraph.j...
12
4
3
[{"id": "G0", "claim": "NodeAggregationStrategy is imported but not defined anywhere in the pull request, which would cause compilation failures; the enum with ALL_OF and ANY_OF must be added.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Under ANY...
null
alibaba__spring-ai-alibaba__4031
alibaba/spring-ai-alibaba
4,031
defect
4377d88c4aa3ee51963731a62b88ad0151a884b8
c3b6ac28ac1e936bd4e4b40fe773d3836f6b0be7
feat(agent): add streamMessages API for agent streaming
### Describe what this PR does / why we need it This PR introduces `streamMessages(...)` as an additional streaming API option alongside `stream(...)`, intended for use cases that do not require graph orchestration. ### Does this pull request fix one issue? Related to #4023 ### Describe how you did it Adds...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/Agent.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/Agent.java index 77bc845a8d..abb333bb85 100644 --- a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agen...
6
6
1
[{"id": "G0", "claim": "Add a streamMessages(List<Message> messages, RunnableConfig config) overload so the List<Message> variant, like the String and UserMessage variants, has both with-config and without-config forms.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
alibaba__spring-ai-alibaba__4053
alibaba/spring-ai-alibaba
4,053
defect
d2884bfa910eb04f818930e677da15f002a1748b
e1780d5a13f22ad44f4654417e3790df260cfff2
fix(agent): ensure that the maxConcurrency function of ParallelAgent is implemented.
### Describe what this PR does / why we need it 1.问题描述 经过测试与代码审查发现,虽然maxConcurrency 字段已定义,且确实被传递到了被传递到多个类,但是并没有被启用来进行并行限制功能。 未修改前,真正的并行执行发生在 `ParallelNode.AsyncParallelNodeAction.apply()` 方法中,该方法: - 一次性提交所有子任务到线程池 - 完全不知道 `maxConcurrency` 的存在 - 缺少从 ParallelAgent 到 ParallelNode 的配置传递机制 ### Does this pull requ...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/agent/ParallelAgent.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/agent/ParallelAgent.java index f7ecfbdaa3..b4688fd643 100644 --- a/spring-ai-alibaba-agent-framework/src/mai...
6
2
2
[{"id": "G0", "claim": "ParallelAgent stores the maxConcurrency metadata under a key built from this.name() while ParallelNode looks it up under a key built from the nodeId formatted with PARALLEL_PREFIX, so the keys may not match and the maxConcurrency configuration will not be retrieved during execution.", "category"...
null
alibaba__spring-ai-alibaba__4079
alibaba/spring-ai-alibaba
4,079
defect
0d276cb4d66825e1db066f8044f0d17f7016a2e4
877ff034b069afce9cfb3cbec064cd0f12f1d4ca
fix(graph): add InterruptableAsyncNodeActionWrapper
### Describe what this PR does / why we need it 当用户创建同时实现 AsyncNodeAction 和 InterruptableAction 的类时 AsyncNodeActionWithConfig.of() 方法返回的 lambda 表达式丢失了 InterruptableAction 接口 导致 NodeExecutor 中的 instanceof InterruptableAction 检查失败 ### Does this pull request fix one issue? 添加一个判断,然后重新构造 <!--If that, add "Fixes #xxxx...
diff --git a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/action/AsyncNodeActionWithConfig.java b/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/action/AsyncNodeActionWithConfig.java index 0271479bb1..1155f69ece 100644 --- a/spring-ai-alibaba-graph-core/src/main/java/com/...
2
2
0
[{"id": "G0", "claim": "The inner class InterruptableAsyncNodeActionWrapper should be declared as static, since it does not require access to the enclosing interface instance.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "java.util.Optional sho...
null
alibaba__spring-ai-alibaba__4081
alibaba/spring-ai-alibaba
4,081
defect
83a6982cb0fa9b0f02ff8d74f69b96c666c50430
0dffbfa723b4cde425b6ef59f82b92d3d388048a
fix(agent): ensure jumpTo normal operation
### Describe what this PR does / why we need it 问题描述: 当 Hook 只重写 afterModel 方法且 Agent 配置了工具时,JumpTo 功能完全失效。 经过测试和代码分析发现原因:`makeModelToTools` 路由方法只检查消息内容(是否有工具调用),完全忽略了状态中的 jump_to 字段,那么用户无法在 afterModel 中使用 JumpTo.end、JumpTo.model 或 JumpTo.tool 来控制工作流。 受影响的场景有哪些? 只要同时满足以下条件,JumpTo 就会失效: - Agent 配置了工具(tools) ...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/ReactAgent.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/ReactAgent.java index 7ab947306f..2f103f10be 100644 --- a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/...
2
2
1
[{"id": "G0", "claim": "Test 8 (testJumpToModelInAfterModelWithTools) does not actually test the bug scenario because the agent under test has no tools configured, so routing goes through addHookEdge instead of makeModelToTools; the builder should add .tools(List.of(testTool)) as in test 7.", "category": "testing", "ve...
null
alibaba__spring-ai-alibaba__4093
alibaba/spring-ai-alibaba
4,093
defect
83a6982cb0fa9b0f02ff8d74f69b96c666c50430
c2f8747717392cb8cda816c06c609ea621d07e7f
fix(agent): Fix NacosReactAgentBuilder to properly merge local tools
### Describe what this PR does / why we need it NacosReactAgentBuilder 通过 tools() 等方法传入的 tools,在 build() 方法中会被从 nacos 配置中心获取到的 mcp server 的 tools 覆盖。此 PR 确保两种类型的工具能够正确合并并同时可用。 <img width="936" height="105" alt="image" src="https://github.com/user-attachments/assets/aaeccb19-594b-427a-bcfb-bc6fd881ca96" /> <im...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/DefaultBuilder.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/DefaultBuilder.java index 35880f3b5c..07a66ad65c 100644 --- a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/c...
5
3
3
[{"id": "G0", "claim": "The localTools field is not thread-safe and the asynchronously triggered Nacos config listener can read it while build() modifies it, so make it volatile or use a thread-safe collection like CopyOnWriteArrayList.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "in...
null
alibaba__spring-ai-alibaba__4111
alibaba/spring-ai-alibaba
4,111
defect
980f4870cb8a0cffc0e5fc2e74baced30a50aff2
d750687173034dc8a5f2e9655cd920dbadb341c7
fix(graph): java.lang Serialization failed
### Describe what this PR does / why we need it JacksonDeserializer.java 的 deserializeArrayNode 方法 当遇到格式为 ["java.lang.Long", 300] 的数组时: 走的是 ``` if (className.startsWith("java.")) { // 返回List而不是原始类型 List<Object> list = new java.util.ArrayList<>(payload.size()); for (JsonNode ...
diff --git a/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/serializer/plain_text/jackson/JacksonDeserializer.java b/spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/serializer/plain_text/jackson/JacksonDeserializer.java index 65a8ef7bb9..076fdf2a89 100644 --- a/spring-ai-ali...
4
3
3
[{"id": "G0", "claim": "The new primitive-wrapper branch fires for any type under java.lang.* / java.math.* (e.g. java.lang.Object, java.lang.Class, java.lang.StringBuilder), returning partially-converted primitives or raw JsonNode, so it should be restricted to an explicit allowlist of supported wrapper types instead ...
null
alibaba__spring-ai-alibaba__4157
alibaba/spring-ai-alibaba
4,157
defect
32a6c644f15b32429e9c04111eea6b3713ac0ea9
aa28889daa270cdd84d19e9f32a71842b43fe32f
feat: build additional loop&condition agent hook
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it see:https://github.com/alibaba/spring-ai-alibaba/pull/4101 ### Describe how to verif...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/strategy/ConditionalGraphBuildingStrategy.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/strategy/ConditionalGraphBuildingStrategy.java index 9e9057617b..9719de7b5f 100644 ---...
2
2
1
[{"id": "G0", "claim": "The API key \"6607aa76b08245109a406ceac465356c\" and internal URL \"http://1688openai.alibaba-inc.com\" hardcoded in FlowAgentHookTest should not be committed; the test should retrieve the API key from environment variables via System.getenv(\"AI_DASHSCOPE_API_KEY\") as other tests in the codeba...
null
alibaba__spring-ai-alibaba__4479
alibaba/spring-ai-alibaba
4,479
defect
cba13cc555d64140ff6f73496666899070cd3707
3944821ceed5c0fa1bfff1bfc1be32b278b6c603
fix(agent): set correct agent name for AgentTool sub-agent runs
### Why is this change needed? The issue was not that metadata failed to propagate entirely. fix : https://github.com/alibaba/spring-ai-alibaba/pull/4461 The actual behavior before this fix was: parent runtime metadata was copied into the child config business metadata such as userId could still propagate b...
diff --git a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/AgentTool.java b/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/graph/agent/AgentTool.java index fdc3ce0790..810847c09e 100644 --- a/spring-ai-alibaba-agent-framework/src/main/java/com/alibaba/cloud/ai/gr...
2
2
1
[{"id": "G0", "claim": "The RuntimeException rethrown when sub-agent execution fails has a very generic message even though it becomes the error surfaced to the LLM/tool caller; it should include at least the sub-agent name and optionally the original GraphRunnerException message/threadId so failures are diagnosable.",...
null
alibaba__spring-cloud-alibaba__1149
alibaba/spring-cloud-alibaba
1,149
defect
aba89ed5ba55ca64ee65649b2539f980a39fd7e8
1368a1aa844ad2a5d404a13aa299509c0126da0a
Change the class type of RocketMQ nameServer
### Describe what this PR does / why we need it Change the class type of RocketMQ nameServer to `List<String>` ### Does this pull request fix one issue? fixed #1054
diff --git a/spring-cloud-stream-binder-rocketmq/src/main/java/com/alibaba/cloud/stream/binder/rocketmq/RocketMQBinderUtils.java b/spring-cloud-stream-binder-rocketmq/src/main/java/com/alibaba/cloud/stream/binder/rocketmq/RocketMQBinderUtils.java index 3cd7c85bd4..d5f80cb32f 100644 --- a/spring-cloud-stream-binder-rock...
1
1
1
[{"id": "G0", "claim": "rocketMQProperties.getNameServer() returns addresses separated by \";\", so wrapping it in Arrays.asList does not split it into individual name server addresses.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alibaba__spring-cloud-alibaba__2477
alibaba/spring-cloud-alibaba
2,477
defect
88326fb17af2b111d47377e6e43a4ffcc9c77332
5c0fa0a612e52b0ead84492603f1ab01792a485b
Fix sentinel datasource init error in jacocoagent environment
### Describe what this PR does / why we need it Fix sentinel datasource init error in jacocoagent environment ### Does this pull request fix one issue? Fixes #2476 ### Describe how you did it 1. add isSynthetic check 2. wrote some unit test for DataSourcePropertiesConfiguration and SentinelDataSourceHandler ...
diff --git a/spring-cloud-alibaba-starters/spring-cloud-alibaba-sentinel-datasource/src/main/java/com/alibaba/cloud/sentinel/datasource/config/DataSourcePropertiesConfiguration.java b/spring-cloud-alibaba-starters/spring-cloud-alibaba-sentinel-datasource/src/main/java/com/alibaba/cloud/sentinel/datasource/config/DataSo...
2
2
0
[{"id": "G0", "claim": "Add explanatory comments to the two new test classes (SentinelDataSourceHandlerTests and DataSourcePropertiesConfigurationTests) documenting the tests and the jacoco test environment.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
alibaba__spring-cloud-alibaba__2511
alibaba/spring-cloud-alibaba
2,511
defect
c04f3b6b58c600f93d20e1184a923e5e157cd9bf
ead86ec2db587b38db4f432dc8490ba151778f4e
rocketmq anonymous group supports.
### Describe what this PR does / why we need it ### Does this pull request fix one issue? Provide Rocketmq anonymous group support. Now anonymous group will be setting as "anonymous_" + destination. It is a fix for #2501 <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, ...
diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-stream-rocketmq/src/main/java/com/alibaba/cloud/stream/binder/rocketmq/RocketMQMessageChannelBinder.java b/spring-cloud-alibaba-starters/spring-cloud-starter-stream-rocketmq/src/main/java/com/alibaba/cloud/stream/binder/rocketmq/RocketMQMessageChannelBinde...
1
1
0
[{"id": "G0", "claim": "The test should use AssertJ instead of JUnit 5 assertions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__spring-cloud-alibaba__2662
alibaba/spring-cloud-alibaba
2,662
defect
23de9f3b36d5d9389eaa85e753cb307f5f0da9b6
b9a25099bdc95a72b81dd75ffc986001e69ae906
support IPv6
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/NacosDiscoveryProperties.java b/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/NacosDiscoveryProperties.java index 5b5ae94212..0...
2
2
1
[{"id": "G0", "claim": "The pull request should not delete the failureToleranceEnabled field (with its getter, setter and the equals/toString references) from NacosDiscoveryProperties.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The @Bean method ...
null
alibaba__spring-cloud-alibaba__2663
alibaba/spring-cloud-alibaba
2,663
defect
2735e0329c248bafc97f789ad79e47640e10ccc1
3063a72a4a3e42d3e6b4e3f1bd40e109545374e5
Adpate ipv6
### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/spring-cloud-alibaba-examples/nacos-example/nacos-discovery-example/nacos-discovery-provider-example/src/main/resources/application.properties b/spring-cloud-alibaba-examples/nacos-example/nacos-discovery-example/nacos-discovery-provider-example/src/main/resources/application.properties index e967cd12fb..a...
2
2
0
[{"id": "G0", "claim": "The spring.factories entry should spell the package 'inetutil' instead of 'intetutil'.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The @Bean method in UtilIPv6AutoConfiguration should be renamed from \"inet6Util\" to \"ine...
null
alibaba__spring-cloud-alibaba__2694
alibaba/spring-cloud-alibaba
2,694
defect
2bfc4d2c15a9e14292f285e29b5962c643062800
36d5f7ef6f92440be83ce0b036e876613442af27
[featrue] junit5+testcontainer. refactor unit test
Related to [issues-2566](https://github.com/alibaba/spring-cloud-alibaba/issues/2566) 1.Add test thread timeout setting 2.Add junit5 to initialize different configurations according to the hook function ### Describe what this PR does / why we need it ### Does this pull request fix one issue? <!--If that,...
diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index 804dab9dbb..5d30f12627 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -7,6 +7,19 @@ on: branches: - 2021.x jobs: + deploy-docker-iamge: + runs-on: ubun...
2
2
0
[{"id": "G0", "claim": "The workflow job name `deploy-docker-iamge` is misspelled and should be `deploy-docker-image`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Variable naming in NacosConfigRefreshTest is irregular (e.g. `serverIp8`, `serv...
null
alibaba__spring-cloud-alibaba__2904
alibaba/spring-cloud-alibaba
2,904
defect
2675284aaee1ca573d468027a86d547cc61e4f02
90f2e2736cc69761d1bbab86c01c912b0501310e
Refactor NacosWatch and support zuul in 2.2.x
### Describe what this PR does / why we need it Refactor NacosWatch ### Does this pull request fix one issue? Refer #2868 ### Describe how you did it #### 1. NacosWatch is no longer enabled by default . Using `spring.cloud.nacos.discovery.watch.enabled=true` to enabled it. #### 2. NacosWatch#heartBeat migrat...
diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/pom.xml b/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/pom.xml index dae98efdaa..81ca9adadd 100644 --- a/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/pom.xml +++ b/spring-c...
1
1
1
[{"id": "G0", "claim": "The configuration-metadata hint for spring.cloud.nacos.discovery.watch.enabled should be modified: its defaultValue of true contradicts the pull request's new behaviour where NacosWatch is no longer enabled by default.", "category": "documentation", "verdict": "supported", "priority": "P1", "sco...
null
alibaba__spring-cloud-alibaba__3026
alibaba/spring-cloud-alibaba
3,026
defect
3cb9c9620322c06643d8e2f9c0aac06c2fdb5bac
4e1bc98da8a6b09cbf3b08b326c910ae7bfb9d9b
filter invalid IPv6
### Describe what this PR does / why we need it ### Does this pull request fix one issue? #3012 <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/NacosDiscoveryProperties.java b/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/NacosDiscoveryProperties.java index 01b89ac074..0...
5
5
3
[{"id": "G0", "claim": "Use the JDK method inetAddress.isLinkLocalAddress() instead of the custom isLocalAddress helper to filter link-local IPv6 addresses.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Use the JDK method inetAddress.isAnyLocalAddr...
null
alibaba__spring-cloud-alibaba__3029
alibaba/spring-cloud-alibaba
3,029
defect
3cb9c9620322c06643d8e2f9c0aac06c2fdb5bac
4720e84124b090a2ea5bd9695086b0bab57cc5a9
support both IPv4 and IPv6 register
### Describe what this PR does / why we need it ### Does this pull request fix one issue? #3014 <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ### Special notes for reviews
diff --git a/spring-cloud-alibaba-examples/nacos-example/nacos-discovery-example/nacos-discovery-provider-example/src/main/resources/application.properties b/spring-cloud-alibaba-examples/nacos-example/nacos-discovery-example/nacos-discovery-provider-example/src/main/resources/application.properties index 408e9d2c2d..4...
11
10
2
[{"id": "G0", "claim": "Use the normal formats IPv4 and IPv6 for the new IP-type constants/values.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Move the inline IP-selection and IPv4-to-IPv6 conversion logic in NacosRule.choose() into private m...
null
alibaba__spring-cloud-alibaba__3135
alibaba/spring-cloud-alibaba
3,135
defect
1eacea72d0b5cb966df460e3cd8912b11fac0834
654836aec40b6933d33f724f1302b71d8ad8becc
fallback support factoryBean
### Describe what this PR does / why we need it fallback support factoryBean ### Does this pull request fix one issue? https://github.com/spring-cloud/spring-cloud-openfeign/issues/822 ### Describe how you did it ### Describe how to verify it junit test ### Special notes for reviews
diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-sentinel/src/main/java/com/alibaba/cloud/sentinel/feign/SentinelFeign.java b/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-sentinel/src/main/java/com/alibaba/cloud/sentinel/feign/SentinelFeign.java index 281399f7a9..11e00ad5fe 100644 -...
4
3
0
[{"id": "G0", "claim": "The test class name should start with `Sentinel`, e.g. `SentinelFallbackSupportFactoryBeanTests`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment at that spot in SentinelFeign.java explaining what issue the F...
null
alibaba__spring-cloud-alibaba__3207
alibaba/spring-cloud-alibaba
3,207
defect
9c86f76eae3ae6c6dd22df1c2a3da7b86b11bbfe
84cfd4eaed02c964ac152baa91ce5d039f950f51
feature: support dual stack address registry and discovery in SCL
Support dual stack address registry and discovery in SCL, refer to #3014
diff --git a/spring-cloud-alibaba-docs/src/main/asciidoc-zh/nacos-discovery.adoc b/spring-cloud-alibaba-docs/src/main/asciidoc-zh/nacos-discovery.adoc index e461c81739..4721d4cf36 100644 --- a/spring-cloud-alibaba-docs/src/main/asciidoc-zh/nacos-discovery.adoc +++ b/spring-cloud-alibaba-docs/src/main/asciidoc-zh/nacos-...
1
1
0
[{"id": "G0", "claim": "In readme-zh.md's SCL integration section the product name should be written `Spring Cloud LoadBalancer` instead of `Spring Cloud Loadbalancer` (raised at the section heading and at the configuration paragraph).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "i...
null
alibaba__spring-cloud-alibaba__3308
alibaba/spring-cloud-alibaba
3,308
defect
9c83fb8e95adf77d853c23ce5b715e130875cda9
2c962c653cd77dd381ff93e090d46b5ba965369e
fix: Nacos integration with SpringBootAdmin.(2.2.x)
### Describe what this PR does / why we need it Refactor GatewayLocatorHeartBeatPublisher to enable friendly subscription to HeartBeat events in addition to the gateway ### Does this pull request fix one issue? Refer #3258 ### Describe how you did it 1. GatewayLocatorHeartBeatPublisher migrate to NacosDisco...
diff --git a/spring-cloud-alibaba-docs/src/main/asciidoc-zh/nacos-discovery.adoc b/spring-cloud-alibaba-docs/src/main/asciidoc-zh/nacos-discovery.adoc index 00972aeb49..8e98080bc4 100644 --- a/spring-cloud-alibaba-docs/src/main/asciidoc-zh/nacos-discovery.adoc +++ b/spring-cloud-alibaba-docs/src/main/asciidoc-zh/nacos-...
1
1
1
[{"id": "G0", "claim": "The newly added spring-cloud-netflix-zuul test dependency in the xds-adapter pom and the @AutoConfigureAfter annotation in NacosDiscoveryHeartBeatConfiguration are a problem newly introduced by this PR — referencing ZuulProxyMarkerConfiguration as a class forces a hard Zuul dependency, so it mus...
null
alibaba__spring-cloud-alibaba__3370
alibaba/spring-cloud-alibaba
3,370
defect
ba8d0f2631bdf0d6f82bcebc08c9f002a1b9aacd
cc9fffe426e3c0eb99fa12ccc6012d516bfb3527
[2022.x] Add SentinelProtectInterceptor AOT hints
### Describe what this PR does / why we need it ```java mvn clean native:compile -Pnative ``` ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> ### Describe how you did it ### Describe how to verify it ...
diff --git a/spring-cloud-alibaba-examples/sentinel-example/sentinel-resttemplate-example/src/main/java/com/alibaba/cloud/examples/RestTemplateApplication.java b/spring-cloud-alibaba-examples/sentinel-example/sentinel-resttemplate-example/src/main/java/com/alibaba/cloud/examples/RestTemplateApplication.java index 44c50...
1
1
1
[{"id": "G0", "claim": "The SentinelProtectInterceptorHints (and its test) should be added to the spring-cloud-starter-alibaba-sentinel module instead of living only in the sentinel-resttemplate-example.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alibaba__spring-cloud-alibaba__3794
alibaba/spring-cloud-alibaba
3,794
defect
ea5182f53a128e61de8a4dabc40c87acb03ffcf7
9c8652ce5bdc2ad11b93f2ff4992d11444a4fbc0
feature 2023.x: Expand NacosLoadBalancer to conveniently support custom service list filtering and load balancing algorithms
Expand NacosLoadBalancer to conveniently support custom service list filtering and load balancing algorithms ### Describe what this PR does / why we need it At present, neither the official loadbalancer provided by Spring Cloud nor the existing NacosLoadBalancer can meet personalized load balancing requirements. ...
diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/loadbalancer/DefaultLoadBalancerAlgorithm.java b/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/loadbalancer/DefaultLoadBalancer...
1
1
0
[{"id": "G0", "claim": "The new file LoadBalancerAlgorithm.java should carry the copyright header '2023-2024' instead of '2013-2023'.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
alibaba__spring-cloud-alibaba__4063
alibaba/spring-cloud-alibaba
4,063
defect
d96c1147c5f6ce9f7dd1de5d18841f1d85ca1f70
502cdf2b90495c9baf0707a9e6414edd228d35d9
feat:适配了restClient,并撰写对应example
### Describe what this PR does / why we need it 适配了restClient,并撰写对应example ### Does this pull request fix one issue? None
diff --git a/spring-cloud-alibaba-examples/pom.xml b/spring-cloud-alibaba-examples/pom.xml index 3e0d97aa16..3a14cc1aa0 100644 --- a/spring-cloud-alibaba-examples/pom.xml +++ b/spring-cloud-alibaba-examples/pom.xml @@ -20,6 +20,7 @@ <module>sentinel-example/sentinel-core-example</module> <module>senti...
5
5
1
[{"id": "G0", "claim": "Registering the interceptor with list.add should preferably use addFirst so the Sentinel interceptor takes priority, while noting first position cannot be guaranteed when users rely on their own Spring extension mechanisms.", "category": "design", "verdict": "supported", "priority": "P2", "scope...
null
alibaba__spring-cloud-alibaba__4065
alibaba/spring-cloud-alibaba
4,065
defect
33d3bed6204b220f0548e79fdd9028b136788870
1b1508b46a181a20aa958e1e621d93204964a85a
fix: avoid exceptions and repeated waits during Nacos client graceful shutdown
### Describe what this PR does / why we need it refer to https://github.com/alibaba/spring-cloud-alibaba/issues/4064 ### Does this pull request fix one issue? Fixes #4064 ### Describe how you did it Refactored the Nacos client’s graceful-shutdown logic by extracting a dedicated event listener to handle it. ...
diff --git a/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/registry/NacosAutoServiceRegistration.java b/spring-cloud-alibaba-starters/spring-cloud-starter-alibaba-nacos-discovery/src/main/java/com/alibaba/cloud/nacos/registry/NacosAutoServiceRegistratio...
2
2
0
[{"id": "G0", "claim": "Update the copyright year in the new NacosGracefulShutdownDelegate.java header from 2013-2023 to 2013-2025.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a log line reporting the Nacos client graceful shutdown wait tim...
null
alibaba__spring-cloud-alibaba__4149
alibaba/spring-cloud-alibaba
4,149
defect
5d1d4b4e20ef64a9e3df13cfb97fdcf139e9c538
efb4ba5bc8982c205aa04f72fa792fc26a396588
Fixbug issue4147 2025.1.x,同 PR 4148
解决问题 #4147,同PR #4148 https://github.com/alibaba/spring-cloud-alibaba/pull/4148 合入 2025.1.x 分支。
diff --git a/spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/NacosConfigManager.java b/spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/NacosConfigManager.java index 3ff46fe592..91da56772c 100644 --- a/spring-cloud-alibaba-st...
4
3
2
[{"id": "G0", "claim": "bindHandler is a statically writable static field and NacosConfigDataLocationResolver sets it in isResolvable, so multiple concurrent parsing threads may repeatedly set it or read a null value; the setter should ensure the value is initialized only once (atomic/double-checked locking, synchroniz...
null
alibaba__spring-cloud-alibaba__4162
alibaba/spring-cloud-alibaba
4,162
defect
89436ae9c973a4effa6540dcba0c5a38a863768d
75f88414c6bbf77e957ff22991abf427b83d8e26
Supplementing Spring Boot 4.0.0 and Spring Cloud 2025.1.0
### Describe what this PR does / why we need it ### Does this pull request fix one issue? https://github.com/alibaba/spring-cloud-alibaba/issues/4067 https://github.com/alibaba/spring-cloud-alibaba/pull/4068 <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" -...
diff --git a/spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/constants/Constants.java b/spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/constants/Constants.java index 63f06fd4ae..4b1c7bc680 100644 --- a/spring-cloud-alibaba-...
1
1
1
[{"id": "G0", "claim": "Dropping the RecoveryCallback from the retry execution is unreasonable and changes the original behavior; the PR should keep recovery handling — preferably via a solution based on Spring 7's built-in retry, and as a temporary measure by extending the RetryListener's onRetryPolicyExhaustion to ca...
null
alibaba__spring-cloud-alibaba__4254
alibaba/spring-cloud-alibaba
4,254
defect
8294806fafd66c5cf0c7d135a2d1f79aed81e48d
ba1e1ef4ca6bdfe3aea97a95b06d9debb3f7cd32
fix: nacos config array/list type refresh not triggered
Fixes #4239. ## Problem When YAML configuration contains array/list types (e.g. `Set<String>`, `List<String>`), the Nacos config change parser (`ScaYamlConfigChangeParser`) flattens keys with array indices: ```yaml storeCodes: - code1 - code2 - code3 ``` Produces `ConfigChangeItem` keys like `storeCodes[0]`, ...
diff --git a/spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/annotation/NacosPropertiesKeyListener.java b/spring-cloud-alibaba-starters/spring-alibaba-nacos-config/src/main/java/com/alibaba/cloud/nacos/annotation/NacosPropertiesKeyListener.java index e4664b6ce3..7f42da1ce...
1
1
1
[{"id": "G0", "claim": "The test class's package path seems incorrect — it sits under a dotted directory (com.alibaba.cloud.nacos/) and needs to be updated to the proper package path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
alibaba__spring-cloud-alibaba__838
alibaba/spring-cloud-alibaba
838
defect
8832644850bcce7f84d10603da6c0e54c849a543
85617c675748083ea4ca023491d0d36340631a8b
fix spring cloud open feign in g version , sentinel-feign contextid bug
### Describe what this PR does / why we need it fix spring cloud open feign in g version , sentinel-feign contextid bug ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. Otherwise, add "NONE" --> Fixes https://github.com/alibaba/spring-cloud...
diff --git a/spring-cloud-alibaba-sentinel/src/main/java/com/alibaba/cloud/sentinel/feign/SentinelFeign.java b/spring-cloud-alibaba-sentinel/src/main/java/com/alibaba/cloud/sentinel/feign/SentinelFeign.java index b869f84440..3dbc00adbb 100644 --- a/spring-cloud-alibaba-sentinel/src/main/java/com/alibaba/cloud/sentinel/...
2
1
1
[{"id": "G0", "claim": "The new check of beanName from contextId, with the StringUtils.hasText fallback to name, is unnecessary because if contextId is empty it will already be obtained via OpenFeign's getName method.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "...
null
alibaba__spring-cloud-alibaba__864
alibaba/spring-cloud-alibaba
864
defect
ed87dd2fd99a8cd5a31ecfd7aaeb5cca5efecd61
57ec776c7b531209a9703742ea63f6eca4794828
Fix #762 SentinelRestTemplate enhancement
### Describe what this PR does / why we need it This PR enables users to configure `UrlCleaner` and `UrlCleanerClass` in `SentinelRestTemplate` annotation to clean the url. ### Does this pull request fix one issue? Fixes #762 ### Describe how you did it Adding two new configurations `UrlCleaner` and `Ur...
diff --git a/spring-cloud-alibaba-examples/nacos-example/nacos-discovery-example/nacos-discovery-consumer-example/src/main/java/com/alibaba/cloud/examples/ConsumerApplication.java b/spring-cloud-alibaba-examples/nacos-example/nacos-discovery-example/nacos-discovery-consumer-example/src/main/java/com/alibaba/cloud/examp...
4
4
1
[{"id": "G0", "claim": "Remove the useless debug System.out.println statements added to the interceptor.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the existing `methodInvoke` helper instead of a native `Method.invoke` call with its own ...
null
alibaba__spring-cloud-alibaba__900
alibaba/spring-cloud-alibaba
900
defect
39a7bede546f9d46e0b126146fcd4cb87c998468
9edab1215b5c8dc5cf65e54933715d5bf2d7a3d0
Support OssStorage Resource as WritableResource and add related unittest cases
### Describe what this PR does / why we need it Allow the OssStorageResource to support WritableResource so that we could get an OutputStream and directly upload binary from the resource. ### Does this pull request fix one issue? <!--If that, add "Fixes #xxxx" below in the next line. For example, Fixes #15. ...
diff --git a/spring-cloud-alibaba-examples/oss-example/src/main/java/com/alibaba/cloud/examples/OssController.java b/spring-cloud-alibaba-examples/oss-example/src/main/java/com/alibaba/cloud/examples/OssController.java index c1c9d261f0..30d51c72c7 100644 --- a/spring-cloud-alibaba-examples/oss-example/src/main/java/com...
7
6
2
[{"id": "G0", "claim": "The sample's uploadWithOutputStream should not construct OssStorageResource directly but get the OutputStream from the oss:// protocol-resolved resource and write through it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new ...
null
alibaba__tengine__388
alibaba/tengine
388
defect
daf20c422e40d2aa3162b5bdb08220445103a4de
86b7d407abff394586263210059b792ae500e6e1
fix bug described in issue 384, which is about persistent connection in ...
1,默认check_keepalive_requests设置为1,即默认采用短连接,如果用户想采用长连接,需要将此值设置为大于1的数,并在自行设置的send内容中添加header,Connection: keep-alive。 2,采用一个discard handler,用于接收不需要的header及body数据,避免下次check时,读到上次响应的末段数据,导致解析出错。 3,test case修改。
diff --git a/src/http/ngx_http_upstream_check_module.c b/src/http/ngx_http_upstream_check_module.c index e3abf02ebd..6c68931b78 100644 --- a/src/http/ngx_http_upstream_check_module.c +++ b/src/http/ngx_http_upstream_check_module.c @@ -264,6 +264,7 @@ static void ngx_http_upstream_check_peek_handler(ngx_event_t *event);...
4
3
1
[{"id": "G0", "claim": "The discard handler's receive loop is redundant and should be restructured so that size > 0 continues, NGX_AGAIN returns and everything else breaks into error handling, without specially emphasising the peer closing the connection unless it is distinguished in a debug log.", "category": "maintai...
null
alibaba__tengine__741
alibaba/tengine
741
defect
b2f67bedc9a9d9c0d9022b6918a2e7e19ae4026c
13814dfa33ba1354dee7a35d5be50dc9d72bbf92
expose api ngx_http_upstream_check_upstream_down to check upstream
Hello, this PR is try to expose api for check upstream status on ngx_http_upstream_check_module for this issue #740
diff --git a/src/http/ngx_http_upstream_check_module.c b/src/http/ngx_http_upstream_check_module.c index aae05a54a3..a8464f4a7a 100644 --- a/src/http/ngx_http_upstream_check_module.c +++ b/src/http/ngx_http_upstream_check_module.c @@ -1321,6 +1321,29 @@ ngx_http_upstream_check_peer_down(ngx_uint_t index) } +ngx_ui...
2
2
2
[{"id": "G0", "claim": "The comparison must also check peers[i].upstream_name->len == upstream->len, since ngx_strncmp over upstream->len alone can falsely match a peer whose upstream name merely starts with the given name.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {...
null
alibaba__tengine__993
alibaba/tengine
993
defect
5942159450440416f6e2eb75c9b525c29910a083
478d5bac89dadf1a062f4b03dc970264b75b568e
OpenSSL-1.1.0 asynchronous SSL/TLS mode support
OpenSSL provide asynchronous SSL/TLS mode since 1.1.0 version. This commit improve Tengine SSL layer to support the asynchronous mode based on OpenSSL-1.1.0f release. Docs and basic test case are also provided.
diff --git a/LICENSE b/LICENSE index 0b2ce6ff40..83ac2a866b 100644 --- a/LICENSE +++ b/LICENSE @@ -7,6 +7,7 @@ * Copyright (C) 2011-2013 Weibin Yao * Copyright (C) 2012-2013 Sogou, Inc. * Copyright (C) 2012-2013 NetEase, Inc. + * Copyright (C) 2014-2017 Intel, Inc. * All rights reserved. * * Redistribution ...
12
12
4
[{"id": "G0", "claim": "The #if guard around the new async_events field in ngx_cycle_t should also be gated on the OpenSSL version, not NGX_SSL alone (the comment asks why there is no OPENSSL_VERSION_NUMBER check).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c...
null
alibaba__xquic__291
alibaba/xquic
291
defect
4ff9ee6c10045f6deb34a5156f96379b2109dfdc
97dd5837d187c4f4c78affa37cb9103bfce25876
[=] Added parameter descriptions
Update parameter descriptions in Testing-zh.md, test_client.c test_server.c.
diff --git a/docs/docs-zh/Testing-zh.md b/docs/docs-zh/Testing-zh.md index a487c5c48..1c080c170 100644 --- a/docs/docs-zh/Testing-zh.md +++ b/docs/docs-zh/Testing-zh.md @@ -41,6 +41,7 @@ openssl req -newkey rsa:2048 -x509 -nodes -keyout "$keyfile" -new -out "$certfil | -T | Transport layer. No HTTP3. | | -1 |...
2
2
0
[{"id": "G0", "claim": "The docs table documents the random-CID option as `-j` but it should be `-J`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The client usage string documents the random-CID option as `-j` but it should be `-J`.", "category...
null
alibaba__xquic__410
alibaba/xquic
410
defect
360744239cf0235b91593e1cffcbcf53d70acc37
a26f35ec6e7b2dac0d303a53743239208b7530fa
small optimizations for XQUIC
Hello everyone. Here I have prepared a small request containing some optimizations for the xquic implementation, which, it seems to me, have a right to exist. I will be glad to receive feedback. * Best regards, Pavel
diff --git a/src/transport/scheduler/xqc_scheduler_backup.c b/src/transport/scheduler/xqc_scheduler_backup.c index ec7fad53c..a853db8fa 100644 --- a/src/transport/scheduler/xqc_scheduler_backup.c +++ b/src/transport/scheduler/xqc_scheduler_backup.c @@ -26,8 +26,8 @@ xqc_backup_scheduler_get_path(void *scheduler, xqc_co...
5
5
4
[{"id": "G0", "claim": "Do not change this logic: cc_blocked must be set to true only when the cwnds of all paths are full, and the removed early reset of *cc_blocked should not be changed.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Do not defin...
null
alibaba__xquic__415
alibaba/xquic
415
defect
b691b6e681b086e74595ce2ddc02e4dadad18c18
b5a408860e369af95098c3108d2774310056893b
[+] release version 1.7.2
[+] Fix the compilation error on the Windows platform. @pengyutang125 [+] Refine the state parameters and logs related to h3 request. @yangfurong [-] Delete redundant code. @Ya-Pasha-364shy
diff --git a/demo/demo_client.c b/demo/demo_client.c index 7765e1206..ad1ccb66b 100644 --- a/demo/demo_client.c +++ b/demo/demo_client.c @@ -1268,10 +1268,10 @@ xqc_demo_cli_h3_request_close_notify(xqc_h3_request_t *h3_request, void *user_da xqc_request_stats_t stats; stats = xqc_h3_request_get_stats(h3_reque...
1
1
0
[{"id": "G0", "claim": "The opening brace of the newly added xqc_send_ctl_get_pacing_rate function should be moved onto its own line instead of ending the signature line.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
alibaba__xquic__427
alibaba/xquic
427
defect
c95ca00de0b97d9c50949aeb7122d8298eb5fe0a
2cafc1811ba55ce4c4f2ee809acf8fffcb7482ff
[!] fix handle Retire Prior To error when NEW_CONNECTION_ID arrives and retire all the previous CIDs
if peer issues a NEW_CONNECTION_ID frame and retire all the previous CIDs with Retire Prior To field, XQUIC will consider there is not enough CID and fails to handle this case as XQUIC don't insert the new CID in its dcid_set before handle Retire Prior To field. Insert CID before handling Retire Prior To field, and ...
diff --git a/src/transport/xqc_frame.c b/src/transport/xqc_frame.c index a7f79f891..54d200934 100644 --- a/src/transport/xqc_frame.c +++ b/src/transport/xqc_frame.c @@ -738,13 +738,17 @@ xqc_process_ping_frame(xqc_connection_t *conn, xqc_packet_in_t *packet_in) xqc_int_t xqc_process_new_conn_id_frame(xqc_connection_t...
1
1
1
[{"id": "G0", "claim": "The Retire Prior To field is defined as an absolute value, not a relative one, so the added line 'cid_limit += retire_prior_to' misuses it when enforcing the CID limit.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null