Commit Graph

152 Commits

Author SHA1 Message Date
LearningGp d75a6687b8 chore: update release configuration
Change-Id: Ic0556103ed65c4c760bb9b21132b72cd22770b68
2025-10-17 14:14:18 +08:00
LearningGp eb3a9b099a
Bump version to 1.8.9 (#3566)
* chore: update release configuration

* Bump version to 1.8.9
2025-10-16 20:26:58 +08:00
XenoAmess 7e17ae7c0d
chore: refine pom (#3560) 2025-09-30 15:08:50 +08:00
Lingzhi 195150bc74
fix issue 2485 which occur oom when using async servlet request. (#3440)
* fix issue 2485 which occur oom when using async servlet request.

* optimize imports

* 1. fix the same issue in the webmvc-v6x
2. improve based on review comments
2024-08-23 13:43:53 +08:00
lemonJ b78b09d324
feat: sentinel can feel exception though application has configured ExceptionHandler (#3409) 2024-08-20 16:29:38 +08:00
zhangxunwei 02c97fef65
Add sentinel servlet adapter demo (#3422) 2024-08-16 14:30:07 +08:00
LearningGp 3892514c53 Bump version to 1.8.8 2024-06-04 16:05:34 +08:00
dowenliu-xyz 568e2df296
Fix reflection exceptions caused by having identically named fallback/blockHandler with different parameter types (#3395) 2024-05-29 20:26:30 +08:00
Robert Lu cd02b1dc8d
fix flaky tests and fix passDefaultLocalCheck (#3367)
* fix test case SentinelDubboConsumerFilterTest#testDegradeSync

* When test is run slow, count bucket will count on next time span, causing failed test.

* dos2unix ParamFlowDefaultCheckerTest.java

* fix testParamFlowDefaultCheckSingleValueCheckQpsMultipleThreads by rule.setDurationInSec(2)

* set threshold as count in 2 seconds to prevent the failure of the unit test when the unit test runs longer than 1 second.

* fix quarkus test by set /txt sleep 300

* If /txt sleep 500 ms, in testSentinelJaxRsQuarkusAdapter, may cause 2 request intervals of more than 1 s, which cause rate limit policy is not effective.

* fix testDegradeAsync

* When test is run slow, count bucket will count on next time span, causing failed test.

* use testcontainers to fix testConsulDataSourceWhenInit

* Project embedded-consul has been deprecated in favour of org.testcontainers:consul
* use consul testcontainers to fix testConsulDataSourceWhenInit, which means docker is required to run tests.
```
Error:  com.alibaba.csp.sentinel.datasource.consul.ConsulDataSourceTest.testConsulDataSourceWhenInit -- Time elapsed: 34.47 s <<< ERROR!
  com.pszymczyk.consul.EmbeddedConsulException: Could not start Consul process in 30 seconds
  	at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
  	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
  	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
  	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:72)
 ```

* introduce intermediate node to avoid ABA problem
2024-04-17 10:25:25 +08:00
Robert Lu ae6ebb49d0
Move document-lint from circleci to github-actions (#3345)
Move document-lint from circleci to github-actions.
Adjust document according to markdownlint-cli rules.
2024-02-21 17:05:29 +08:00
LearningGp f3fd4e6187 Bump version to 1.8.7 2023-12-28 19:32:10 +08:00
LearningGp 665fb541a7 Bump version to 1.8.7-SNAPSHOT 2023-12-28 17:48:44 +08:00
LearningGp 15bd6c62b9
Add FlowQpsRegexDemo in sentinel-demo-basic (#3296) 2023-12-28 17:44:48 +08:00
dependabot[bot] ee9ea81746 build(deps): Bump dubbo to 2.7.18 in sentinel-demo/sentinel-demo-apache-dubbo (#2923)
Bumps [dubbo](https://github.com/apache/dubbo) from 2.7.3 to 2.7.18.
- [Release notes](https://github.com/apache/dubbo/releases)
- [Changelog](https://github.com/apache/dubbo/blob/3.1/CHANGES.md)
- [Commits](https://github.com/apache/dubbo/compare/dubbo-2.7.3...dubbo-2.7.18)

---
updated-dependencies:
- dependency-name: org.apache.dubbo:dubbo
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-27 20:40:26 +08:00
Ezreal 826f40f0fc opt: 移除无用的代码 2023-12-27 20:40:26 +08:00
Eric Zhao dd1ba2725e Bump version to 1.8.6
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2022-10-25 16:57:18 +08:00
Eric Zhao 84df19b2c5 Bump version to 1.8.6-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2022-09-15 09:50:36 +08:00
Eric Zhao 24ac1be442 Bump version to 1.8.5 and update README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2022-08-08 21:29:40 +08:00
Eric Zhao 9b7786259e Bump version to 1.8.5-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2022-08-08 09:52:51 +08:00
Eric Zhao 16e1bb8fe8 Bump version to 1.8.4
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2022-04-12 10:14:53 +08:00
Eric Zhao 1576500178 build(deps): Bump spring.boot.version to 2.5.12 for sentinel-demo modules and polish demo dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2022-04-02 15:20:33 +08:00
一个不知名的Java靓仔 3cd8970e07 Add interceptor SPI for transport command handler (#2587)
* support intercept specified command handler
* add unit test and demo
2022-03-29 11:42:43 +08:00
dependabot[bot] 0cd06291f3
build(deps): Bump log4j-core to 2.17.1 in sentinel-demo-apollo-datasource (#2525)
Bumps log4j-core from 2.17.0 to 2.17.1.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-10 10:39:24 +08:00
Eric Zhao 8724a7c0a1 Bump version to 1.8.4-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2022-01-01 11:00:04 +08:00
Eric Zhao 6135ff290a Bump version to 1.8.3
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2021-12-31 14:46:52 +08:00
Eric Zhao 51b21921f5 Bump version to 1.8.3-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2021-12-22 14:48:43 +08:00
dependabot[bot] 37542a8378
build(deps): Bump log4j-core to 2.16.0 in sentinel-demo-apollo-datasource (#2493)
Bumps log4j-core from 2.15.0 to 2.16.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-17 16:45:51 +08:00
dependabot[bot] 6649d5b019
build(deps): Bump log4j-core to 2.15.0 in sentinel-demo-apollo-datasource (#2486)
Bumps log4j-core from 2.9.1 to 2.15.0.

---
updated-dependencies:
- dependency-name: org.apache.logging.log4j:log4j-core
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-11 15:56:11 +08:00
Eric Zhao 4498de480f Bump version to 1.8.2
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2021-07-05 19:59:44 +08:00
yunan.zhang aef00c48ed
demo: Improve remoteAddress and groupId of sentinel-demo-nacos-datasource (#2134)
* Update NacosConfigSender.java
* Update NacosDataSourceDemo.java
* fix(Nacos Demo): remoteAddress error
2021-04-15 10:00:37 +08:00
cdfive a79ef35847
example: Add separate demo for slot/slot chain SPI (#2085) 2021-03-19 17:24:43 +08:00
shenbaoyong 8025ef5934
Add sentinel-transport-spring-mvc module (#1957) 2021-02-23 17:11:37 +08:00
Eric Zhao fca70646ad Bump version to 1.8.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2021-02-04 16:45:40 +08:00
Eric Zhao ae214b5244 Bump version to 1.8.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2021-02-04 15:30:44 +08:00
Eric Zhao be2715d814 Update source/target JDK version to 1.8 and update documents
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2021-02-04 10:21:40 +08:00
Peine fe59485fa9
Improve RocketMQ integration example (#1757)
- The demo was unable to run and stop because of missing namesrv configuration, and now fixed.
2021-02-03 09:46:56 +08:00
cdfive 62efb78d4e
Refactor SpiLoader and enhance SPI mechanism (#1383)
* Add `@Spi` annotation as the general annotation for SPI definition.
* Add isDefault in @Spi, add loadDefaultInstance and improve loadFirstInstanceOrDefault method, improve test cases
* Add SpiLoaderException class for thrown when something goes wrong while loading Provider
* Rearrange packages of base SPI mechanism

NOTE: this PR contains breaking changes regarding API.
2021-01-27 09:45:56 +08:00
zhangxn 6719ceef65
Add Motan RPC adapter implementation (#1825) 2020-12-05 13:56:36 +08:00
Eric Zhao e58267012d Bump version to 1.8.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-08-21 14:36:49 +08:00
Eric Zhao d17bf8c7cc Bump version to 1.8.0
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-08-20 19:47:20 +08:00
Jason Joo 656e3de2f9
Improve compatibility for dispatched servlet request in Spring Web adapter (#1681) 2020-08-20 11:25:03 +08:00
M4Y 197b7db440
Support customized origin parser in Apache Dubbo 2.7.x adapter and unify config (#1617)
* Support customized origin parser in Apache Dubbo 2.7.x adapter
* Unify Dubbo callback registry (for fallback and origin parser) into DubboAdapterGlobalConfig
* Polish default fallback implementation (wrap exception with RpcResult rather than directly throw it out)
2020-08-19 10:31:40 +08:00
Eric Zhao 58ff01e39b
Polish Dubbo 2.6.x adapter and unify callback registry into DubboAdapterGlobalConfig (#1572)
* Unify Dubbo callback registry (for fallback and origin parser) into DubboAdapterGlobalConfig
* Polish default fallback implementation (wrap exception with RpcResult rather than directly throw it out)

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-08-19 10:09:24 +08:00
ZhiQiang Gu b9b1e8a481
Polish cluster flow control demo: add port in Nacos address (#1655)
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
2020-08-12 15:28:06 +08:00
Eric Zhao a5fe23ad63 test: Update test cases with new degrade mechanism in sentinel-demo-quarkus
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-08-03 13:48:43 +08:00
Eric Zhao 19db20f00d Update demo for circuit breaking (DegradeRule)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-07-30 19:00:13 +08:00
Eric Zhao 86f8bb7b38 Refactor config mechanism for OkHttp adapter and polish related code
- One config per interceptor instead of the global config
- Polish document and demo

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-07-22 11:04:48 +08:00
于玉桔 38911c5ec1
Adapter: Support Apache HttpClient (#1455)
Introduce support through a customized client builder `SentinelApacheHttpClientBuilder`.
2020-07-09 14:51:39 +08:00
ZhiQiang Gu 5e1a443663
demo: Update slot chain SPI demo (#1581)
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
2020-07-06 13:46:04 +08:00
seasidesky d59d2d3071
Add annotation CDI demo and Quarkus adapter demo (#1543) 2020-06-16 12:01:52 +08:00