Commit Graph

364 Commits

Author SHA1 Message Date
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
chuntaojun
71c8530abd Merge branch 'develop' of https://github.com/alibaba/nacos into jraft_naming 2020-08-12 23:34:43 +08:00
杨翊 SionYang
0b73cfc769
Upgrade version to 1.4.0-SNAPSHOT (#3549) 2020-08-12 09:32:06 +08:00
chuntaojun
14039fd9cd Merge branch 'develop' of https://github.com/alibaba/nacos into jraft_naming 2020-08-10 23:33:50 +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
mai.jh
b1db2be4c1
[ISSUE #3192] replace nacos-core module http client (#3535)
* core module replace http client

* replace http client
2020-08-06 22:01:36 +08:00
mai.jh
a64a356e45
[ISSUE #3192] replace nacos-config module http client (#3523)
* nacos-config module replace http client

* replace http client

* Remove redundant package import

* add license

* Delete JOSNUtils and use JacksonUtils instead; modify NacosAsyncRestTemplate exception handling.
2020-08-06 11:53:27 +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
liaochuntao
43f606519b
[#1839]add ContentType return while getConfig (#3470) 2020-07-31 14:53:49 +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
wangwei
e4a478a1f9 [#1839]add ContentType return while getConfig 2020-07-29 14:58:28 +08:00
mai.jh
e9152a95df
fix get HttpRequestBase thread safe issues through BaseHttpMethod (#3469) 2020-07-29 13:10:14 +08:00
chuntaojun
e08a6adc49 fix code style 2020-07-29 01:53:44 +08:00
mai.jh
5b76fd0d56
[ISSUE #2858] Unified http client implementation, enhanced async request callback interface (#3452)
* Enhanced callback interface for asynchronous requests

* change class name

* add license

* change class name

* comment change

* delete AbstractCallback
2020-07-27 13:15:50 +08:00
mai.jh
75a06834f5
unified implementation of http client package division (#3400) 2020-07-21 14:53:03 +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
Hu Zongtang
ff929b75ad
[ISSUE#3356]fix no throw exception when publish event but no subsciber. (#3363) 2020-07-17 16:12:08 +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
mai.jh
0163d2d0c7
fix: #3324, Move http client close method to NamingProxy.shutdown() (#3333) 2020-07-15 14:12:44 +08:00
mai.jh
132adb4899
[ISSUE##3317]Change the http client implementation that nacos resttemplate depends on from apache to JDk (#3322)
* fix:#3317 change the http client implementation that nacos resttemplate depends on from apache to JDk

* Use the IoUtils.closeQuietly() method to close the InputStream

* change HttpClientBeanHolder logger output object
2020-07-14 19:37:37 +08:00
mai.jh
511ef88ccc
fix:#3311 Add specified Logger when constructing nacos resttemplate (#3312) 2020-07-13 18:54:06 +08:00
Gagharv
891c1f3ba5
[ISSUE #2856]Adjust the use of thread pools (config module) (#3206)
* [ISSUE #2856]Adjust the use of thread pools (config、cmdb module)

* add CmdbExecutor class
2020-07-13 17:33:25 +08:00
Hu Zongtang
665d9d7aaf
[ISSUE#3179]Replace the NotifyCenter with new refactor in the core and test module. (#3309)
* [ISSUE#3179]Replace the NotifyCenter with new refactor in the core and test module.

* [ISSUE#3179]Replace package in the nacos-logback.xml.

* [ISSUE#3179]code reformat.
2020-07-13 13:59:25 +08:00
mai.jh
c1515b6940
[ISSUE #3197] NacosRestTemplate enhance (#3198)
* enhance nacosRestTemplate

* enhance nacosRestTemplate

* supplement throw exception

* Modify the iterate method of the interceptor and modify some method name

* Adjust the way to get HttpClientRequest implement in NacosRestTempalte

* Fix code style issue

* Fix code style issue

* Fix code style issue

* Fix code style issue

* Log output change
2020-07-13 13:55:27 +08:00
mai.jh
092a08971f
[ISSUE #3210] Enhanced nacos resttemplate response handler (#3212)
* Enhanced nacos resttemplate response handler

* Enhanced nacos resttemplate response handler

* Add license

* [#3212] Modify some class name and comment

* [#3212] Modify some class name and comment

* [#3212] Modify some class name and comment

* [#3212] change the name of property

* Fix code style issue
2020-07-13 11:34:00 +08:00
杨翊 SionYang
7ddba00865
Upgrade 1.3.1 (#3294) 2020-07-10 18:05:07 +08:00
杨翊 SionYang
bc9861c615
[ISSUE #2992] Use new code style for nacos-cmdb module. (#3289)
* Use new code style for nacos-cmdb module.

* Check again for nacos-common module.

* Check again for nacos-core module.

* Check again for nacos-naming module.

* skip nacos-test in checkstyle
2020-07-09 22:10:13 +08:00
杨翊 SionYang
c34abf368c
Hotfix register null cluster name instance problem (#3267) 2020-07-07 20:14:41 +08:00
杨翊 SionYang
88480f7c0f
Update to 1.3.1-BETA (#3194) 2020-06-29 13:56:16 +08:00
Hu Zongtang
51c0eb25ad
[#3179]fix Notify's typos in common module and remove NotifyCenter's unit test in test module (#3187)
* [#3141]fix Notify's typos in common module and remove NotifyCenter's unit test in test module.

* [#3141]fix variable naming issue.
2020-06-28 13:01:12 +08:00
Hu Zongtang
ac0eabf6cc
[#3141]Move the related notify test cases code to common module, fix NPE and improve peformance. (#3145)
* [#3141]fix typo and move unit test cases codes from core to common module.

* [#3141]implement DefaultSharePublisher to separate sharePublish from default publisher and fix typo.

* [#3141]fix typo and NPE issue.

* [#3141]improve performance and fix typo.

* [#3141]add removeSubscriber logical codes.

* [#3141]rename the unit test method's names.

* [#3141]fix typo.

* [#3141]fix thread unsafe and atomic issue.
2020-06-24 19:13:34 +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
Hu Zongtang
1dc29f2d52
[#3117]Just Sink the Notify implementation into common module and optimize some parts (#3118)
* [#3117]Sink the Notify implementation into common module and optimize some parts.

* [#3117]fix typo and reformat code styles.

* [#3117]fix typo and reformat code styles.

* [#3118]fix typo and formate.

* [#3118]Unify Subsciber and SmartSubscriber, and fix some typo and reformat.

* [#3118]fix some typo and reformat.
2020-06-22 01:10:56 +08:00
杨翊 SionYang
67b58a0117
Add missing java doc for nacos-common for checkstyle (#3112) 2020-06-19 10:24:25 +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
Gagharv
f94e8f8fb4
[ISSUE #2856]Adjust the use of thread pools (#3084)
* [ISSUE #2856][module:core、consistency]Adjust the use of thread pools

Change-Id: I793770ca0f287157dc88e3ecf1147ea308e4a547

* code optimize

Change-Id: I023ed73332f3f69c93277f25e57e0ee5c3975f02
2020-06-17 18:21:00 +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
yanlinly
86d5a32fb3
Merge pull request #3064 from chuntaojun/hotfix_client_validator
[#3063] fixed parameter validation boundary problem
2020-06-15 11:42:24 +08:00
chuntaojun
7641b45df4 fix: fixed parameter validation boundary problem 2020-06-15 10:11:34 +08:00
zhanglong
cf6b4c4f0e Tool method extract 2020-06-13 22:06:04 +08:00
liaochuntao
b9ff53b49c
Merge pull request #3048 from KomachiSion/develop-issue#2873
[ISSUE #2873] Unified copyright for file header.
2020-06-12 21:23:28 +08:00
杨翊 SionYang
81f9eff928
Merge pull request #2926 from Maijh97/develop
[ISSUE #2858] Unified implementation of Http requests
2020-06-12 19:47:41 +08:00
KomachiSion
f42dd3436d For #2873, unified copyrights for nacos-common. 2020-06-12 15:44:51 +08:00
mai.jh
95272feb28 adjust some codes 2020-06-11 17:38:34 +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
mai.jh
fa6bf9951d remove extra blank lines 2020-06-11 09:34:15 +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
902d609f1e perf: optimize configuration change event publishing 2020-06-08 23:38:53 +08:00
lengleng
56eeb35ffc ♻️ Refactoring pom. com.alibaba.nacos to ${project.groupId} Uniform variable 2020-06-06 17:24:37 +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
94c41e11d1 [#1815]fix unit test cases. 2020-06-03 17:35:49 +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
liaochuntao
184141fc57
Merge pull request #2923 from jintonghuoya/feature_maven_version_unity
[ISSUE #2860]Maven dependency optimizations, where only one version of each dependency exists
2020-06-02 14:47:26 +08:00
chuntaojun
01bb02b943 refactor: long volume, annotation optimization 2020-06-02 10:32:18 +08:00
mai.jh
a83241205c optimize response handler, remove AsyncRestOperations,RestOperations. 2020-06-01 23:51:53 +08:00
chuntaojun
3169424605 refactor: optimize old version information synchronization logic 2020-06-01 21:54:29 +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
mai.jh
379aa15c85 Added syntax compatible with Java 6 2020-06-01 16:02:41 +08:00
mai.jh
8768de406c Merge code. 2020-06-01 15:49:28 +08:00
mai.jh
177b8aa61c
Merge branch 'develop' into develop 2020-06-01 15:45:25 +08:00
mai.jh
4fc79b012f code format. 2020-06-01 15:42:20 +08:00
chuntaojun
6fb2750021 fix: fixed compatibility issues with older versions 2020-06-01 15:35:21 +08:00
mai.jh
0c02111eb1 add class file license. 2020-05-31 18:19:06 +08:00
mai.jh
7e05f3e18e add class file license. 2020-05-31 18:18:41 +08:00
mai.jh
031c9ef521 perfect NacosRestTemplate and restResult 2020-05-31 17:24:01 +08:00
zongtanghu
ab3b234987 [#1815]add class file license. 2020-05-31 13:26:27 +08:00
zongtanghu
2cb690a6a0 [#1815]add class file license. 2020-05-31 13:26:06 +08:00
zongtanghu
6d1baed235 [#1815]add the related lifecycle test cases codes. 2020-05-31 12:20:20 +08:00
mai.jh
11cc8dad02 Resolve conflicts 2020-05-30 23:56:17 +08:00
mai.jh
066968e9ca
Merge branch 'develop' into develop 2020-05-30 23:47:51 +08:00
mai.jh
a3a64c5fa3 change annotate 2020-05-30 23:20:22 +08:00
mai.jh
ea03121e26 add NacosRestTemplate and NacosAsyncRestTemplate test example 2020-05-30 22:39:04 +08:00
chuntaojun
5fceafac3f refactor: optimize the error message prompt 2020-05-30 17:28:25 +08:00
chuntaojun
75c9a5e21b refactor: modift TimerContext logger level 2020-05-29 20:58:03 +08:00
jintonghuoya
6aa395979a 回滚dependency和plugin的version无关的修改 2020-05-29 20:45:45 +08:00
chuntaojun
a1b4653d68 fix: fix unit tests that do not conform to PMD 2020-05-29 20:14:52 +08:00
chuntaojun
5dcee2f1c6 fix: fix pmd 2020-05-29 19:59:08 +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
chuntaojun
a5661f033d feat: add the metircs 2020-05-29 18:42:14 +08:00
Jack Dai
27a257c84e 合并origin/develop的变更 2020-05-29 18:41:00 +08:00
mai.jh
57ca56c07b add async http request client 2020-05-29 18:09:04 +08:00
Jack Dai
594eac42b3 整理每个module的plugin和dependency的版本号 2020-05-29 16:35:48 +08:00
zongtanghu
886fe6de00 [#1815]define LifeCycle interface and related abstract class. 2020-05-29 14:12:32 +08:00
mai.jh
92ca0e1d66 Remove extra lines 2020-05-28 22:25:28 +08:00
chuntaojun
5cd5ca35b8 refactor: merge develop 2020-05-28 20:14:47 +08:00
mai.jh
0d775ea665 change http client implementation, Unified apacheHttpClient 2020-05-28 18:24:58 +08:00
mai.jh
238b2386a7 change http client implementation, Unified apacheHttpClient 2020-05-28 18:23:29 +08:00
mai.jh
52426d43b5 change http client implementation, Unified apacheHttpClient 2020-05-28 14:38:01 +08:00
mai.jh
377bbb88cf Add some callouts 2020-05-28 10:45:33 +08:00
mai.jh
d08eac6882 change http client implementation, Unified apacheHttpClient 2020-05-28 10:36:19 +08:00
mai.jh
6086089314 fix #2858 Provide nacosRestTemplate implementation 2020-05-28 00:14:42 +08:00
chuntaojun
e8533155c7 fix: fix startup problem 2020-05-27 22:05:38 +08:00
chuntaojun
6525b5a6f8 fix: fix startup read failure 2020-05-27 18:37:36 +08:00
KomachiSion
9fc5a971d6 Add include non_null config and add new method 2020-05-27 15:37:32 +08:00
KomachiSion
4eb4e11184 Replace fastjson with jackson for nacos-console 2020-05-27 09:35:00 +08:00
KomachiSion
3887a5e0b9 Abstract NacosRuntimeException as unchecked exception super class 2020-05-26 15:39:24 +08:00
KomachiSion
5b9780e2fc Replace fastjson with jackson for nacos-client 2020-05-26 14:59:23 +08:00
KomachiSion
ff6e09e58d Handle serialization exception in JacksonUtils 2020-05-26 14:59:23 +08:00
KomachiSion
b443279ed0 Replace all fastjson with jackson in nacos-api 2020-05-26 14:59:23 +08:00
chuntaojun
6fe1d0d0da improvement: adjust part of the code 2020-05-26 11:57:27 +08:00
chuntaojun
bf2adb4be5 feat: merge develop 2020-05-26 09:43:37 +08:00
KomachiSion
4607bb7c00 Replace fastjson with jackson for Selector 2020-05-25 16:13:37 +08:00
chuntaojun
843692b10a fix: fix the class cast problem 2020-05-24 21:56:29 +08:00
chuntaojun
41703f9805 refactor: code optimization 2020-05-22 23:12:50 +08:00
chuntaojun
87a32a926b refactor: merge develop 2020-05-21 18:08:29 +08:00
chuntaojun
10d8edb4f3 refactor: optimize code logic 2020-05-19 14:16:52 +08:00
chuntaojun
e467b26ef6 style: fix code style 2020-05-19 11:21:00 +08:00
chuntaojun
f9412fd4d6 fix: fix config dump 2020-05-18 22:57:40 +08:00
chuntaojun
07dd129dd0 refactor: fixed instance information update heartbeat information not updating 2020-05-17 16:22:49 +08:00
chuntaojun
feebd1623f refactor: performance optimization 2020-05-16 19:23:11 +08:00
chuntaojun
b86f633c8a Merge branch 'develop' of https://github.com/alibaba/nacos into feature_1.3.0_beta_grpc 2020-05-16 14:36:49 +08:00
chuntaojun
afc74da826 build: update version to 1.3.0-BETA 2020-05-15 16:10:38 +08:00
chuntaojun
0c6a03724a fix: fix grpc-version bug 2020-05-14 16:25:41 +08:00
chuntaojun
4d4e914ebd fix: fixed the cluster logic for the jraft set 2020-05-13 15:43:56 +08:00
chuntaojun
82bcbd9b17 refactor: jRaft partial logical adjustment 2020-05-13 09:38:46 +08:00
water.lyl
54e251da39 release 1.3-beta 2020-05-11 23:06:23 +08:00
chuntaojun
588b184ce2 fix: none 2020-05-11 18:02:28 +08:00
chuntaojun
5879b03c7d fix: expansion and volume timing issue fixed 2020-05-09 14:49:04 +08:00
chuntaojun
29a6edc8c5 refactor: fix bugs 2020-05-08 14:53:29 +08:00
chuntaojun
5d6a0b539f fix: fix code style 2020-05-07 00:45:28 +08:00
chuntaojun
5e281892a1 refactor: remove debug log 2020-05-07 00:33:06 +08:00
chuntaojun
272abe6135 fix: fix parameter encode 2020-05-06 18:33:18 +08:00
chuntaojun
1563dc7104 fix: fixed a problem where parameters were encoded multiple times 2020-05-05 09:43:54 +08:00
chuntaojun
2526c5d8f2 fix: fix naming request redirect 2020-05-03 20:26:35 +08:00
chuntaojun
a82bcc1d6e fix: fix request transfer bug 2020-05-02 13:12:38 +08:00
chuntaojun
eca2aca6bb fix: bug fix 2020-05-01 10:09:08 +08:00
chuntaojun
eb11ff945b fix: fix standalone sync node info bug 2020-04-30 20:02:54 +08:00
chuntaojun
041effebc7 refactor: some code refactor 2020-04-30 13:46:04 +08:00
chuntaojun
a937e3090c fix: fix some bugs 2020-04-30 10:49:34 +08:00
chuntaojun
a025e56b3a fix: fix config dump bug 2020-04-28 15:08:38 +08:00
chuntaojun
dd4b577755 fix: fix double lock 2020-04-26 21:24:12 +08:00
chuntaojun
8b4a37724f refactor: address mode adds setting parameters 2020-04-26 16:29:19 +08:00
chuntaojun
e4c475295c refactor: remove complex logic, RPC ports can be customized 2020-04-23 15:22:16 +08:00
chuntaojun
853a8f587f refactor: core
logic optimization
2020-04-22 22:16:27 +08:00
chuntaojun
ef405e09e2 refactor: remove complex listening logic and bug fixes 2020-04-22 17:28:53 +08:00
chuntaojun
f222dccd3d refactor: code optimization 2020-04-21 17:14:59 +08:00