Commit Graph

561 Commits

Author SHA1 Message Date
Eric Zhao 7d344dcb95 Improve AbstractTimeBasedTest in sentinel-core
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-20 21:04:20 +08:00
Eric Zhao 030ec23736 Make CommandCenterProvider and HeartBeatSenderProvider choose the instance with highest precedence
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-17 14:47:09 +08:00
Eric Zhao 79211f055c Add @SpiOrder annotation and update SPI loader for loading SPI with highest precedence
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-17 14:47:09 +08:00
Eric Zhao df27e3ef9d Code refactor and refinement for FileInJarReadableDataSource
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-15 17:02:24 +08:00
nick.ding 882a06007d Add FileInJarReadableDataSource to support reading config file in jar (#646) 2019-04-15 12:06:34 +08:00
Jason Joo 359e65932c dashboard: refinement and support HTTP POST request for update operations in SentinelApiClient (#620)
* Restructure: SentinelApiClient to support posting and refine it to make it simple
* Enhancement: SentinelVersion parsing logic
* Bug fix: comparison bug of SentinelVersion
2019-04-12 13:49:54 +08:00
jason 73f166e258 Make ClusterNodeTest.testGetOrCreateOriginNodeMultiThread stable 2019-04-12 10:42:08 +08:00
jason 16082a875c Make WarmUpRateLimiterControllerTest stable 2019-04-12 10:42:08 +08:00
jason aaeeea37e5 Feature: Make transport-netty-http/transport-simple-http support posting 2019-04-12 10:42:08 +08:00
Eric Zhao b02ef82c62 Add constructor for EntryConfig in sentinel-reactor-adapter
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-11 17:11:52 +08:00
Paul Kenneth Kent 4cc25429d3 Add unit tests for com.alibaba.csp.sentinel.util (#651)
* Add unit test for com.alibaba.csp.sentinel.util.IdUtil
* Add unit tests for com.alibaba.csp.sentinel.util.StringUtil
2019-04-09 09:14:51 +08:00
Eric Zhao 29f22e370b
Fix the NPE bug when passing null args to SphU.entry() and paramIdx is negative (#642)
- Also rearrangement of some code

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-04 09:40:23 +08:00
Eric Zhao fc550343c7 Support passing parameters via SentinelReactorTransformer
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-04 09:36:04 +08:00
Eric Zhao afc77c2b3e Fix the bug that entry in SentinelReactorSubscriber did not carry expected entry type
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-04 09:36:04 +08:00
luoxiangnan 4b0960c942 dashboard: fix CountDownLatch wait timeout in MetricFetcher when machine is dead (#645) 2019-04-03 11:46:34 +08:00
Eric Zhao 5f20899e34 Update codecov conf file
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-04-02 11:34:35 +08:00
shxz130 3eb4a37744 doc: add blogs in awesome-sentinel.md (#626)
add blog address
2019-04-01 09:28:33 +08:00
Eric Zhao 015c87cfe1 Update demo for parameter flow control
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-28 19:37:36 +08:00
Eric Zhao 0c3bf96678 Bump version to 1.6.0-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 18:00:06 +08:00
Eric Zhao 4751b588ea Update README.md
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 17:48:03 +08:00
Eric Zhao 48286e0ff8 Bump version to 1.5.1 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 15:23:11 +08:00
Eric Zhao f59b134b3c Add demo module for integration with Apache Dubbo 2.7.x and above version
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 14:20:13 +08:00
Eric Zhao 0389974d2d Add adapter module for Apache Dubbo 2.7.x and above
- copied legacy code and adapts to new package
- also update document for legacy Dubbo adapter

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 14:20:13 +08:00
Eric Zhao d5204bb6a4
Ensure Error caught in InitExecutor and do not exit when error occurs in LogBase (#613)
to avoid affecting normal logic of users

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 10:55:04 +08:00
Eric Zhao 7f29773a34
Update Dubbo version to 2.6.x in sentinel-dubbo-adapter and demo (#617)
because Dubbo 2.5.x will be deprecated soon

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-27 10:54:27 +08:00
Eric Zhao 16d92b8821 dashboard: code rearrangement and javadoc refinement
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-26 14:44:41 +08:00
Eric Zhao 53a4e16144 Fix bug for completing entry with parameters in SentinelResourceAspect
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-26 12:53:39 +08:00
Eric Zhao 1d0b5fae6a dashboard: use default console log format of Spring Boot
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-26 11:52:16 +08:00
zhousiliang163 12c67d4770 Improve ZookeeperDataSource to deal with bad connection when initializing (#597) 2019-03-25 14:32:55 +08:00
Eric Zhao 61c525076f Improve SentinelResourceAspect and update test cases / document of annotation support
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-25 14:14:31 +08:00
beston123 6e1dfb374c Add exceptionsToTrace configuration support in @SentinelResource annotation (#543) 2019-03-25 13:57:57 +08:00
Eric Zhao 468327bdcd Remove useless global NodeBuilder in Env class
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-25 11:48:31 +08:00
Carpenter Lee 7feaf709fc Fix deadlock bug in Env static initialization (#610)
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-25 09:22:38 +08:00
Eric Zhao f60394c651
Add test cases for sentinel-annotation-aspectj (#581)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-21 16:25:07 +08:00
lawrence wu 9051a6be96 Improve field naming in ApolloDataSource (#593) 2019-03-20 11:31:46 +08:00
Eric Zhao 409d63347c Update README.md and assets
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-20 10:31:09 +08:00
Eric Zhao cda4f7e13b Update test dependency in pom.xml 2019-03-16 14:28:48 +08:00
cdfive 6d1e7bcb7a Add some unit test for sentinel-dubbo-adapter module (#569) 2019-03-16 12:32:35 +08:00
Eric Zhao 21d436cae0 Fix pmd configuration in pom.xml
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-15 10:03:14 +08:00
Bo Zhang a3369378ad Apply Alibaba p3c pmd plugin/rules and fix/ignore all violations of priority 1 (#574) 2019-03-15 09:24:39 +08:00
Eric Zhao 0d4c47b23e Bump version to 1.5.1-SNAPSHOT
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 16:50:53 +08:00
Eric Zhao 053f7172a3 Bump version to 1.5.0 (release)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 15:33:57 +08:00
Eric Zhao 18cd27100a dashboard: update frontend npm dependencies
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 15:02:10 +08:00
Eric Zhao 1741da0bab
Automatically de-duplicate rules when loading rules (#571)
* De-duplicate rules automatically when loading rules
* Update rule managers

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 14:05:13 +08:00
Eric Zhao ae774dba61 dashboard: update machine list page
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 12:51:24 +08:00
Jason Joo 78c0dd8f86 transport: netty-http revert the default port to 80 of console.server and add unit test (#567) 2019-03-14 10:25:01 +08:00
Eric Zhao 1a482b1d9f doc: Update README for new adapter modules
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 10:21:00 +08:00
Eric Zhao 044cdbb1bf
Add occupy mechanism for future buckets of sliding window to support "prioritized requests final pass" (#568)
* Rename: MetricsLeapArray -> BucketLeapArray
* Add implementation for `FutureBucketLeapArray`, a kind of `BucketLeapArray` that only reserves for future buckets, which is used for calculating occupied future tokens.
* Add OccupiableBucketLeapArray that combines common BucketLeapArray with FutureBucketLeapArray. The rollingNumberInSecond in StatisticNode now uses OccupiableBucketLeapArray by default.
* Add OccupySupport interface. Node now implements OccupySupport interface.
* Add occupy-related methods in Metric and ArrayMetric.
* Handle prioritized requests in default traffic shaping controller.
* Update default occupyTimeout to 500ms

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-14 10:04:56 +08:00
Carpenter Lee 3c52bbc3c8 dashboard: Add interface of authentication/authorization and provide a default stub implementation (#503)
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-14 10:03:03 +08:00
Eric Zhao 4b1ccd93e2
Refactor Node interface: change return type of `xxxQps` method from long to double (#564)
- Update test cases (use assertEquals(e, a, delta) instead)
- Also add `totalPass` method in Node interface

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-13 22:10:20 +08:00