Commit Graph

738 Commits

Author SHA1 Message Date
mai.jh
5e4429f0e4
[ISSUE#3192] naming module replace http client (#3763)
* naming module replace http client

* refactor: naming module replace http client.

* refactor: naming module replace http client.

* refactor: Add apache http client Factory.

* refactor: naming module replace http client.

* fix code style

* refactor: Add http client config

* refactor: naming module HttpClientManager change

* refactor: naming module HttpClientManager change

* refactor: naming module replace http client.

* fix code style

* refactor: fix JDK http client Use error problem.

* refactor: Query And Header entity init Add non-empty judgment

* Enhance the asynchronous http delete request method to support body passing parameters.

* refactor: apache http client set MaxConnTotal and maxConnPerRoute.
2020-09-15 09:18:20 +08:00
赵延
3dc0f243f8
[ISSUE #3687] check serviceName's format(groupName@@serviceName) in server and client (#3767)
* 1.in server, check serviceName's format 'groupName@@serviceName', groupName and serviceName can't be blank
2.in client, check 'groupName@@serviceName', groupName and serviceName can't be blank

* ignore the check to groupName

* check split's length instead of exception to check argument

* 1.add some notes
2.remove unnecessary code

* modify the notes
2020-09-09 16:40:07 +08:00
杨翊 SionYang
f42cb4716d
[ISSUE #3658] Some enhance refactor for naming distro (#3765)
* Some enhance refactor for naming distro

* Remove null code
2020-09-08 11:30:19 +08:00
horizonzy
1f8a64b11d replace the deprecated api com.fasterxml.jackson.databind.node.ObjectNode#put(java.lang.String, com.fasterxml.jackson.databind.JsonNode) 2020-09-07 15:15:47 +08:00
杨翊 SionYang
37bb909785
[ISSUE#3658] Move distro sync code to nacos-core module (#3750)
* Move distro sync code to nacos-core module

* Update unit test
2020-09-04 00:15:11 +08:00
杨翊 SionYang
0c194e37aa
[ISSUE#3692] Use new distro implmentation to handle init all datum request. (#3744)
* Add load data task in DistroProtocol

* Use new distro implmentation to handle init all datum request.

* Fix unit test
2020-09-03 11:15:47 +08:00
杨翊 SionYang
6ba23ba3c1
[Issue #3692] Use new distro implmentation to handle sync datum and checksum request (#3734)
* Add receive data and verify data distro protocol interface

* Use new distro implmentation to handle sync datum and checksum request

* Use new distro implmentation to handle get datum request.
2020-09-02 09:51:13 +08:00
杨翊 SionYang
525672272e
[Issue#3692] Use new distro task engine replace old task dispatcher. (#3715)
* Add ServiceManagerTest

* Add DistroConsistencyServiceImplTest

* Add new distro entities

* Add new distro sync data change

* add new VerifyTask to do checksum.

* Replace old sync task and checksum task

* Add retry sync change task.

* Fix high cpu load

* For checkstyle

* Combine naming sync task to reduce http cost

* Move some classes

* Refactor keys combined logic

* enhance package construct

* Fix unit test

* For pmd
2020-09-01 10:46:45 +08:00
杨翊 SionYang
2d790a03a3
Try to fix nacos server CLOSE_WAIT (#3703) 2020-08-27 14:42:50 +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
526e2bc130
[ISSUE #3566] move the permission code of nacos-core module to nacos-auth module (#3593)
* move the permission code of nacos-core module to nacos-auth module.

* Fix some code style issues

* address server module auth package name change.

* test change

* Incorrect package name correction
2020-08-14 09:50:05 +08:00
杨翊 SionYang
0b73cfc769
Upgrade version to 1.4.0-SNAPSHOT (#3549) 2020-08-12 09:32:06 +08:00
赵延
c9b64e0173
fix-#3550. write cache file and delete the old version cache file (#3551) 2020-08-10 09:09:13 +08:00
赵延
9734deeefc
[ISSUE #3486] Fix com.alibaba.nacos.core.code.ControllerMethodsCache will mismatch sometimes (#3487)
* fix #3486

* modify code suit checkstyle

* add apache licenses

* change the publish version of new class

* set the char "-->" in interface

* set the char "-->" in interface

* code format

* add unit case of com.alibaba.nacos.core.code.ControllerMethodsCache.getMethod

* code format follow nacos-code-style

* code format follow nacos-code-style
2020-08-07 10:51:39 +08:00
杨翊 SionYang
df4b006b36
Upgrade version to 1.3.2 (#3512) 2020-08-04 12:58:45 +08:00
Gagharv
75dfd107bb
[#3353]Adjust the value logic of clientBeatInterval (#3377) 2020-07-20 19:40:30 +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
杨翊 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
88480f7c0f
Update to 1.3.1-BETA (#3194) 2020-06-29 13:56:16 +08:00
Gagharv
3f145e6374
[ISSUE #2856]Adjust the use of thread pools (naming module) (#3136)
Change-Id: I626179bd9ee8e852d9d51787950ad80744ec71cd
2020-06-28 10:59:09 +08:00
Joe
41525b0a5c
Update ServiceController.java (#3176)
adjust order for start and end ,avoid end value is negative number
2020-06-28 09:21:28 +08:00
杨翊 SionYang
49c163b266
Hotfix frequent member change logs after #3168 (#3174)
* Fix operate for unmodifiableList error

* Hotfix frequent member change logs after #3168
2020-06-25 11:14:38 +08:00
mai.jh
aac1c6f013
[ISSUE #3160]fix compatibility issue when reading cache files with suffix ".datum" (#3163)
* fix: #3160

* change the name definition
2020-06-24 19:18:24 +08:00
liaochuntao
f5e1025f14
[ISSUE #3110] Hotfix member health (#3168)
* improvement: merge upstream/develop

* fix: fix node status change not notified

* style: fix code style

* refactor: optimize node change event logic

* refactor: adjust the node change event receiver logic
2020-06-24 15:30:10 +08:00
liaochuntao
9a44b920a8
[ISSUE #3107] Style format core (#3108)
* improvement: merge upstream/develop

* style: format code style

* style: modify pom.xml

* fix: fix code style
2020-06-18 21:27:49 +08:00
pengzhengfa
961f0d14f2
Schedule naming optimization of cp architecture (#3109)
* Instance eliminate module naming optimization

* Solve PMD check failed

* Method name optimization

* Solve code space problem

* Method name optimization

* Optimize the naming of persistence layer

* Schedule naming optimization of cp architecture
2020-06-18 19:17:20 +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
pengzhengfa
38d0b6bdbe
Method name optimization (#3104)
* Instance eliminate module naming optimization

* Solve PMD check failed

* Method name optimization

* Solve code space problem

* Method name optimization

* Optimize the naming of persistence layer
2020-06-18 16:32:14 +08:00
pengzhengfa
d24f36b9eb
Instance eliminate module naming optimization (#3093)
* Instance eliminate module naming optimization

* Solve PMD check failed
2020-06-17 21:04:50 +08:00
杨翊 SionYang
67829bb5e3
[ISSUE #2992] Use new code style for nacos-naming (#3090)
* Update check style to ignore spring bean java doc

* use new code style for nacos-naming
2020-06-17 18:21:41 +08:00
赵延
aea7dd69ed
[ISSUE #2810] don't send beat when standalone model (#3047)
* don't send beat when standalone model

* format the code.
2020-06-17 11:33:34 +08:00
pengzhengfa
ee8da9ba6f
Method name optimization (#3068) 2020-06-15 14:27:44 +08:00
KomachiSion
a614589000 For #2873, unified copyrights for nacos-naming. 2020-06-12 16:04:52 +08:00
杨翊 SionYang
f49eba341c
Merge pull request #2287 from rushsky518/sync_content
HttpCLient uses ByteArrayEntity when sync data
2020-06-10 16:21:07 +08:00
杨翊 SionYang
7f7ee0d5b3
Merge pull request #1877 from ly641921791/issue_1865
Fix #1865 use DriverManager instead of MysqlDataSource to get the connection
2020-06-10 14:26:46 +08:00
杨翊 SionYang
e6c578f4e2
Merge pull request #3008 from zhouhailin/develop
FIX ISSUE #3007 : MaxHistory字段名称和Nacos默认的命名风格不统一
2020-06-10 14:01:40 +08:00
杨翊 SionYang
ecf65eec01
Merge pull request #2849 from lin-mt/develop
fix:#2839
2020-06-10 10:35:43 +08:00
zhouhailin
2efe317597 FIX ISSUE #3007 : MaxHistory字段名称和Nacos默认的命名风格不统一 2020-06-09 23:02:18 +08:00
Brian Huang
0f1d0abcc1 hi.here 'addAll()' call can be replaced with parametrized constructor call,performance will be better 2020-06-07 19:55:21 +08:00
lengleng
56eeb35ffc ♻️ Refactoring pom. com.alibaba.nacos to ${project.groupId} Uniform variable 2020-06-06 17:24:37 +08:00
water.lyl
7b8bdc4e71 Merge branch 'develop' of github.com:alibaba/nacos into develop 2020-06-05 09:03:21 +08:00
water.lyl
7f541a9a67 update version to 1.3.0 2020-06-05 09:02:17 +08:00
KomachiSion
3e37ac4bf2 Fix 1.3 version don't report server status to lower version. 2020-06-04 15:09:18 +08:00
liaochuntao
5d9c0798d0
Merge pull request #2940 from Maijh97/fix_http_client_bug
[ISSUE #2939]
2020-06-02 21:18:38 +08:00
mai.jh
98ee23e248 fix: #2939 2020-06-02 14:53:09 +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
c196c8f52f fix: adjust where version information is inserted 2020-06-02 12:32:26 +08:00
chuntaojun
01bb02b943 refactor: long volume, annotation optimization 2020-06-02 10:32:18 +08:00
chuntaojun
3169424605 refactor: optimize old version information synchronization logic 2020-06-01 21:54:29 +08:00