Commit Graph

4179 Commits

Author SHA1 Message Date
chenhao26
0b428e0fa2
Feat/calculate ip count when use batchregister (#8858)
Feat/calculate ip count when use batchregister
2022-08-03 19:45:28 +08:00
chenhao26
de5ec356cc
import config file auth fail (#8844)
* import config file auth fail

* run ci

* run ci2
2022-08-01 16:48:55 +08:00
ZhangShenao
5a9b1e961f
Add Generic Type for Simple Cache Map (#8812) 2022-08-01 15:33:54 +08:00
GuiShao
56104495da
[ISSUE#8481]Unified TRACE capacity building (#8805)
* [ISSUE#8481]Unified TRACE capacity building

* [ISSUE#8481]Unified TRACE capacity building
1. Event type add to traceEvent.
2. The event about instance add instancePort.
3. Add health check type to healthChangeEvent.
4. Other fixup.
2022-07-29 16:22:40 +08:00
MajorHe1
4ca830638b
Merge pull request #8822 from KomachiSion/develop-config-aspect
Add comment for config aspect.
2022-07-29 10:05:48 +08:00
KomachiSion
882be9e726 Add comment for config aspect. 2022-07-28 17:58:33 +08:00
MajorHe1
ff336d97b9
Merge pull request #8801 from KomachiSion/develop-client-detail-exception
Add exception detail stacks when connect to server failed.
2022-07-26 15:54:53 +08:00
胡俊
e950be1322
[ISSUE#8653]Fix health check bug (#8639)
* fix health bug.

* fix health bug.

* fix health bug.

* test update

* format code

* 注释

* check service exist

* check service exist

* test fail

* user group()

* add unit test.

* add unit test.

* add unit test.

* add unit test.

* add unit test.

* add unit test.
2022-07-26 15:52:34 +08:00
KomachiSion
b0af8087b8 Add exception detail stacks when connect to server failed. 2022-07-26 15:12:01 +08:00
Pixy Yuan
34bbd3844a
[#8775] Fix HealthCheckTaskV2 blocks jraft's init when server is starting. (#8785) 2022-07-26 15:02:45 +08:00
liqipeng
e97b695db2
[ISSUE #8345] Check cluster name in server-side when registerInstance (#8724)
* Check cluster name in server-side when register ephemeral instance

* Check cluster name in server-side when register persistent instance

* add unit test for register instance

* add unit test for NamingHttpClientProxy

* remove catching NacosException to throw NacosRuntimeException
2022-07-25 09:57:43 +08:00
onewe
29d472e94a
[ISSUE #8784] fix some bugs for Console UI (#8787)
* [ISSUE #8784] fix some bugs for Console UI

- add server.error.include-message property
- add no permission tip when push config
- use addAllowedOriginPattern instead of addAllowedOrigin
- remove RAM logic in the lib.js
- fix button type error and mode value error in NewConfig.js
- fix the password reset dialog can't show

Close #8784

* [ISSUE #8784] fix translate error

* [ISSUE #8784] user ON_PARAM instead of ALWAYS

* [ISSUE #8784] fix user reset password in the Header.js
2022-07-25 09:56:20 +08:00
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