Commit Graph

729 Commits

Author SHA1 Message Date
hujun
6ce2eb8d7c Add error information to facilitate troubleshooting 2021-12-31 20:53:48 +08:00
MajorHe1
c6bae6ba1d
[ISSUE #7276] init security proxy when construct in NacosNamingMainta… (#7287)
* [ISSUE #7276] init security proxy when construct in NacosNamingMaintainService

* [ISSUE #7276] add something to make ci re-run
2021-12-21 12:51:21 +08:00
赵延
78f783f55b
fix push again problem. (#7412) 2021-12-15 11:11:50 +08:00
李晓双 Li Xiao Shuang
4c27c03052
Merge pull request #7311 from li-xiao-shuang/feature_7310
[ISSUE #7310] replace with <>
2021-12-01 11:51:52 +08:00
李晓双 Li Xiao Shuang
6c2704dd3d
[ISSUE #7308] replace with lambda (#7309)
* replace with lambda

* remote unused import
2021-11-30 16:05:24 +08:00
lixiaoshuang
3059cf8683 replace with <> 2021-11-29 22:51:29 +08:00
赵延
c0fb69bdb3
fix update task can't stop problem. (#7248) 2021-11-29 10:28:10 +08:00
onewe
e5cb831965
[ISSUE #7229] Optimize the constants to the utils package for the client module. Part 5 (#7259)
* add Constants.java

* Optimize the constants to the utils package for the client module
2021-11-24 11:17:40 +08:00
onewe
e4c5368147
[ISSUE #7229] Optimize the constants to the logging package for the client module. Part 2 (#7256)
* add Constants.java

* Optimize the constants to the logging package for the client module
2021-11-24 11:16:09 +08:00
李晓双 Li Xiao Shuang
c6adbcaa20
replace with lambda (#7218) 2021-11-12 10:56:54 +08:00
李晓双 Li Xiao Shuang
774fcf74ce
[ISSUE ##7214] replace with lambda (#7215)
* can be replaced with lambda

* can be replaced with <>

* replace with lambda

* delete unused import
2021-11-12 10:28:25 +08:00
李晓双 Li Xiao Shuang
80874749bf
[ISSUE #7220] replace with lambda (#7222)
* replace with lambda

* replace with lambda
2021-11-12 10:20:54 +08:00
brotherlu-xcq
f51985e0b1
[ISSUE #7504] fix the typos in TemplateUtils.java. (#7162) 2021-11-04 09:58:34 +08:00
赵延
290316d2ac
not publish server list change event when the servers is not change. (#7165) 2021-11-04 09:58:09 +08:00
李晓双 Li Xiao Shuang
6121bc7e05
can be replaced with <> (#7137) 2021-10-28 10:14:27 +08:00
李晓双 Li Xiao Shuang
72bbd24c88
[ISSUE ##7131] replaced with lambda (#7136)
* can be replaced with lambda

* can be replaced with <>
2021-10-28 10:14:08 +08:00
secbro2
562cf6f579
optimize the HashMap’s initialCapacity (#6714) 2021-08-24 09:36:59 +08:00
secbro2
6a273c9451
format and optimize the log (#6675)
* complete the warn log

* format and optimize the log

* format and optimize the log
2021-08-17 09:31:43 +08:00
secbro2
8801be513d
complete the warn log (#6646)
* complete the warn log

* format and optimize the log
2021-08-16 10:11:35 +08:00
secbro2
0dffe2e769
change the "initialCapacity" of HashMap (#6588)
* HashMap自动扩容因子0.75,此处默认值会自动扩容一次。

* Revert "HashMap自动扩容因子0.75,此处默认值会自动扩容一次。"

This reverts commit e7b2055e

* 修复HashMap自动扩容一次问题
2021-08-11 13:31:49 +08:00
ZZQ的
d54789dbc3
Remove expired TODO (#6586)
* Remove expired TODO

* Format code
2021-08-09 09:50:11 +08:00
孙继峰
f91089eb90
[ISSUE #6595] Optimize RpcClient (#6596)
* replace explicit type argument with <>

* replace anonymous class with lambda

* remove redundant initializer

* format comment & log and fix typo

* add unit test to RpcClient::resolveServerInfo

* extend CollectionUtils::getOrDefault

* simplify RpcClient::resolveServerInfo

* remove unused variable
2021-08-09 09:42:37 +08:00
ZZQ的
449480f68b
Refactor the cache to replace guava (#6520)
* Refactor the cache to replace guava

* Refactor CacheBuilder

* add unit test

* Format code
2021-08-03 09:30:26 +08:00
Catcher Wong
54408d49b3
improve the code quality for naming client FailoverReactor (#6451) 2021-07-26 09:27:49 +08:00
MajorHe1
7441c3ad17
[ISSUE #6416] fix some typo in NamingGrpcRedoService (#6418) 2021-07-22 09:56:14 +08:00
杨翊 SionYang
fca259fd38
[ISSUE#6384] Add redo feature for nacos client naming (#6395)
* Add RedoData

* Add NamingGrpcRedoService

* Add RedoScheduledTask

* Refactor NamingGrpcClientProxy to use new redo service.

* For PMD

* Remove NamingGrpcConnectionEventListener.java
2021-07-21 10:08:10 +08:00
hunjipo
cdc276e829
To slightly improve performance, this commit switches to StringBuilder.append(char) instead of StringBuilder.append(String) whenever we append a single character to a StringBuilder. (#6300) 2021-07-12 13:51:14 +08:00
MajorHe1
5bb048cf7a
[ISSUE #6142] redo register and subscribe repeatedly if failed. get data from database if user and role info not in cache. (#6156)
* [ISSUE #6142] redo register and subscribe repeatedly if failed. get data from database if user and role info not in cache.

* [ISSUE #6142] simplify redo register and subscribe strategy, use set to record failed task.

* [ISSUE #6142] change the return value of redoRegisterEachInstance. move connected judgement to start of loop.

* [ISSUE #6142] add unit test for NamingGrpcConnectionEventListener. remove cache missed judgement of user and role.

* [ISSUE #6142] Merge origin develop branch to fix CI failure. Change thread sleep implement.
2021-06-30 17:44:07 +08:00
shalk(xiao kun)
38e907584a
[ISSUE #5807]Add unit tests for package com.alibaba.nacos.client.utils in nacos (#6136)
* add more ut for package c.a.nacos.client.utils

* fix ParamUtilTest

* add more ut for package c.a.nacos.client.utils

* fix ParamUtilTest

* fix test

* fix ut
2021-06-28 09:55:10 +08:00
shalk(xiao kun)
9e516839ed
[ISSUE #5806]Add unit tests for package com.alibaba.nacos.client.logging in nacos (#6137)
* add ut for package c.a.nacos.client.logging

* fix Log4J2NacosLoggingTest
2021-06-25 18:00:06 +08:00
杨翊 SionYang
0d3bf616e6
[ISSUE#5976] Fail CI directly if UT can't pass. (#6106)
* For #5976. fail CI directly if UT can't pass.

For #5976. fail CI directly if UT can't pass.

For #5976. fail CI directly if UT can't pass.

* For #5976. fail CI directly if UT can't pass.
2021-06-18 17:49:51 +08:00
brotherlu-xcq
b97644109d
[fix-#5845] remove the unused codes (#6096) 2021-06-17 19:18:14 +08:00
孙继峰
fb3e5ad290
simplify Assert (#6095) 2021-06-17 19:17:37 +08:00
realJackSun
467154833b
[#5984] Fix unit tests in nacos-client (#5998) 2021-06-16 10:21:15 +08:00
nov.lzf
f802b223d5
concurrent sync flag fix (#6049)
* concurrent sync flag fix

* fix check style
2021-06-16 10:18:31 +08:00
brotherlu-xcq
6c8bbf29a1
[FOR 5771 utils] improve the code quality of nacos-client. (#6006)
* [code quality] [nacos-client] [utils] simple the judge logic, constant export

* the constants re-use
2021-06-15 13:53:04 +08:00
Pixy Yuan
0d63616a29
[ISSUE #6019] Support fetching server list from endpoint with namespace. (#6020) 2021-06-09 16:41:31 +08:00
杨翊 SionYang
13fe9a84c7
Add/Remove cache before call server. (#6015) 2021-06-09 14:52:18 +08:00
brotherlu-xcq
79be070e1b
[code quality] [nacos-client] [naming] simple the judge logic, constant export (#6009) 2021-06-09 10:17:45 +08:00
brotherlu-xcq
bec96c1f19
[code quality] [nacos-client] [identity] simple the judge logic, constant export, chinese javadoc translate (#6005) 2021-06-09 09:56:55 +08:00
brotherlu-xcq
1daa598902
[FOR 5771 config impl] improve the code quality of nacos-client. (#5980)
* [code quality] [nacos-client] [common/filter/http] simple the judge logic, constant export, chinese javadoc translate

* [code quality] [nacos-client] [impl] remove unused import

* [code quality] [nacos-client] [impl] fix CI problem
2021-06-09 09:46:07 +08:00
brotherlu-xcq
32b20c906f
[code quality] [nacos-client] [utils] simple the judge logic, constant export, chinese javadoc translate (#5981) 2021-06-08 10:19:08 +08:00
brotherlu-xcq
23bd92b36f
[FOR 5771 config common/filter/http] improve the code quality of nacos-client. (#5979)
* [code quality] [nacos-client] [common/filter/http] simple the judge logic, constant export, chinese javadoc translate

* [code quality] [nacos-client] [common/filter/http] remove unused import
2021-06-08 09:53:45 +08:00
Pixy Yuan
4cbc6a4960
[ISSUE #5952] Feature make naming rpc client aware of server list change (#5974)
* [ISSUE #5952] Optimize rpcClient creation lock.

* [ISSUE #5952] Make naming rpc client aware of server list change.
2021-06-07 20:07:39 +08:00
nov.lzf
de6a4b803d
client aware server list change (#5952) 2021-06-04 19:34:38 +08:00
nov.lzf
55c6f44413
fix query sla multi connection model ;add rpc client error log; optimize client shutdown (#5949)
* fix multi connection model ,query sla

* add rpc client error log

* optimize client shutdown

* optimize client log
2021-06-04 15:27:32 +08:00
shalk(xiao kun)
0e4d13e789
[ISSUS #5804]add unit test for c.a.n.client.security (#5925)
* wip

* add unit test for c.a.n.client.security

* remove file
2021-06-04 09:42:39 +08:00
nov.lzf
3dc1a8cd96
fix ak sk and some tiny optimize (#5937)
* fix ak bug.

* fix ak bug.

* revert version
2021-06-04 09:41:40 +08:00
shalk(xiao kun)
7e11dcb916
[ISSUS #5805]add unit test for c.a.n.client.identify (#5916)
* wip

* add unit test for c.a.n.client.identify
2021-06-03 09:55:46 +08:00
mask
e2909b0796
[ISSUE #4208] Fix bug when configuring multiple ips. (#5891)
* [ISSUE #4208] Fix bug when configuring multiple ips.

* [ISSUE #4208] Fix bug when configuring multiple ips.

* Format the code.

* Add unit test.
2021-05-31 09:58:05 +08:00