Commit Graph

2960 Commits

Author SHA1 Message Date
nov.lzf
5c656d6f42
memory gc optimize ; string pool bugfix (#4261) 2020-11-19 10:34:40 +08:00
杨翊 SionYang
d4b2d2f146
Adapt update service metadata api. (#4260)
* Adapt update service metadata api.

* For checkstyle
2020-11-18 21:09:47 +08:00
nov.lzf
69c84f1397
pmd ,checkstyle (#4252) 2020-11-18 13:46:27 +08:00
nov.lzf
70d976db18
更新版本;集群整体重新负载均衡功能;变更推送内容;推送SLA日志;常量池改造;启动时长链接优化;删除rpc digest 日志 (#4217)
* listen context bugfix.

* 更新版本;集群整体重新负载均衡功能;变更推送内容;推送SLA日志;常量池改造;启动时长链接优化;删除rpc digest 日志
2020-11-12 18:03:07 +08:00
杨翊 SionYang
164ed33ada
Feature support grpc core (#4204)
* NacosNamingMetadataManager --> NamingMetadataManager

* Try to add ServiceMetadata consistency

* add catalog api support new data

* Change version to 2.0.0-SNAPSHOT
2020-11-11 19:50:14 +08:00
杨翊 SionYang
10e00e8cd3
Use SPI to load health check interceptor (#4154) 2020-11-06 17:31:24 +08:00
杨翊 SionYang
c81bb5b722
Add NacosServiceLoader and replace ServiceLoader usage directly (#4151)
* Add NacosServiceLoader

* Replace ServiceLoader by NacosServiceLoader
2020-11-06 14:46:28 +08:00
杨翊 SionYang
0d4f882835
Merge pull request #4149 from KomachiSion/feature_support_grpc_core
Synchronize develop branch and upgrade version to 2.0.0-ALPHA
2020-11-05 20:06:48 +08:00
KomachiSion
8829d3c6ed Upgrade to 2.0.0-ALPHA 2020-11-05 19:38:15 +08:00
KomachiSion
9cbc0bfeea Merge branch 'upsteam-develop' into feature_support_grpc_core
# Conflicts:
#	api/src/main/java/com/alibaba/nacos/api/common/Constants.java
#	client/src/main/java/com/alibaba/nacos/client/naming/remote/http/HttpClient.java
#	common/src/main/java/com/alibaba/nacos/common/utils/VersionUtils.java
#	core/src/main/java/com/alibaba/nacos/core/distributed/distro/DistroProtocol.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/InstanceController.java
#	naming/src/main/java/com/alibaba/nacos/naming/controllers/ServiceController.java
#	naming/src/main/java/com/alibaba/nacos/naming/misc/GlobalExecutor.java
2020-11-05 19:33:46 +08:00
邪影oO
6ddfa3e997
fix the occasional failure of CI (#4131)
* fix the occasional failure of CI

* 修复错误的修改

* no message
2020-11-05 10:12:06 +08:00
赵延
4cd19990f2
[ISSUE-#4066] Make serviceNameList followed string order (#4087)
* make serviceNameList followed string order

* code format
2020-11-05 09:54:25 +08:00
杨翊 SionYang
ccea6ee112
Upgrade to 1.4.1-SNAPSHOT (#4135) 2020-11-05 09:43:33 +08:00
赵延
c38ee0b34c
com.alibaba.nacos.naming.controllers.ServiceController.list param groupName support '*' to get all group serviceName (#4133) 2020-11-05 09:23:02 +08:00
mai.jh
796849b17d
refactor: delete the old http client code marked as @Deprecated (#4122) 2020-11-05 09:10:30 +08:00
赵延
053b7819d6
[ISSUE-#4125] Fix param check in com.alibaba.nacos.common.utils.MapUtils#computeIfAbsent (#4126)
* fix param check mismatch

* add map check
2020-11-04 16:41:07 +08:00
Gagharv
1282445cf6
Reduce unnecessary InetAddress.getLocalHost() calls (#4095)
* Reduce unnecessary InetAddress.getLocalHost() calls

* Set workerId to instance variables to ensure that its value can be different on the same server
2020-11-03 10:54:50 +08:00
mai.jh
83daa1a909
Merge pull request #4118 from KomachiSion/1.4.0
Upgrade to 1.4.0
2020-11-02 19:58:05 +08:00
KomachiSion
adbcb7549d Upgrade to 1.4.0 2020-11-02 19:09:19 +08:00
杨翊 SionYang
9c39757580
Use interceptors and checkers to refactor client beat check task (#4112)
* Add Health check Interceptable to decouple task and responsible

* Move v2 heart beat class to heartbeat package.

* use interceptors and checkers to refactor client beat check task
2020-11-01 19:41:55 +08:00
liaochuntao
4203eec7a4
fix: fix issue #4110 (#4111) 2020-11-01 19:37:29 +08:00
Xinda
29d82c4a1a
fix: typo fix in ServiceManager (#4101) 2020-10-31 13:14:45 +08:00
杨翊 SionYang
d8b3c1ecf2
Async some time-consuming operation and add metadata (#4099)
* async update ip port client heart beat

* async push service data

* Remove unused class

* Judge ip port tag by server member ability

* Remove unused codes in HealthCheckCommon

* Add metadata

* Get client beat check timeout from metadata first.
2020-10-30 17:00:09 +08:00
Hoswey
45049b426a
Update codeStyle.md (#4092)
修改错误拼写

Co-authored-by: yanlinly <yan.lin2009@163.com>
Co-authored-by: 杨翊 SionYang <263976490@qq.com>
2020-10-30 16:53:31 +08:00
sanxun0325
2fef8f2466
refine GoClient value (#4043) 2020-10-29 16:19:28 +08:00
赵延
5776775325
fix com.alibaba.nacos.naming.core.ServiceManagerTest#testUpdateIpAddressesNoInstance unit test can't pass (#4069) 2020-10-28 14:00:55 +08:00
Geertjan Wielenga
adf07eb935
Create maven.yml (#4076) 2020-10-28 10:44:18 +08:00
赵延
bdbb3de62e
[ISSUE-#4056] Ignore load data from remote when standalone mode (#4061)
* ignore load data from remote when standalone mode

* refactor. move standalone mode check from DistroLoadDataTask to DistroProtocol

* rename variable loadCompleted to isInitialized
2020-10-26 19:58:07 +08:00
杨翊 SionYang
6eeeb76473
Develop fix jraft null datum (#4048)
* Fix old raft sync null datum problem

* Fix TimerContext NPE problem
2020-10-22 15:40:00 +08:00
杨翊 SionYang
9ecc17ec17
Merge pull request #4034 from alibaba/jraft_naming_fix_commit_log
Merge jraft naming to develop branch
2020-10-21 15:43:34 +08:00
KomachiSion
fc33fb211c Fix integration test error 2020-10-21 13:49:16 +08:00
KomachiSion
7ad96444c8 Fix unit test error in ci 2020-10-21 10:42:50 +08:00
KomachiSion
cf607a47cd For checkStyle 2020-10-21 09:45:14 +08:00
KomachiSion
5d068a96c7 Merge branch 'jraft_naming' into jraft_naming_fix_commit_log
# Conflicts:
#	console/src/main/resources/static/js/main.js
2020-10-21 09:24:53 +08:00
wangpin
acc865d441
Modify the startup script custom configuration first default configuration (#4021) 2020-10-20 20:11:50 +08:00
杨翊 SionYang
4ee7626bd9
Merge pull request #4024 from alibaba/revert-4023-jraft_naming
Revert "Naming module Raft protocol migration"
2020-10-20 14:33:01 +08:00
杨翊 SionYang
525f981344
Revert "Naming module Raft protocol migration" 2020-10-20 14:32:42 +08:00
杨翊 SionYang
b246668e7d
Merge pull request #4023 from chuntaojun/jraft_naming
Naming module Raft protocol migration
2020-10-20 14:25:13 +08:00
chuntaojun
13f65ed101 Merge branch 'jraft_naming' of https://github.com/chuntaojun/nacos into jraft_naming 2020-10-20 14:22:24 +08:00
chuntaojun
fd3ab9d91d Merge branch 'jraft_naming' of https://github.com/alibaba/nacos into jraft_naming 2020-10-20 14:21:44 +08:00
赵延
1898ddc36d
[ISSUE #3904] feature - operate instance's metadata alonely (#3912)
* feature. add update and delete operation on instance's metadata 90%

* 1.add unit test
2.fix-locateInstance error

* format code style

* add @link on class

* move metadata operate to InstanceController.

* format code 50%

* complete bacth operation of metadata

* remove unnecessary test unit

* modify the variable name

* perfect log info

* modify consumer's dto to match it's description

* 1.rename class OperationContext -> InstanceOperationContext
2.move Map operation from NamingUtils to MapUtils

* check datum is null

* code refactor.

* 1. code refactor
2. modify the batch operate http param. just support (1 services : n instance)

* 1.set default clusterName if instance not set
2.fix client params not set instances bug

* npe fix

* 1.remove consistencyType *, just support ephemeral or persist.
2.remove moditfy property method in InstanceOperationContext and InstanceOperationInfo, it just defined by constructor.

* add instance controller test

* fix code too length

* update the param name

* add feature's version of start
2020-10-19 16:32:02 +08:00
leo
4c2d56cc2b
For #3710#, Fix special characters cannot be used in Metadata (#4019) 2020-10-19 16:31:31 +08:00
jiang
6df2b229d0
[ISSUE-#3855] Provided a feature to view version comparisons in the configDetails page (#3988)
* add detail previous config history api

* modify the previous config history url

* modify log description

* 详情页面添加“历史对比”按钮,点击可打开对比面板

* 点击“历史对比”按钮,获取上一版本数据

* 在查看历史对比的时候 不显示revert按钮

* append doc info

* Add unit tests for ISSUE#3855

* Add the previous updates to main.js and main.css

Co-authored-by: 赵延 <1060026287@qq.com>
2020-10-19 09:29:59 +08:00
杨翊 SionYang
cd7d4dc391
Merge pull request #4006 from KomachiSion/feature_support_grpc_core
Synchronize code from develop.
2020-10-16 15:40:42 +08:00
KomachiSion
9a0e8705dd solve conflict from develop branch and for checkstyle 2020-10-16 15:39:03 +08:00
KomachiSion
1ba8787d3b solve conflict from develop branch 2020-10-16 15:28:09 +08:00
KomachiSion
47481fedfb Merge branch 'upsteam-develop' into feature_support_grpc_core
# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/naming/NacosNamingService.java
#	client/src/main/resources/nacos-log4j2.xml
#	config/src/main/java/com/alibaba/nacos/config/server/service/notify/AsyncNotifyService.java
#	core/src/main/java/com/alibaba/nacos/core/cluster/MemberMetaDataConstants.java
2020-10-16 15:26:33 +08:00
杨翊 SionYang
d78ebbbce1
Refactor dispatch task execute (#3995)
* Refactor nacos task execute engine

* Refactor nacos task execute engine

* For checkstyle

* For checkstyle

* Use ThreadUtils to reduce duplicate codes

* Set custom logger for TaskExecuteWorker

* Set custom logger for TaskExecuteWorker
2020-10-16 14:32:39 +08:00
杨翊 SionYang
164ad3a8b9
Revert "for #3621 (#3668)" (#3999)
This reverts commit 29ba11eb to fix #3992
2020-10-16 11:19:52 +08:00
chuntaojun
fbeab52dfd Merge branch 'jraft_naming' of https://github.com/chuntaojun/nacos into jraft_naming 2020-10-15 23:52:00 +08:00