Commit Graph

4167 Commits

Author SHA1 Message Date
ZhangShenao
4a3472b9b7
Fix Word Spelling subscribers in Comments (#8773) 2022-07-21 10:27:15 +08:00
MajorHe1
94950a29dd
Merge pull request #8767 from KomachiSion/develop-issue#8742
[ISSUE#8742] Fix change instance metadata, the revision of service not change.
2022-07-19 14:43:41 +08:00
KomachiSion
e9dbe8361d Fix checkstyle 2022-07-19 13:12:13 +08:00
Cherish 蔡梦缘
837b1c13d9
[ISSUE #7039] Temporary fix encryptedContent bug. (#8463)
* fix(#7039): Temporary fix encryptedContent bug.

* fix(#7039): optimization the 2.x Temporary fix.

* cr(#7039): getConfigAndSignListener get a decryptContent.

* test(#7039): fix getConfigAndSignListener test.
2022-07-19 13:11:19 +08:00
KomachiSion
a20cfe2575 Fix change instance metadata, the revision of service not change. 2022-07-19 11:58:57 +08:00
李云飞
014161aba1
[fix] Solve the problem that request log section publishConfig and invalid because the section parameter is inconsistent with the Controller parameter (#8721) 2022-07-19 10:53:20 +08:00
Oliver
f13016af23
[Polish] Add serialVersionUID (#8733)
* Add serialVersionUID

* checkstyle

* Auto generate id
2022-07-19 10:30:26 +08:00
ZhangShenao
e1ef9839e0
Remove Duplicated Check in Method com.alibaba.nacos.client.naming.cache.ServiceInfoHolder#isChangedServiceInfo (#8746)
* Use Fail-Fast in Method `com.alibaba.nacos.naming.core.ServiceManager#createServiceIfAbsent`

* Modify Comments

* Remove Duplicated Check in com.alibaba.nacos.client.naming.cache.ServiceInfoHolder#isChangedServiceInfo
2022-07-19 10:28:38 +08:00
gogogo
a7b9d8b72d
[ISSUE #8755] add default fuzzy search feature (#8757)
* 默认模糊查询

* 删除多余字符

* 英语翻译

* 英语翻译

* 英语翻译
2022-07-19 10:21:45 +08:00
onewe
26f86e8da3
[ISSUE #8701] ignore getServerList url (#8727)
* [ISSUE #8701] ignore getServerList url

Close #8701

* add some unit test for auth

- use http basic authentication
- disable csrf

* fix ci error
2022-07-14 09:30:11 +08:00
ZhangShenao
8cc92c598d
Use Fail-Fast in Method `com.alibaba.nacos.naming.core.ServiceManager… (#8731)
* Use Fail-Fast in Method `com.alibaba.nacos.naming.core.ServiceManager#createServiceIfAbsent`

* Modify Comments
2022-07-14 09:29:40 +08:00
Oliver
667a34d7aa
Remove repeated conditional test (#8732) 2022-07-14 09:28:26 +08:00
onewe
704210e0c4
[ISSUES #8622] Add NacosEnvironment and add some unit tests (#8680)
* [ISSUES #8622] Add NacosEnvironment and add some unit tests

- remove magic number
- refactor all of them
- add some unit tests for env
- modify search rule and reformat
- fix search order
- fix p3c error

* fix ci error

* add some type converters

- enhance search method
- default_setting.properties is renamed nacos_default_setting.properties

* the property key of system environment replace dot with underscore

* add some default values and enhance SystemEnvPropertySource

* add the copyright information
2022-07-11 10:05:33 +08:00
liaochuntao
5d26dfb019
Merge pull request #8713 from KomachiSion/develop-issue#4982
[ISSUE#4981] Add UT for nacos-auth-plugin module
2022-07-11 10:01:28 +08:00
ZhangShenao
113b365a65
Fix word spelling (#8714)
* Fix Word Spelling 'Naocs' in Comment

* Fix Word Spelling in Comment and Log of `ServiceInfo`

* Fix Word Spelling `listener`
2022-07-11 09:55:09 +08:00
chenhao26
b52fc22d37
batch register add some unit tests (#8702)
* add some junit for batch register

* code syle
2022-07-08 11:53:58 +08:00
MajorHe1
e7498d7a4c
[ISSUE #8707] add distroKey log output when distro sync failed. (#8708)
* [ISSUE #8707] add distroKey log output when distro sync failed.

* append toString() method to log getDistroKey()

Co-authored-by: Oliver <wqdyxnbd@163.com>

Co-authored-by: Oliver <wqdyxnbd@163.com>
2022-07-08 11:53:16 +08:00
MajorHe1
68b521679c
[ISSUE #8709] check serverList size before reconnect to server (#8710)
* [ISSUE #8709] check serverList size before reconnect to server

* use CollectionUtils.isEmpty to judge whether server list  is empty

Co-authored-by: Oliver <wqdyxnbd@163.com>

Co-authored-by: Oliver <wqdyxnbd@163.com>
2022-07-08 11:52:11 +08:00
KomachiSion
e6d2c0d70b Add UT for nacos-auth-plugin module 2022-07-08 11:45:49 +08:00
杨翊 SionYang
7bb1e90549
Remove leave nacos server nodes API temporarily. (#8700) 2022-07-07 19:54:30 +08:00
mengyingsunshi
db09ce8f1f
fix(#8243): adapt v2 health check plugin (#8537) 2022-07-07 15:07:26 +08:00
onewe
3124f0ae9f
[Enhance] add some unit tests and some integration tests for address module (#8643)
* [Enhance] add some unit tests and some integration tests for address module

- add spring-boot-starter-test dependency
- use constructor injection instead of field injection

* add teardown method

* default replace with nacos
2022-07-07 11:36:47 +08:00
无处不在
fcc9b0aef9
[fix]Fix Word Spelling 'Naocs' in RaftExecutor NameThreadFactory (#8673) 2022-07-07 10:58:12 +08:00
chenhao26
073f9e09ed
[ISSUE#5863]add nacos client batchRegitserInstance request (#8675)
* add nacos client batchRegitserInstance request

* adjustment code

* fix word and do not remove indent
2022-07-07 10:56:22 +08:00
杨翊 SionYang
5aabba13c9
[ISSUE#8099] Fast failure for distro sync task and verify task if cluster disconnect. (#8693)
* Fast failure for distro sync task and verify task if cluster disconnect.

* Fix UnnecessaryStubbingException
2022-07-07 10:41:23 +08:00
ZhangShenao
da34fbd411
Fix word spelling (#8678)
* Fix Word Spelling 'Naocs' in Comment

* Fix Word Spelling in Comment and Log of `ServiceInfo`
2022-07-05 17:43:36 +08:00
ZhangShenao
16059537a8
Fix Class Comment of ConfigPublishResponse and ConfigRemoveResponse (#8672) 2022-07-04 15:28:07 +08:00
chenhao26
6fe84f4c54
[ISSUE#5863] nacos server process batch register logic (#8496)
* Implement batch register logic and distro protocol

* check style

* add batch test junit

* Restore DB configuration

* Restore DB configuration

* check style

* remove metadata instance

* encapsulate equals method and hashcode method

* check code style

* check style and update hashcode

* update BatchInstancePublishInfo hashcode

* replace CollectionUtils.getCardinalityMap to Override hadhcode (BatchInstancePublishInfo)

* check style

* process instance null

* check code style

* 暂存

* add batch instance process distro data

* check code style

* check code sytle

* add license

* add licensegst

* delete unuse code

* cicd

* run it

* remove batch null check

* bug fix and code format

* remove nouse code
2022-07-01 14:19:42 +08:00
binbin.zhang
97c5ac42e6
Merge pull request #8641 from KomachiSion/develop-issue#4982
[ISSUE#4982] Add Unit test for CatalogServiceV2Impl
2022-07-01 11:11:42 +08:00
liqipeng
ff7bebac53
[ISSUE #8345] Check cluster name in client when registerInstance (#8618)
* Check cluster name in client when registerInstance

* Use `Pattern.compile` to check number to avoid performance lost.
2022-07-01 11:07:55 +08:00
xiaochangbai
ae1a1bec93
optimize: port offset constant (#8652)
* optimize: port offset constant

* optimize: code formatting

* remove extra spaces
2022-07-01 10:00:42 +08:00
ZhangShenao
10eacb7808
Fix Word Spelling 'Naocs' in Comment (#8646) 2022-07-01 00:24:09 +08:00
rui.zhang
7aa74b9643
feat: add version data compare in the history list (#7428)
* feat: add version data compare in the history list

* feat: add version data compare in the history list
2022-06-28 14:01:48 +08:00
onewe
56ee220a68
[ISSUES #8635] fix a NPE when call the shutdown method (#8636)
* [ISSUES #8635] fix a NPE when call the shutdown method

Close #8635

* [ISSUES #8635] remove init judgment
2022-06-28 13:46:34 +08:00
The-Gamer-01
ccce9da5a6
Test unit tests (#8638) 2022-06-28 13:45:46 +08:00
wangshengji
6ed9d77247
remove @Component annotation and constructor privatization (#8628) 2022-06-28 11:22:18 +08:00
胡俊
654462e41d
fix subscribe bug:select enable instance only. (#8629) 2022-06-28 11:21:43 +08:00
draco1023
1a4759e7ba
Change the length of the id column of the his_config_info table to 20 (#8631) 2022-06-28 11:20:15 +08:00
KomachiSion
a06152fd5d Add Unit test for CatalogServiceV2Impl 2022-06-28 09:53:59 +08:00
Oliver
cc4cf1b428
[ISSUE #8532]Remove component annotation (#8627)
* Remove component annotation

* checkstyle
2022-06-26 11:05:45 +08:00
Oliver
f53d50c94e
Bump mysql-connector-java from 8.0.21 to 8.0.28 (#8623) 2022-06-24 16:25:50 +08:00
liqipeng
f3d134d2c2
[ISSUE #8594] makes distro data load timeout can be configured. (#8595)
* makes distro data load timeout can be configured.

* specify nacos.core.protocol.distro.data.load.timeoutMs default 30s
2022-06-24 15:06:47 +08:00
liqipeng
2a4c2816b9
explicitly specify spring-boot-maven-plugin version same as spring-boot (#8596) 2022-06-24 15:05:56 +08:00
onewe
29b2fa4302
[ISSUE #8602] fix display error after delete current namespace (#8609)
- fix some warnings, such as use rowProps instead of getRowProps etc
- MainLayout keeps namespace param

Close #8602
2022-06-24 15:01:08 +08:00
liqipeng
bbbba1f453
Optimize GrpcUtils to reduce memory and cpu cost (#8593) 2022-06-23 11:12:09 +08:00
onewe
cbda95d014
[ISSUE #8515] Optimize some code in InetUtils (#8522)
* [ISSUE #8515] auto refresh ip address

Close #8515

* [ISSUE #8515] add the unit test

Close #8515

* [ISSUE #8515] clean system variable after unit test done

Close #8515

* [ISSUE #8515] add tearDown method for the unit test

- reformat by nacos-style

* [ISSUE #8515] fix ci error

* [ISSUE #8515] fix ci error

* [ISSUE #8515] fix ci error
2022-06-20 10:23:59 +08:00
chenhao26
7a3757c751
Extract Constant in LimitType (#8587) 2022-06-20 10:21:05 +08:00
liqipeng
b53827bcb9
fix typo (#8591) 2022-06-20 10:16:49 +08:00
Karson
e5cfd23186
Use SPI optimize StartingApplicationListener (#8547)
* Use SPI to load NacosApplicationListener

* add License des

* add License des

* add License des
2022-06-17 11:10:11 +08:00
胡俊
5e7d20404c
[ISSUE#8561]Authentication performance optimization (#8564)
* for #8561

* for #8561

* fix test error

* fix test error
2022-06-17 11:07:35 +08:00