syapollo
29ba11eb88
for #3621 ( #3668 )
2020-08-24 13:25:29 +08:00
Gagharv
3428d8830e
[ISSUE #3671 ] move some tools class into common package ( #3672 )
2020-08-24 13:24:56 +08:00
赵延
6e4b0c9c86
[ISSUE #3628 ] set naming client updateTask interval more flexible ( #3637 )
...
* 1.use server cacheMillis event service deleted
2.naming client UpdateTask's interval will inc by failCount that connect with server
* 1.move failCount to updateTask
2.redefine the updateService method name. updateServiceNow -> updateService, wrap updateService in updateServiceNow when first getServiceInfo
* 1.create push client even service is not exist
2.serviceInfo's hosts is empty or can't connect to server both add the updateTsk interval
* format the indent
2020-08-20 14:35:30 +08:00
mai.jh
136b45610d
refactor: unified implementation of http client api adjustment. ( #3639 )
2020-08-20 09:09:21 +08:00
nov.lzf
03e58df04f
listen context query support on console ; basic api for lader balance ;server side push retry submit ( #3630 )
...
* listen context query with groupy and ip support long connect
* remove connection on cleint side, server will generate instead.
* connect reset request support appointing ip address.
* server push retry
* basic api for loader balance
* basic api for loader balance
2020-08-18 20:20:21 +08:00
Xarrow
1e5a597654
[ISSUE #3613 ] Fix unit test method not be static
& update publish config listener in ConfigTest.java
( #3614 )
...
* fix `unit test method not be static` & update publish config listener in `ConfigTest.java`
* fix `unit test method not be static` & update publish config listener in `ConfigTest.java`
2020-08-18 09:24:34 +08:00
nov.lzf
090c1ea0dd
connection event notification of grpc server ( #3611 )
...
* grpc server noticed when a client disconnected.
* grpc connection notification and optimize server service register.
* grpc connection notification and optimize server service register.
2020-08-15 18:16:33 +08:00
nov.lzf
33df55d40a
remote support on servers and optimize connection and client model ( #3609 )
...
* Add gprc support-> optimize rpc listen execute task notify
* Add gprc support-> add listener optimize.
* Add gprc support-> cluster rpc client support
* cluster rpc client support
* config change notify bettween server long connect support
* server push future refactor.
* server rpc sync compatibility support
* connection labels support
* code fail fix
2020-08-14 17:40:00 +08:00
杨翊 SionYang
0b73cfc769
Upgrade version to 1.4.0-SNAPSHOT ( #3549 )
2020-08-12 09:32:06 +08:00
nov.lzf
a0a1486fa2
rsocket support and optimize client abstract ( #3559 )
...
* Add gprc support-> rpc Rsocket submit
* Add gprc support-> rpc Rsocket submit
* Add gprc support-> rpc Rsocket submit
* Add gprc support-> upgrade api client common jdk compiler to 1.8 for test Rsocket only
* Add gprc support-> rsocket client test code submit
* Add gprc support-> rpc client factory optimize
* Add gprc support-> config client factory rename
* Add gprc support-> rsocket submit
* Add gprc support-> rsocket client switch submit
* Add gprc support-> rsocket support and optimize rpc client
2020-08-10 09:11:53 +08:00
sanxun0325
95c8bf242b
[ #3368 ]Cancel empty Long polling thread to improve performance. (#ISSUE3432)
...
* update clientWorker
* Upgrade 1.3.1 (#3294 )
update clientWorker
* add ClientWorkerTest
* add remove taskFlagMap
* update clientworker
* update taskIdSet ConcurrentHashSet
2020-08-05 17:20:53 +08:00
nov.lzf
05bd51062d
Add gprc support-> server push ack ( #3521 )
...
* Add gprc support-> server push ack
* Add gprc support-> add lost code
* Add gprc support-> disconnect status change bugfix
* Add gprc support-> optimize rpc port
2020-08-05 10:21:33 +08:00
杨翊 SionYang
df4b006b36
Upgrade version to 1.3.2 ( #3512 )
2020-08-04 12:58:45 +08:00
nov.lzf
3a777455e7
move rpc client from client to common and move request response to api ; solve conflict. ( #3481 )
...
* Add gprc support-> move rpc client from client to common and move request response to api
* Add gprc support-> conflict solved
2020-07-30 17:21:44 +08:00
杨翊 SionYang
5f528d8036
[ISSUE #1097 ] Naming support grpc server forward request ( #3480 )
...
* re subscribe service when reconnect
* change grpc instance maintain by heartbeat
* Add lifecycle for remoting workers
* Refactor naming client redo when reconnect
* Fix checkstyle and PMD
* Implement forward instance request to responsible server
* Implement forward heart beat to servers
2020-07-30 17:00:57 +08:00
nov.lzf
b1a587dc72
Add gprc support-> add server push ack ( #3478 )
2020-07-30 16:00:22 +08:00
杨翊 SionYang
1a22ae4c47
Fix checkstyle error ( #3467 )
...
Fix checkstyle error (#3467 )
2020-07-29 16:09:35 +08:00
杨翊 SionYang
8dfdc81481
[ISSUE #1097 ]grpc support all namingService api ( #3425 )
...
* grpc support query service name list api
* grpc support query server healthy api
2020-07-23 15:22:07 +08:00
nov.lzf
50a298c9af
switch server optimize and loader balance base on max client count ( #3420 )
...
* Add gprc support-> authentication on client
* Add gprc support-> optimize switch server and submit loader balance base on up limit clients count.
2020-07-23 10:26:25 +08:00
nov.lzf
b28636c6de
notify connect listeners on start up ( #3405 )
...
* Add gprc support-> try to connect the server synchronous on start up , start a thread to connect to server until successfully connected when fail.
* Add gprc support-> notify connect listeners.
* Add gprc support-> update client reconnect strategy.
* Add gprc support-> optimize push config request param model and meta request.
* Add gprc support-> notify on new connected
2020-07-21 20:08:38 +08:00
杨翊 SionYang
115c992c98
[ISSUE #3386 ] Refactor HostReactor.java to ServiceInfoHolder and ServiceInfoUpdateService ( #3402 )
...
* Refactor HostReactor.java to ServiceInfoHolder and ServiceInfoUpdateService
* Use http client as default implement of some uncompleted api
2020-07-21 15:02:44 +08:00
mai.jh
75a06834f5
unified implementation of http client package division ( #3400 )
2020-07-21 14:53:03 +08:00
nov.lzf
53031ba08b
strengthen exception handle both on server and client ; status transfer bug fix on client ( #3401 )
...
* Add gprc support->test submit
* Add gprc support-> Strengthen exception handling of server push handler process both at client and server
* Add gprc support-> starting status bugfix and base push model submit
2020-07-21 14:44:01 +08:00
杨翊 SionYang
571ae62de1
Move BeatReactor into HttpClientProxy ( #3394 )
2020-07-20 20:48:21 +08:00
杨翊 SionYang
2e4d50c4f2
Extract server list maintain logic to ServerListManager ( #3389 )
2020-07-20 17:52:58 +08:00
杨翊 SionYang
39986a867a
[ISSUE #3386 ] Extract NamingClientProxy
Interface ( #3387 )
...
* Move and rename NamingProxy.java
* rename package naming.net --> naming.remote
* Create Naming client proxy interface
2020-07-20 16:32:07 +08:00
nov.lzf
85a0398978
1.server side client connection listener optimize 2. listen context and notifier updated . ( #3385 )
...
* Add gprc support-> client reconnection optimize
* Add gprc support-> 1.client connection listener optimize 2.listen context an notifier updated .
* Add gprc support->merge problem fix
* Add gprc support->check style fixed.
* Add gprc support->check style fixed and remove gRpc classes in source package.
2020-07-20 16:27:58 +08:00
杨翊 SionYang
e5f0c368c9
Hotfix client sdk depend jdk7 charset. ( #3376 )
2020-07-18 23:01:32 +08:00
杨翊 SionYang
cda3f14230
Hotfix client sdk depend jdk7 charset. ( #3374 )
2020-07-18 16:36:10 +08:00
KomachiSion
79c8521bde
Merge branch 'upstream-develop' into feature_support_grpc_core
...
# Conflicts:
# client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java
# client/src/main/java/com/alibaba/nacos/client/config/http/HttpAgent.java
# client/src/main/java/com/alibaba/nacos/client/config/http/MetricsHttpAgent.java
# client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
# config/src/main/java/com/alibaba/nacos/config/server/service/LongPollingService.java
2020-07-18 16:28:00 +08:00
杨翊 SionYang
3bde28294d
[ISSUE #1097 ] Naming support un/subscribe service by grpc. ( #3373 )
...
* For #1097 , server support subscribe service.
* For #1097 , client support subscribe service.
* For #1097 , server and client support unsubscribe service.
2020-07-18 16:07:21 +08:00
mai.jh
63a4e30ae6
[ISSUE #3224 ]nacos-client module http client replace ( #3348 )
...
* nacos-client module http client replace
* fix code style problem
* add HashMap initialCapacity
* fix code style problem
* Modify the header object, keep the original response header to avoid modifying the original logic code
* fix code style problem
* naming http client request exception messages output change
* Merge code
2020-07-18 14:42:02 +08:00
nov.lzf
4a702f8954
Add gprc support-> client reconnection optimize ( #3367 )
2020-07-17 20:57:52 +08:00
nov.lzf
688013bbb6
Add gprc support-> client reconnection optimize ( #3365 )
2020-07-17 17:42:46 +08:00
Hu Zongtang
9f12f76d6c
[ISSUE#2859]fix no throw exception when publish event but no subsciber. ( #3364 )
2020-07-17 16:12:32 +08:00
nov.lzf
b10a24885e
add server side connection listener ,and add client version ( #3350 )
...
* Add gprc support-> 1.add server side client connection event listener ,base on heart beat expire time check 2.add client version info after grpc connection build
* Add gprc support-> add publish config and remove config in rpc channel ;and rename server push response handler
2020-07-16 19:21:38 +08:00
杨翊 SionYang
6c8dfd6ed3
Add naming support gRPC for query instance list and service info ( #3352 )
...
* Add naming support gRPC for query instance list and service info
* Update version to 1.4.0-SNAPSHOT
2020-07-16 18:08:25 +08:00
nov.lzf
0aad8f55eb
support config query in rpc channel ,add switch http/rpc at client side ( #3344 )
...
* Add gprc support-> 1.support config query in rpc channel ,add switch in client side
* Add gprc support-> 1.log optimize,split grpc core and digest
* Add gprc support-> 1.optimize log and client proxy.
* Add gprc support-> remove proto buff plugin
2020-07-15 20:54:16 +08:00
杨翊 SionYang
d00c133c3e
Add naming support gRPC for register and deregister instance ( #3343 )
2020-07-15 20:22:07 +08:00
mai.jh
0163d2d0c7
fix : #3324 , Move http client close method to NamingProxy.shutdown() ( #3333 )
2020-07-15 14:12:44 +08:00
nov.lzf
139b211e21
Nacos config support gRPC ( #3334 )
...
* Add gprc support-> client side code submit ,and create server side naming module abstract handler template.
* Add gprc support-> config data change notify code submit....
* Add gprc support-> serve side healthy check code submit and solve some checkstyle problems.
* Add gprc support-> 1.config client worker ,cancel long polling task 2. test add listener,remove listener in config module 3.add response resolve
2020-07-15 13:56:29 +08:00
nov.lzf
bbbeabe1e8
nacos support grpc ,base functions submit. ( #3328 )
...
* gprc
* Add gprc support
2020-07-14 19:15:22 +08:00
mai.jh
511ef88ccc
fix:#3311 Add specified Logger when constructing nacos resttemplate ( #3312 )
2020-07-13 18:54:06 +08:00
Joe
eca82bff6f
Update BeatReactor.java ( #3299 )
...
update `asInt()` to `asLong()`
2020-07-13 10:39:59 +08:00
杨翊 SionYang
7ddba00865
Upgrade 1.3.1 ( #3294 )
2020-07-10 18:05:07 +08:00
杨翊 SionYang
95f3bfb587
[ISSUE #2992 ]Recheck all checkstyle and open checkstyle during building ( #3293 )
...
* Re-check code style for nacos-config module.
* Re-check code style for other module.
* Open checkstyle plugin check during build
2020-07-10 17:18:53 +08:00
杨翊 SionYang
66e6d24822
Hotfix send beat info error ( #3287 )
2020-07-09 21:20:07 +08:00
Hu Zongtang
2342952b63
[ISSUE#3275]Fix the problem that 1.3.1-BETA SDK LifeCycle can't be shutdown for some thread executors. ( #3280 )
...
* [#3275 ]resolve the issue that lifecycle can't be shutdown for some thread executors.
* [ISSUE#3275]do close for upsocket in shutdown method.
* [ISSUE#3249]fix typo.
2020-07-08 16:54:40 +08:00
杨翊 SionYang
220b6c4f8d
Hotfix double register null service and beat info invalid problem ( #3260 )
...
* Hotfix, double register null service and beat info invalid problem
* Revert nacos-client JDK back to 6
* Revert nacos-client JDK back to 6
2020-07-06 19:41:18 +08:00
杨翊 SionYang
1a0df78d8a
[ISSUE #2992 ] Use new code style for nacos-client module. ( #3219 )
...
* Use new code style for nacos-client module.
* For checkstyle
2020-07-03 17:30:05 +08:00
yangy
aa020e0b81
upgrade log4j version ( #3229 )
2020-07-03 09:22:44 +08:00
杨翊 SionYang
88480f7c0f
Update to 1.3.1-BETA ( #3194 )
2020-06-29 13:56:16 +08:00
liaochuntao
2c733d57ff
[ #2979 ] Inline storage support importing data from external data sources ( #3138 )
...
* feat: data import Derby, Derby export complete
* feat: external data source import is complete
* feat: import data to derby and derby backup finished
* fix: fixed bug where external storage mode could not find beans
* style: fix code style
* style: remove unuse code
* refactor: fixed configuration file information
* improvement: merge upstream/develop
* style: fix code style
* fix: a way to fix the missing
* fix: fix derby data import in standalone mode
* style: fix code style
* refactor: merge upstream develop and fix code style
* test: modify ut
* style: fix code style
2020-06-28 10:25:06 +08:00
mai.jh
6ce8d8ca79
[ISSUE #3140 ]nacos-client module replace http client ( #3142 )
...
* nacos-client http client replace
* Remove some explain
* Remove some explain
* Adjust some code styles and fix some misspelled method names
* Fix code style issues
* fix some misspelled method names
* Fix code style issues
2020-06-22 20:42:46 +08:00
杨翊 SionYang
f864880136
[ISSUE #2992 ] use new code style for nacos-common ( #3106 )
...
* use new code style for nacos-common
* Fix code style file can't set java import problem.
2020-06-18 17:05:15 +08:00
mai.jh
e528ea82e9
[ISSUE #3094 ]abstract create nacos restTemplate factory ( #3095 )
...
* abstract create nacos restTemplate factory, allowing users to customize the commonly used http client config
* add class file license.
* change class file name
* Adjust some code
2020-06-17 17:53:37 +08:00
Hu Zongtang
3f0023a3a9
Remove dependency of apache-common-lang3 in the client. ( #3031 )
...
* [#3026 ]remove dependency of apache-common-lang3 in the client.
* [#1815 ]adjust, optimize codes and merge some class.
* [#3031 ]adjust some codes.
* [#3031 ]adjust codes and fix typo.
* [#3031 ]fix typo.
2020-06-15 13:41:53 +08:00
chuntaojun
abae5e106b
refactor: remove unuse code
2020-06-15 11:08:10 +08:00
chuntaojun
77186f9a6c
refactor: remove server-addr validator
2020-06-15 11:04:47 +08:00
chuntaojun
7641b45df4
fix: fixed parameter validation boundary problem
2020-06-15 10:11:34 +08:00
KomachiSion
079009b5a5
For #2873 , unified copyrights for nacos-client.
2020-06-12 15:33:41 +08:00
horizonzy
315a6c36c5
1.update beatinfo when received instance modify info
...
2.add the unit test of this case
2020-06-11 21:44:33 +08:00
zongtanghu
e7796b3935
[ #1815 ]adjust codes for instance class attribute init.
2020-06-11 12:42:47 +08:00
zongtanghu
d2b980677f
[ #1815 ]remove code comments.
2020-06-11 11:33:38 +08:00
zongtanghu
e6e3161c0e
resolve the codes conflicts
2020-06-11 09:45:00 +08:00
zongtanghu
eb39830b6c
[ #1815 ]remove lifeCycle, lifeCycleManager, and adjust some related codes.
2020-06-11 09:42:44 +08:00
huqingfeng
d21bbf4688
a power of two size for hashmap
2020-06-10 17:42:17 +08:00
zongtanghu
8f7fb0f65a
[ #1815 ]remove no used package name from Factory Class and adjust test cases.
2020-06-09 14:10:47 +08:00
chuntaojun
364745e000
refactor: add config publish log
2020-06-05 10:50:29 +08:00
water.lyl
7f541a9a67
update version to 1.3.0
2020-06-05 09:02:17 +08:00
zongtanghu
09752e354d
[ #1815 ]adjust this keywords which just includes constructor and set method in the class and fix some unit test cases.
2020-06-03 17:35:06 +08:00
zongtanghu
e86c158262
resolve codes conflicts
2020-06-03 14:57:46 +08:00
zongtanghu
5e2840a6bd
[ #1815 ]adjust and optimize codes.
2020-06-03 10:46:41 +08:00
zongtanghu
2ab274216a
[ #1815 ]adjust and optimize codes, reput the lifecycle to ConfigService class level at the same time.
2020-06-02 19:55:30 +08:00
Jack Dai
1a7264d9b6
解决和develop的冲突
2020-06-01 18:41:03 +08:00
Jack Dai
83e6451acc
统一修改子项目中的url为nacos官网地址
2020-06-01 18:35:20 +08:00
zongtanghu
8d6dd8f41b
[ #1815 ]adjust codes and reput the lifecycle to ConfigService class level.
2020-06-01 17:57:35 +08:00
jintonghuoya
6aa395979a
回滚dependency和plugin的version无关的修改
2020-05-29 20:45:45 +08:00
zongtanghu
6981fbc576
[ #1815 ]add ResourceLifeCycleManager,adjust some code and fix some unit test cases.
2020-05-29 19:10:06 +08:00
Jack Dai
9692cd1b8c
合并和origin/develop的冲突
2020-05-29 19:01:48 +08:00
Jack Dai
27a257c84e
合并origin/develop的变更
2020-05-29 18:41:00 +08:00
Jack Dai
594eac42b3
整理每个module的plugin和dependency的版本号
2020-05-29 16:35:48 +08:00
chuntaojun
5cd5ca35b8
refactor: merge develop
2020-05-28 20:14:47 +08:00
KomachiSion
d27a6c7ea6
Fix replace jackson error
2020-05-28 10:40:05 +08:00
chuntaojun
e8533155c7
fix: fix startup problem
2020-05-27 22:05:38 +08:00
KomachiSion
0b1a58e29b
Remove all dependency except nacos-test
2020-05-27 15:41:07 +08:00
yanlinly
a07b0c530f
Merge pull request #2893 from KomachiSion/develop-issue#2842
...
[ISSUE #2842 ]Replace Fastjson with Jackson for nacos-api and nacos-client
2020-05-26 22:41:02 +08:00
KomachiSion
5b9780e2fc
Replace fastjson with jackson for nacos-client
2020-05-26 14:59:23 +08:00
chuntaojun
6fe1d0d0da
improvement: adjust part of the code
2020-05-26 11:57:27 +08:00
yfh0918
1484a59499
#2855
2020-05-25 17:59:30 +08:00
fenghua.yu
2da06cf05b
#2855
2020-05-25 17:44:03 +08:00
fenghua.yu
34e50e73fd
#2855
...
needs to close GZIPInputStream manually
2020-05-25 15:42:19 +08:00
chuntaojun
be75c582c2
Merge remote-tracking branch 'origin' into feature_1.3.0_beta_grpc
2020-05-21 22:09:10 +08:00
liaochuntao
d4efcf4df3
Merge pull request #2548 from wolfdriver/develop_20200329_remove
...
remove useless code
2020-05-21 21:58:19 +08:00
liaochuntao
fea2c674bd
Merge pull request #2687 from Maijh97/develop
...
Modify log output
2020-05-21 21:44:04 +08:00
chuntaojun
87a32a926b
refactor: merge develop
2020-05-21 18:08:29 +08:00
chuntaojun
c6ff9031c5
refactor: remove extraneous code
2020-05-20 22:47:54 +08:00
chuntaojun
c4a93d1c37
refactor: code refactor
2020-05-20 15:45:15 +08:00
chuntaojun
07dd129dd0
refactor: fixed instance information update heartbeat information not updating
2020-05-17 16:22:49 +08:00
chuntaojun
afc74da826
build: update version to 1.3.0-BETA
2020-05-15 16:10:38 +08:00