Eric Zhao
4073053b3a
Update javadoc for core classes
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-11 18:07:29 +08:00
Neptune
7367da6936
Upgrade apollo-client to 1.3.0 and add support for removing listener in sentinel-datasource-apollo ( #562 )
...
- Add to unsubscribe config change event
2019-03-11 11:39:47 +08:00
Jason Joo
c7f3fd874c
dashboard: fix a request mapping issue of removing machines api ( #559 )
2019-03-08 16:46:07 +08:00
Eric Zhao
775484ba61
Add try-with-resources support for Entry class ( #550 )
...
- `Entry` class now implements `AutoCloseable` so it supports try-with-resources (`close` method adapts to `exit`)
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-08 09:57:49 +08:00
Eric Zhao
e857b5cef7
Reactive: add Sentinel Reactor adapter module ( #545 )
...
* Add reactive adapter implementation for Project Reactor (Mono/Flux) including a reactor transformer and an experimental `ReactorSphU`
* Add an `InheritableBaseSubscriber` that derives from the original BaseSubscriber of reactor-core
* Add basic test cases for reactor adapter
* Add Sentinel context enter support for EntryConfig in reactor transformer
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-08 09:43:06 +08:00
Carpenter Lee
b8e295a138
Convert negative paramIdx of ParamFlowRule in ParamFlowSlot
...
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-07 10:29:51 +08:00
yikangfeng
9ec1985755
Fix SimpleDateFormat concurrent issue in CspFormatter of sentinel-core ( #548 )
2019-03-06 20:39:33 +08:00
Carpenter Lee
5279895581
Add highestCpuUsage in system rule.
...
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-06 20:21:42 +08:00
Carpenter Lee
b4422407ae
Update java version to 1.7 of sentinel-core
...
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-06 20:21:42 +08:00
cdfive
33fc154d64
Fix Dubbo-related dependencies in sentinel-dubbo-demo ( #534 )
...
* Add spring-context-support 1.0.2 and netty-all 4.1.31.Final dependency, and remove spring-context 5.0.7.RELEASE dependency
* Add comment for dependency
2019-03-06 19:59:34 +08:00
Carpenter Lee
80797ae85e
Allow negative paramIndex as reversed-order in ParamFlowRule ( #549 )
...
* Allow negative paramIndex in ParamFlowRule
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-03-06 19:06:58 +08:00
Eric Zhao
d05a603873
Update fastjson dependency version to 1.2.56
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-06 17:21:12 +08:00
Eric Zhao
1ffce6b579
Fix test dependencies
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-06 17:20:26 +08:00
Jason Joo
5d3ccb0863
Solve the issue that sleeping-based tests are not stable and optimize slow tests ( #546 )
2019-03-06 16:49:59 +08:00
Eric Zhao
226589f773
dashboard: update InMemoryMetricsRepositoryTest
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-06 09:51:36 +08:00
ATAXGT
10d7c903cf
Optimize circuit breaking state transformation using CAS in DegradeRule ( #538 )
...
close → open: use `compareAndSet` to update for `cut` attribute (changed to an `AtomicBoolean`)
2019-03-05 18:45:37 +08:00
Eric Zhao
b7956c6bb4
dashboard: code and document refinement
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-04 19:46:53 +08:00
Jason Joo
737747a412
dashboard: support automatic/manual removal of unhealthy machines and disconnected applications ( #168 )
...
* Support removing unhealthy machine manually
* Auto removal support for dead machine
* Auto hidden for app if one have no healthy machine after some time(configurable)
* Auto removal for app if hidden status lasts(configurable).
2019-03-04 17:48:33 +08:00
cdfive
61fede3827
Add a CommandCenterProvider to resolve and cache the CommandCenter instance ( #409 )
2019-03-04 17:34:41 +08:00
hantianwei
b54461b058
dashboard: add Apollo flow rule publisher sample in Sentinel dashboard ( #535 )
2019-03-04 09:30:02 +08:00
MickMo
3e4fc7a952
Remove G2 lib tracking in frontend of Sentinel dashboard ( #527 )
...
By upgrading G2 lib to version 3.4.10
2019-03-01 15:28:37 +08:00
Eric Zhao
ed5ecd8580
Update command handler demo and code refinement
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-01 13:56:55 +08:00
逅弈
59d923ebc1
Add an ApiCommandHandler to list all available commands and description ( #491 )
...
* Add a ApiCommandHandler which fetch all registered CommandHandlers so that user can get all available CommandHandlers by request /api
* Add a customized CommandHandler demo
2019-03-01 13:39:50 +08:00
Eric Zhao
13de41ba6f
Update test cases in Sentinel dashboard
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-01 10:08:34 +08:00
Eric Zhao
59c721691b
Improve demo for Sentinel cluster flow control
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-01 09:47:12 +08:00
Eric Zhao
094ba3bfba
Carry appName in FetchClusterServerInfo command
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-01 09:45:54 +08:00
Eric Zhao
01533543ef
dashboard: improve management for foreign-app token server in cluster page
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-03-01 09:43:57 +08:00
qinggeng
ec0883d22e
Add AuthInfo parameter in the constructor of ZooKeeperDataSource to support ACL ( #508 )
2019-02-26 17:29:16 +08:00
Carpenter Lee
5d2170282f
Add Sph.entryWithPriority() method to receive args
...
Signed-off-by: Carpenter Lee <hooleeucas@163.com>
2019-02-25 11:37:44 +08:00
nick.tan
b309dbe835
Fix concurrent error in InMemoryMetricsRepository of the dashboard ( #488 )
...
- fix ConcurrentModificationException of listResourcesOfApp method
2019-02-22 17:20:10 +08:00
mjaow
291742c171
Change default value of avgUsedTokens to zero to be more meaningful in DefaultController ( #460 )
2019-02-22 17:02:19 +08:00
Eric Zhao
5b260a9f75
Bump version to 1.5.0-SNAPSHOT
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-21 19:41:50 +08:00
Zhiyu Xing
f66e90d74e
Fix incorrect resource name print in log in README.md ( #506 )
2019-02-21 17:02:58 +08:00
Eric Zhao
2e0fe23384
Bump version to 1.4.2 (release)
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 14:15:33 +08:00
Eric Zhao
f7c08df5c1
Fix bug of calculating param size and amount in ParamFlowRequestDataWriter of Sentinel cluster ( #495 )
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 14:00:14 +08:00
Eric Zhao
020a63fdb5
Bug fix: NPE when adding event count in ParamMapBucket ( #494 )
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-02-20 13:57:05 +08:00
Eric Zhao
ee4a0d43a1
Improve and fix bugs for ConnectionManager and add test cases
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-31 14:25:01 +08:00
Eric Zhao
cd02fad290
Fix NPE bug when creating connection group in ConnectionManager
...
- The NPE will occur when multiple threads are trying to create the connection group for the same namespace
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-31 14:25:01 +08:00
Eric Zhao
412e1ece47
Carry the triggered rule in subclasses of BlockException ( #469 )
...
* Extract getRule in BlockException and refine override methods in subclasses
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-31 14:24:05 +08:00
yanlinly
1368154000
Update Nacos SDK version to 0.8 and update Nacos namespace demo ( #474 )
2019-01-31 09:21:39 +08:00
Eric Zhao
f27d7a4b24
Improve ClusterServerConfigManager in sentinel-cluster-server-default and add basic test cases
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-30 16:41:39 +08:00
mjaow
5c0fd5651a
Add volatile in double-checked locking field in ClusterBuilderSlot ( #466 )
2019-01-30 10:25:16 +08:00
Eric Zhao
bac35ac100
Add back thread count metric type support for parameter flow control
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-30 09:37:13 +08:00
Eric Zhao
35537a691e
Refinement for test cases
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-29 10:28:07 +08:00
cdfive
22e8d85a8f
Add some unit test for StatisticNode, ClusterNode and DefaultNodeBuilder class ( #423 )
2019-01-29 10:07:17 +08:00
Andres Almiray
e893dd8c64
Make build faster by reducing fixed waiting time in tests ( #449 )
...
- Apply awaitility to core tests
- Cache maven local repo in Travis
2019-01-29 09:57:38 +08:00
Eric Zhao
9e1b5a900b
Update dependency version of fastjson and jacoco-maven-plugin
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-28 17:23:33 +08:00
Eric Zhao
cd334406af
Code and javadoc refinement
...
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-28 16:22:34 +08:00
luoxiangnan
f306a03090
HashMap init optimize when adding new ClusterNode to cluster node map ( #465 )
...
- reuse old map size to avoid rearrange and rehash the map
2019-01-28 15:47:39 +08:00
mjaow
2cf6e29e72
Fix zero-count divide overflow bug in RateLimiterController ( #461 )
2019-01-28 14:23:41 +08:00