Commit Graph

20 Commits

Author SHA1 Message Date
wutingjia 9a612508ff Make all backend thread pools daemon (#2181)
* feat:make command center thread daemon
* feat:make all NamedThreadFactory thread daemon
2021-06-04 13:33:46 +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
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
yunfeiyanggzq 473cc84262 Add concurrency token request/release operation in TokenService
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
2020-09-16 11:40:14 +08:00
cj 34fc435ce5
Make NettyTransportClient.getCurrentId() thread safe (#1707)
Fix issue #1705.

- Use CAS to make it thread safe and limited in the declared range.

Signed-off-by: cj <power4j@outlook.com>
2020-09-14 23:23:00 +08:00
ZhiQiang Gu c7949f5f4e
Fix incorrect protocol description in FlowRequestData writer/decoder (#1607)
Signed-off-by: yunfeiyanggzq <yunfeiyang@buaa.edu.cn>
2020-07-16 15:48:18 +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
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 7997cf65fc
Fix the numeric overflow bug of ping response data in the cluster module (#844)
- Change type of cluster ping data response from byte to int. This change is compatible with old versions

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-06-18 15:11:05 +08:00
Lin.Liang e6e27c6faa Make maxParamByteSize configurable in ParamFlowRequestDataWriter of cluster client module and fix bugs (#823) 2019-06-13 22:38:26 +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
逅弈 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 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 6a9d479216 Improvements for cluster token client retry and stop control logic
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:25:52 +08:00
Eric Zhao 40368bdcd6 Config and log enhancement for cluster token client
- Refactor token client common config and assign config
- Log enhancement when transport to token server failed
- Add `getState` method to `ClusterTokenClient` interface

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2019-01-04 14:13:21 +08:00
Eric Zhao 2735954afd Update cluster related command APIs and some enhancement and fix for cluster module
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:54:30 +08:00
Eric Zhao a5819e092d Add HTTP command for modifying global state and client config
- Add several command handlers
- Update cluster state manager

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:54:30 +08:00
Eric Zhao 138c265a34 Polish cluster client module
- Initial work

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:52:28 +08:00
Eric Zhao f83ea428ff Update token client interface and default implementation
Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:52:28 +08:00
Eric Zhao 6caa19ea95 Add default Sentinel cluster transport implementation with Netty
- Add Netty transport client implementation and default cluster token client
- Add config manager for cluster client
- Add codec SPI mechanism for client entity decoder / writer

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
2018-12-14 10:52:28 +08:00