Commit Graph

590 Commits

Author SHA1 Message Date
yangy ff0e53f7c6
Upgrade fastjson to 1.2.71 (#1545) 2020-06-15 21:09:51 +08:00
Eric Zhao ba3469b0ac Polish document and code of Sentinel annotation CDI extension
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-06-15 20:12:37 +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
seasidesky 7b53b61373
Add annotation extension for Java EE CDI (#1541) 2020-06-13 14:06:14 +08:00
Eric Zhao 728e2b1a2e Polish sentinel-opensource-eco-landscape-en.png
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-06-12 10:14:37 +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
ZhiQiang Gu a1e3715db1
Add unit test for cluster/FlowResponseDataDecoder (#1514)
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
2020-06-11 15:38:32 +08:00
yangy 1a97226851
Polish RocketMQ PullConsumerDemo to make code clear (#1528) 2020-06-08 11:06:42 +08:00
Lin.Liang 5d439adf60
Fix sentinel-apache-dubbo-adapter full GC bug (#1431) 2020-06-04 20:30:56 +08:00
ZhiQiang Gu bd29e046e1
Add unit test for logging/TokenBucket (#1504)
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
2020-05-29 15:57:38 +08:00
于玉桔 6b86721b36
Support setting class-level defaultFallback for annotation extension (#1493) 2020-05-29 13:49:00 +08:00
zechao zheng 0d7da77d03
Add support for extracting param from complex object (#1491)
* This could enable specified parameter flow control for customized objects.
2020-05-26 19:38:00 +08:00
ZhiQiang Gu 2e64d33085
test: Add test cases for Tuple2 (#1501)
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
2020-05-25 13:44:54 +08:00
pleasecheckhere2016 5523fd0d42
Add exceptionPredicate in Tracer for customized exception filtering logic (#1496) 2020-05-21 15:17:19 +08:00
cdfive 46076b34aa
dashboard: Fix historical version compatibility problem for auth check via localStorage (#1473) 2020-05-15 11:18:53 +08:00
于玉桔 2b68a6c062
Add OkHttp integration (#1456) 2020-05-15 11:06:26 +08:00
Eric Zhao 99d4355318 Polish code comments of the fundamental Sph/SphO/SphU class
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-05-11 17:45:48 +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
于玉桔 d84d681dd8
dashboard: Fix the bug that cookie may have conflict with web applications under the same domain (#1443) 2020-05-06 11:35:41 +08:00
zhenxianyimeng ba391097ca
dashboard: Remove duplicate code in MetricEntity (#1441) 2020-04-29 15:03:13 +08:00
Eric Zhao 516e36fd83 Polish Tracer with entry.setError(ex) mechanism
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-28 10:11:17 +08:00
Eric Zhao 7f3165740a Refactor the mechanism of recording error in Entry and StatisticSlot
* Also polish related complete callbacks

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-28 10:11:17 +08:00
Eric Zhao 7f0771df5c
Update resolving logic of project name and polish SentinelConfig (#1437)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-27 15:05:03 +08:00
Lin.Liang b716bed370
Support setting project.name via the properties file and deprecate legacy config path (#1412) 2020-04-26 21:06:32 +08:00
johnli 5e9cfb0deb
fix: Tracer does not trace exception to DefaultNode (#1068) 2020-04-26 20:48:39 +08:00
haifeng 04a1d065dd
Fix the bug of misplaced locks in ContextUtil and ClusterNode (#1429)
- which may lead to IllegalMonitorStateException in unlock() when unchecked error occurs during lock()
2020-04-26 10:58:27 +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
Eric Zhao fd4e69bdd6 Update fastjson to 1.2.68
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-08 09:34:31 +08:00
Eric Zhao d4a5b45465 doc: Update README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-07 14:39:42 +08:00
于玉桔 76c37eae37
dashboard: Hide advanced options in flow rule dialog when cluster mode is enabled (#1367) 2020-04-07 11:15:59 +08:00
Eric Zhao d8f6480e64 doc: Polish README.md of sentinel-cluster-server-envoy-rls module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-04-07 11:00:17 +08:00
cdfive e1435974c6
Set default log level of JDK logging to INFO and polish code of SpiLoader (#1365)
* Improve log info in SpiLoader, improve comment and test case
* Use error level in catch block, init ArrayList with capacity and improve add item to list
2020-04-03 15:46:25 +08:00
Jason Joo 49e60a3e51
Force modifyRule command handler to fail if an incompatible old fastjson found (#1377)
* Note that this is only a temporary solution.
2020-04-03 15:32:42 +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
Jason Joo 5885add4c5
Complete the unit tests for sentinel-logging-slf4j module (#1358) 2020-03-26 00:07:52 +08:00
于玉桔 670b2cb764
Improve standard output message in LogBase (#1357) 2020-03-25 21:17:14 +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
Jason Joo df683b8716
Regroup packages related to logging into a separate module and polish document (#1355) 2020-03-23 18:02:15 +08:00
tao.zhang 1eee2c80b4
Introduce logging extension: slf4j (#1344) 2020-03-23 14:30:49 +08:00
WongTheo 8f0cb2d24a
dashboard: Fix NoNodeException problem of FlowRuleZookeeperProvider example (#1352) 2020-03-22 17:58:18 +08:00
Eric Zhao 87f95adc2e Fix timezone problem of sentinel-block.log
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-19 14:54:40 +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 e4769293dc
Move CommandCenterLog to sentinel-transport-common and polish related code (#1341)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-16 22:30:29 +08:00
Eric Zhao 624d19d4ce
Polish logging SPI related code and add general JUL adapter for Logger SPI (#1338)
* Move the legacy JUL methods from LogBase to BaseJulLogger.
* Add a JavaLoggingAdapter as the general JUL adapter for the Logger SPI, which makes it convenient to use (as the default logger).
* Add LoggerSpiProvider to resolve Logger SPI.
* Polish the logback demo.

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-16 10:00:46 +08:00
Eric Zhao 22df09b427 Polish code of transport command centers and heartbeat senders
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2020-03-14 20:13:21 +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