Commit Graph

138 Commits

Author SHA1 Message Date
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
叶枫 a1eed7032f
Remove unused code (#1991)
Remove unused code in DefaultBlockExceptionHandler#handle
2021-02-04 10:13:16 +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
odidev 8c4f251922
CI: Polish dependencies for ARM64 and add ARM64 job to Travis CI (#1765)
1. Added ARM64 architecture in .travis.yml
2. Updated 'embedded-consul' version to 2.2.0, 'consul-api' version to 1.4.5 for ARM64 support.
3. Updated grpc.version for 'io.grpc:protoc-gen-grpc-java' to 1.30.2, for ARM64 support.

Signed-off-by: odidev <odidev@puresoftware.com>
2020-11-09 14:40:58 +08:00
王振广 9936b4da60
Improve default block fallback logic in Dubbo 2.6.x adapter to avoid serialization problem (#1794)
- convert BlockException to a simple RuntimeException (with necessary message)
2020-10-30 22:15:24 +08:00
nickChenyx cc2d1a69a9
Optimize logging statements using placeholder (#1736)
* Optimize logging statements using placeholder to avoid unnecessary concatenation (issue #1735)
2020-09-17 20:42:01 +08:00
dani3lWong b7b54034cc
Fix NPE bug when updating gateway flow rules before the route/API has been requested once (#1729) 2020-09-14 10:03:58 +08:00
M4Y b50ce662bd
Solve the URI fetching bug in sentinel-zuul-adapter #1109 (#1605)
Use `getRequestURI` instead of `getServletPath` to get URI of current request(Both in prefix and regex matching).
2020-09-14 01:46:07 +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
Eric Zhao 5905874dd8 Fix NPE bug and improve default fallback in Dubbo 2.7.x adapter
- Fix NPE bug in consumer filter (when non-biz error occurred)
- Improve default fallback in Dubbo 2.7.x adapter: convert the BlockException to a simple RuntimeException (with necessary message)
- Polish code and comments

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-08-20 10:22:07 +08:00
liqiangz 113afab380
adapter: Add test cases for Spring WebFlux HandlerFunction (#1678) 2020-08-20 10:09:43 +08:00
cdfive a1ce97677c
webmvc-adapter: improve to avoid ErrorEntryFreeException (#1533)
If entry already exists in request just skip creation.
2020-08-19 23:55:11 +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
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
HupJ ccd029ed0a
doc: Fix mistakes in README.md of sentinel-zuul-adapter (#1593) 2020-07-11 10:58:32 +08:00
于玉桔 38911c5ec1
Adapter: Support Apache HttpClient (#1455)
Introduce support through a customized client builder `SentinelApacheHttpClientBuilder`.
2020-07-09 14:51:39 +08:00
iron_city d8714caceb
Support customized origin parser in legacy Dubbo 2.6.x adapter (#1555) 2020-06-28 11:48:35 +08:00
Eric Zhao 07df2818fe Polish document and rearrange package for Quarkus and JAX-RS adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-06-17 11:10:40 +08:00
seasidesky fda21de748
Add Sentinel annotation and JAX-RS plugins for Quarkus (#1542)
* Add sentinel-quarkus-adapter module, which provides sentinel-annotation-quarkus-adapter and sentinel-jax-rs-quarkus-adapter to adapt sentinel-annotation-cdi-interceptor and sentinel-jax-rs-adapter for Quarkus. It also provides sentinel-native-image-quarkus-adapter to support running Sentinel with Quarkus in native image mode.
2020-06-15 10:21:21 +08:00
wavesZh f1b63315c1
Improve consumer filter of Dubbo 2.6.x and 2.7.x adapter (#1532)
* entry and exit with params in consumer filter
2020-06-11 15:51:33 +08:00
Lin.Liang 5d439adf60
Fix sentinel-apache-dubbo-adapter full GC bug (#1431) 2020-06-04 20:30:56 +08:00
于玉桔 2b68a6c062
Add OkHttp integration (#1456) 2020-05-15 11:06:26 +08:00
wavesZh 096a9ebf7d
Improve deprecated ParameterMetric purge mechanism (#1372)
* Clear useless data in ParameterMetric for all removed rules
2020-05-07 20:04:12 +08:00
seasidesky cfea7ae338
Add JAX-RS adapter (#1396) 2020-04-23 20:06:36 +08:00
Eric Zhao a0196b6b00 Bump version to 1.8.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-13 20:19:22 +08:00
Zhiguo.Chen 7c361aab13
Fix the bug of extracting request cookie in Spring Cloud Gateway adapter (#1400) 2020-04-13 19:35:14 +08:00
Eric Zhao 6a7ec708bc Bump version to 1.7.2
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-08 09:42:02 +08:00
cdfive be4d058bf8
refactor: Make the ProcessorSlot itself as SPI and deprecate legacy slot chain builder (#411)
* Make slots loaded by SPI, mark all slots with @SpiOrder from -10000 to -1000, improve comment
* Reserve gateway and param slot chain builder (just extends DefaultSlotChainBuilder) and mark them as @Deprecated
2020-03-26 12:38:01 +08:00
cdfive 43b5e65ab3
Fix the bug that context was not released when blocked in Spring Web adapter (#1353) 2020-03-24 22:14:00 +08:00
Jason Joo b715ceacf0
Fix CI failure in JDK 11 environment (#1360)
* Supplement missing javax.annotation-api to sentinel-cluster-server-envoy-rls and sentinel-demo-zuul2-gateway
* Upgrade mockito-core to 2.28.2 (up to date)
2020-03-23 22:26:56 +08:00
Eric Zhao eed77cafc2
Polish placeholders in logging content to slf4j convention (#1342)
* Polish placeholders in logging content to "{}"

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-17 11:11:54 +08:00
Eric Zhao 0536fb6846 Polish code and demo of Sentinel Zuul 2.x adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-14 19:06:23 +08:00
tao.zhang 5b9865db1c Add gateway adapter for Zuul 2.x (#1138)
- also add demo for Zuul 2.x adapter
2020-03-13 22:37:33 +08:00
cdfive 2c2f60cf58
Add "web-context-unify" config in Spring WebMVC adapter to support "chain" relation flow strategy (#1328) 2020-03-10 23:02:07 +08:00
Eric Zhao d07d17b4ca Polish code and document of sentinel-sofa-rpc-adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-03 17:08:08 +08:00
cdfive 18acb1d154
Add Sentinel SOFARPC adapter module (#1307) 2020-03-02 18:13:54 +08:00
于玉桔 2bdeccf723
Fix Dubbo 2.7.5 compatibility problem of sentinel-apache-dubbo-adapter (#1296) 2020-02-21 23:47:15 +08:00
echooymxq 9cc52706f5 Polish code in Dubbo adapter and use Dubbo common constants (#1245) 2020-01-13 09:39:06 +08:00
Eric Zhao fe23d5c11f test: Improve test cases in sentinel-apache-dubbo-adapter module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-25 11:54:19 +08:00
Eric Zhao 87142ce512 Bump version to 1.7.2-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-25 11:19:07 +08:00
Eric Zhao 9c909e3631 Bump version to 1.7.1
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-12-24 20:05:23 +08:00
Mr.Z 47100e64ba Improve async invocation support in sentinel-apache-dubbo-adapter (#1124)
* Improve async support for Dubbo 2.7.2 and above (not compatible with 2.7.0 and 2.7.1 due to the bad compatibility design of Dubbo Filter)
2019-12-23 17:45:48 +08:00
Eric Zhao 20ad3c8f79 Improve code and demo for sentinel-spring-webmvc-adapter module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-27 17:46:59 +08:00
kaizi2009 b14534fb35 Add Sentinel Spring Web MVC adapter module (#1104)
- Add sentinel-spring-webmvc-adapter module and demo
2019-11-27 14:47:04 +08:00
Eric Zhao 9705f54611 Bump version to 1.7.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-11-12 11:08:14 +08:00