赵延
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
8a1b9d38ac
Refactor singleton naming with new naming model design ( #3788 )
...
* Abandon the implementation of the intermediate state of the naming module
* Add Client
* Add client manager
* Add client operation
* Add Client operation event and index manager
* Add push data to subscriber
* For checkstyle and pmd
* For checkstyle and pmd
* Remove unused method
2020-09-08 20:33:17 +08:00
nov.lzf
167dba13d2
check stype and pmd fix; future request optimize. ( #3782 )
2020-09-08 15:30:11 +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
nov.lzf
723dedebfe
request callback timeout support both at client and server; split sdk ( #3776 )
...
and cluster grpc server port.
2020-09-07 18:49:17 +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
KomachiSion
334e401f11
Fix merged error
2020-09-04 17:23:52 +08:00
KomachiSion
ee406d5e5e
Merge branch 'upsteam-develop' into feature_support_grpc_core
...
# Conflicts:
# client/src/main/java/com/alibaba/nacos/client/config/http/ServerHttpAgent.java
# client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
# client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java
# client/src/main/java/com/alibaba/nacos/client/naming/core/HostReactor.java
# client/src/test/java/com/alibaba/nacos/client/ConfigTest.java
# config/src/main/java/com/alibaba/nacos/config/server/service/notify/AsyncNotifyService.java
# core/pom.xml
# naming/src/main/java/com/alibaba/nacos/naming/misc/GlobalExecutor.java
2020-09-04 17:03:26 +08:00
KomachiSion
d44b108b26
Unified server grpcclient
2020-09-04 16:16:19 +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
nov.lzf
cf550b9f43
optimize request /header /meta info model, uniform request resolver pattern. ( #3749 )
...
* body string compress and opitimize request and meta info
* optimize request /header /meta info model, uniform request resolver pattern.
* delete useless code
2020-09-03 15:00:08 +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
nov.lzf
3a5c3cb19f
refactor request/response registry ; server side request push refactor ( #3739 )
...
* limiter support in rpc transport
* get next server optimize; server side notify concurrent bugfix; multi rpc client support in config module.
* toast alibaba repo refer. add client name
* rpc config change beta ips filter
* payload registry submit
* refactor request/response registry ; build response aware of server side in connection level.
* refactor request/response registry ; build response aware of server side in connection level.
* bi stream submit.
* bi stream submit.
2020-09-02 09:12:53 +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
nov.lzf
3d222268af
as-sk abstract ; simplify server http agent; optimize io netty import; client side server change event aware ( #3693 )
...
* optimize rpc listen notify
* remove cache bugfix
* code optimize
* code optimize
* config client abstract optimize, remove if/else code
* config client abstract optimize, remove if/else code
* as sk abstract ; simplify server http agent; optimize io netty import; client side server change event aware
2020-08-26 15:52:25 +08:00
liaochuntao
c617afeaa4
Jraft naming ( #3660 )
...
* fix-#3595, delete the unnecessary code (#3596 )
* [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
* [ISSUE #3592 ] Fix incorrect prompt when accessing the restricted namespace (#3603 )
* Fix incorrect prompt when accessing the restricted namespace
* Modify variable name
* [ISSUE #3600 ] Replace the deprecated api of jwt (#3616 )
* replace the deprecated api of jwt
* transfer secretKey to byte array just using String encode with utf-8
* [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`
* move jwt dependency from console,core to auth. (#3624 )
* fix: create kvstorage
* refactor: create kv storage]
Co-authored-by: 赵延 <1060026287@qq.com>
Co-authored-by: mai.jh <maijh97@gmail.com>
Co-authored-by: ljhrot <296093710@qq.com>
Co-authored-by: Xarrow <zhangjian12424@gmail.com>
2020-08-21 12:58:36 +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
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
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
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
赵延
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
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
chuntaojun
e08a6adc49
fix code style
2020-07-29 01:53:44 +08:00
chuntaojun
d3ce09bb79
Merge branch 'develop' of https://github.com/alibaba/nacos into jraft_naming
2020-07-27 13:03:50 +08:00
chuntaojun
018ce1441f
create error code
2020-07-27 13:03:45 +08:00
springliao
e90ac7e137
Major logical completion
2020-07-26 23:43:46 +08:00
springliao
3b5365cf1d
finish stop old raft run logic
2020-07-25 23:01:39 +08:00
chuntaojun
5bf02123c1
feat: create rocksdb storage
2020-07-24 00:31:44 +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
杨翊 SionYang
5029429a89
Remove context when grpc connection close. ( #3407 )
2020-07-21 20:28:24 +08:00
Gagharv
75dfd107bb
[ #3353 ]Adjust the value logic of clientBeatInterval ( #3377 )
2020-07-20 19:40:30 +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
nov.lzf
3f06a7a0f8
response model optimize ( #3357 )
...
* Add gprc support-> add grpc log to distribution logback
* Add gprc support-> response model optimize
2020-07-17 12:03:30 +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
杨翊 SionYang
d00c133c3e
Add naming support gRPC for register and deregister instance ( #3343 )
2020-07-15 20:22:07 +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
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
Jack Dai
83e6451acc
统一修改子项目中的url为nacos官网地址
2020-06-01 18:35:20 +08:00
chuntaojun
a7556fa776
fix: fix old version information not available in new version reality issue
2020-06-01 16:59:01 +08:00
chuntaojun
6fb2750021
fix: fixed compatibility issues with older versions
2020-06-01 15:35:21 +08:00
jintonghuoya
6aa395979a
回滚dependency和plugin的version无关的修改
2020-05-29 20:45:45 +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
KomachiSion
d396a885ea
Fix deserialize error for raft beat
2020-05-29 16:22:33 +08:00
KomachiSion
da4cc10e8a
Fix deserialize error for raft beat
2020-05-29 15:38:25 +08:00
KomachiSion
fc714dac74
Fix deserialize error for raft beat
2020-05-29 15:14:13 +08:00
KomachiSion
866f134262
Fix circle dependency error in Cluster
2020-05-29 14:18:08 +08:00
KomachiSion
810827c91c
Fix serverStatus api jackson error
2020-05-29 12:05:22 +08:00
KomachiSion
d27a6c7ea6
Fix replace jackson error
2020-05-28 10:40:05 +08:00
KomachiSion
90db4f17a9
Replace fastjson with jackson for nacos-naming transport
2020-05-27 15:40:43 +08:00
KomachiSion
3b0e9df9a9
Replace fastjson with jackson for nacos-naming controller and consistency
2020-05-27 15:40:21 +08:00
KomachiSion
eec067ffbd
Replace fastjson with jackson for nacos-naming misc
2020-05-27 15:39:41 +08:00
KomachiSion
a980e4ea65
Replace fastjson with jackson for nacos-naming pojo
2020-05-27 15:39:13 +08:00
KomachiSion
61135f6dce
Replace fastjson with jackson for naming.core
2020-05-27 15:38:17 +08:00
KomachiSion
ff6e09e58d
Handle serialization exception in JacksonUtils
2020-05-26 14:59:23 +08:00
liaochuntao
041416790d
Merge pull request #2880 from jzdayz/develop
...
code optimize
2020-05-26 12:16:00 +08:00