Commit Graph

712 Commits

Author SHA1 Message Date
KomachiSion
dd600537b0 For PMD and copyright. 2021-10-09 14:20:39 +08:00
杨翊 SionYang
77afc50350
[ISSUE#5696] Move and repackage some ram class to ram package. (#7040)
* move client.identity package to auth.ram.identity.

* move SignUtil to ram.utils.

* Add shutdown for auth plugin.

* Move SpasAdapter to new package.
2021-10-09 11:38:43 +08:00
杨翊 SionYang
7ccd0773f1
[ISSUE#5695] Replace the usage of Ram in naming and config module. (#7038)
* Change SecurityProxy usage

* Replace ram usage in naming module

* Replace ram usage in naming module

* Replace ram usage in config module

* Remove unused field and fix unit test.
2021-10-09 10:32:45 +08:00
杨翊 SionYang
1cfbd45fda
[ISSUE#5696] Add Ram client auth service impl. (#7036)
* Add Resource abstract.

* Add Ram client auth service impl.
2021-10-08 16:59:08 +08:00
杨翊 SionYang
cbf80cd297
[ISSUE#5696] repackage client (#7029)
* Rename and move classes make them more readable.

* Rename and move test classes.
2021-10-08 10:03:36 +08:00
Wuyunfan-BUPT
c771c5d2b9
[ISSUE # 5696] Replace original auth client (#6885)
* Replace auth client

* Replace auth client original implement

* Replace original auth client

* Revise client: combine function and modify name
2021-09-18 09:43:30 +08:00
Wuyunfan-BUPT
b825bac845
Add auth client: plugin and implement (#6883) 2021-09-15 11:55:31 +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
孙继峰
15c71831e7
[ISSUE #5765] fix localhost not match ip (#5852)
* rename IPUitl to InternetAddressUtil

* move isDomain to InternetAddressUtil

* [ISSUE #5765] fix localhost not match ip

* fix typo

* delete the verification IP, follow the single responsibility principle
2021-05-27 19:01:39 +08:00
xiaoheng1
9cc023ed29
fix #5850 Modify the comment in CacheData to English (#5851) 2021-05-26 10:12:28 +08:00
xiaoheng1
ee621be74a
fix #5826 Optimize SecurityProxy code (#5828) 2021-05-25 09:36:07 +08:00
杨翊 SionYang
3d8b2c0b17
For #5831, Remove the sets in connection event lister (#5832) 2021-05-24 20:38:34 +08:00
liaozan
f5f03ac552
fix ConfigRequest.getType (#5760)
* Update ConfigRequest.java

* Update ConfigRequestTest.java
2021-05-18 09:32:57 +08:00
plusmancn
0cf05943c6
feat: support of specifying NAMING_CACHE_REGISTRY_DIR property (Nacos V2) (#5758) 2021-05-17 20:21:05 +08:00
KomachiSion
cf5a171ac5 Merge remote-tracking branch 'upstream/develop' into feature_support_grpc_core
# Conflicts:
#	NOTICE
#	api/pom.xml
#	common/src/main/java/com/alibaba/nacos/common/notify/DefaultPublisher.java
#	config/src/main/java/com/alibaba/nacos/config/server/service/LongPollingService.java
#	naming/src/test/java/com/alibaba/nacos/naming/consistency/persistent/impl/NamingSnapshotOperationTest.java
#	naming/src/test/java/com/alibaba/nacos/naming/core/DomainsManagerTest.java
#	naming/src/test/java/com/alibaba/nacos/naming/healthcheck/ClientBeatCheckTaskTest.java
#	pom.xml
#	test/src/test/java/com/alibaba/nacos/test/core/JacksonUtils.java
2021-05-14 11:04:52 +08:00
shalk(xiao kun)
c8ad434ba9
[ISSUE #5155] Add unit tests for package com.alibaba.nacos.client.naming.remote in nacos 2.0 (#5679)
* wip: add NacosNamingMaintainServiceTest

* wip

* add  NacosNamingServiceTest
2021-05-12 14:44:59 +08:00
xiaoheng1
42ab4b0d71
Optimize ConfigRequest and ConfigResponse code, extract common constants (#5548)
* fix 5547 Optimize ConfigRequest and ConfigResponse code, extract common constants

* modify Contants to ConfigConstants

* add summary javadoc
2021-05-10 10:49:56 +08:00
孙继峰
818d37b71c
delete duplicated dependency (#5622) 2021-05-10 10:43:58 +08:00
xiaoheng1
9fb0ec3b79
fix #5536 add configFilterChain test case (#5539) 2021-04-30 17:39:58 +08:00
xiaoheng1
56d3f3cc74
fix #5527 Optimize ParamUtil code and extract constants (#5528) 2021-04-29 19:10:42 +08:00
shalk(xiao kun)
ef15888658
[ISSUE #5153] Add unit tests for package com.alibaba.nacos.client.naming.remote in nacos 2.0 (#5518) 2021-04-29 18:58:34 +08:00
KomachiSion
ba676e01b8 Shade guava class after guava upgrade 2021-04-27 20:52:45 +08:00
KomachiSion
6609b14d53 Fix CI 2021-04-27 18:56:48 +08:00
KomachiSion
2847373fd0 Solve conflict 2021-04-27 16:19:56 +08:00
KomachiSion
92da848375 Merge remote-tracking branch 'upstream/develop' into merge-1.X-to-2.0
# Conflicts:
#	client/src/main/java/com/alibaba/nacos/client/config/NacosConfigService.java
#	client/src/main/java/com/alibaba/nacos/client/config/impl/CacheData.java
#	client/src/main/java/com/alibaba/nacos/client/config/impl/ClientWorker.java
#	client/src/main/java/com/alibaba/nacos/client/naming/core/PushReceiver.java
#	console/src/main/resources/static/css/main.css
#	console/src/main/resources/static/js/main.js
#	naming/src/main/java/com/alibaba/nacos/naming/core/SubscribeManager.java
#	naming/src/test/java/com/alibaba/nacos/naming/core/SubscribeManagerTest.java
#	test/src/test/java/com/alibaba/nacos/test/BaseTest.java
2021-04-27 15:57:24 +08:00