Commit Graph

4831 Commits

Author SHA1 Message Date
杨翊 SionYang
2151756dd4
Develop fill ut common (#11436)
* Add Unit test for common module remote root package.

* Add Unit test for common module remote exception package.

* Add Unit test for common module remote client package.

* For checkstyle.

* For UT stability.
2023-11-28 09:24:39 +08:00
blake.qiu
93cc842c90
feat(#11393): support register or deregister persistent instance by grpc in 2.3.0 server and client. (#11430) 2023-11-27 19:47:20 +08:00
limliu
b50ccb0b15
https://github.com/alibaba/nacos/issues/11250 (#11251)
* https://github.com/alibaba/nacos/issues/11250
参考Log4J2NacosLogging处理,当location不存在时则不加载

* https://github.com/alibaba/nacos/issues/11250
nacosLogbackConfigurators.stream()
                    .filter(c -> c.getVersion() == userVersion).collect(Collectors.toList())优化存在越界情况

* 调整异常输出

* https://github.com/alibaba/nacos/issues/11250
移除无用注释代码

* https://github.com/alibaba/nacos/issues/11250
调整代码风格样式

* https://github.com/alibaba/nacos/issues/11250
默认加载方式为log4j,导致该测试用例异常;已修订

* https://github.com/alibaba/nacos/issues/11250
按模板重新格式化代码
2023-11-24 17:01:12 +08:00
黄科铭
736948f495
fix auth plugin Page (#11300)
* Optimize paginated queries based on data sources

* add startup conditions

* user movkEnv

* update Exception Class name

* Optimize paginated queries based on data sources

* update Exception Class name

* Revert "add startup conditions"

This reverts commit 4e2c85d7

* Optimize paginated queries based on data sources

* add startup conditions

* user movkEnv

* update Exception Class name

* Revert "add startup conditions"

This reverts commit 4e2c85d7

* Revert "Revert "add startup conditions""

This reverts commit 4225891414851e501b0c055cc1c295561440307b.

* DialectFactory add database  supported

* fix auth plugin Page, add dataSource plugin Dialect

* description

* remove dataSource plugin Dialect

* detail adjustment

* DefaultPageHandlerAdapter
2023-11-24 16:28:55 +08:00
zrlw
7803e33574
get retained instances only based on ip and port checking (#11342)
* only compare ip and port between deregister instance and redo instance

* add unit test for getRetainInstance

* fix unit test for checkstyle check

* format codes only to trigger Codecov checking
2023-11-24 16:25:24 +08:00
JorringHsiao
44b0891d16
[ISSUE #11414]Optimize ServiceInfo.validate() to reduce memory usage (#11415) 2023-11-24 15:48:54 +08:00
阿魁
c42981c9e3
[ISSUE #11217]Optimize DumpAllProcessor code. (#11220) 2023-11-24 14:21:06 +08:00
blake.qiu
da2b897961
feat: code clean. (#11337) 2023-11-24 14:14:32 +08:00
杨翊 SionYang
7ce177486f
Develop fill ut common (#11419)
* UT for common module http package.

* Add Unit test for common module http root package.

* Add Unit test for common module http param package.

* Add Unit test for common module http client package.

* For checkstyle.
2023-11-23 14:56:54 +08:00
liu-xg
15c48f4246
Update codeStyle.md (#11418)
修复错误单词
2023-11-23 14:29:04 +08:00
0808bing
1257217c10
fix compare api response 500 (issue#11384) (#11408) 2023-11-21 09:22:10 +08:00
0808bing
e9ffb370b9
fix pagination (#11382) (#11406) 2023-11-20 16:22:53 +08:00
杨翊 SionYang
6a4d740781
For #10353, Handling DataIntegrityViolationException and DuplicateKeyException together. (#11405) 2023-11-20 15:04:34 +08:00
杨翊 SionYang
03987330a4
Upgrade dependency to reduce conflicts and add leak UT coverage files. (#11396)
* Remove custom jackson version and jackson-core-asl.

* Upgrade protobuf relative version to reduce conflict with grpc.

* 补充提交遗漏单测覆盖率的模块。
2023-11-17 17:56:50 +08:00
Sujithra Rajan
167630edec
[ISSUE #11369] Fixed ObjectMapper ordering problem in 4 tests (#11373)
* Fix flaky test

* Added changes and one more test fix

Author:    rajan11 <rajan11@illinois.edu>
2023-11-17 17:15:23 +08:00
zhanghong
65917ec986
[ISSUE #11343]Fix NPE (#11385)
* fix NPE

* fix NPE
2023-11-17 17:11:26 +08:00
chaicho
ed9a55bac6
Declare httpcore as direct dependency to fix its version. (#11293) 2023-11-17 15:45:13 +08:00
brother-戎
5994e37394
fixup ConfigEncryptionFilter bug & do reverse Filter when handle Config response in ConfigFilterChainManager (#11346)
* fixup ConfigEncryptionFilter bug & do reverse Filter when handle response in ConfigFilterChainManager

* tiny fix

* add java doc

* add java doc

* add java doc

* tiny fix

* tiny fix

* add java doc

* add java doc

* add java doc

* set encryptionDataKey="" by default instand of null

* fixup NPE in encryptionFilter

* fixup some test cases of ConfigEncryptionFilter

* reverse changes
2023-11-17 14:06:45 +08:00
zrlw
753a30b37d
strip groupNamePrefix of instance serviceName at register or deregister (#11354) 2023-11-15 16:21:51 +08:00
zhanghong
a935fa1092
[ISSUE #11343] Simplified validation logic (#11345)
* 优化节点显示,添加mode

* Simplified validation logic

* add license

* fix unit test

* add config,console,naming unit test and rename annotation

* add config,console,naming unit test and rename annotation

* fix EnvUtils test

* fix EnvUtils test

* fix ParamExtractorFilterTest

* fix ParamExtractorFilterTest

* fix ParamExtractorFilterTest

* fix ParamExtractorFilterTest

* fix ParamExtractorFilterTest
2023-11-15 15:25:00 +08:00
杨翊 SionYang
e77a0bbe0d
Develop refactor topn (#11352)
* Move topn to core module.

* StringTopNCounter replace TopnCounterMetricsContainer.java

* Use ServiceTopNCounter replace StringTopNCounterTest for naming.

* Use FixedSizePriorityQueue replace PriorityQueue to save memory.

* For PMD.
2023-11-09 17:19:27 +08:00
杨翊 SionYang
0d46af03b7
Develop fill ut common (#11335)
* Add UT for common module utils

* Add UT for common module utils package.

* For checkstyle.

* For checkstyle.
2023-11-06 16:05:27 +08:00
kanghailin
cc656e19d3
Optimize MapperManager (#11195) 2023-11-06 15:40:31 +08:00
Catcher Wong
4a5a6fd4de
Simplify the validate method for serviceinfo (#11312)
Signed-off-by: catcherwong <catcher_hwq@outlook.com>
2023-11-02 10:46:19 +08:00
黄科铭
e7e3824aac
add startup conditions (#11305)
* add startup conditions

* user movkEnv
2023-11-01 11:20:50 +08:00
shuoer86
8ce06316f8
Fix some typos (#11269) 2023-10-30 16:27:53 +08:00
wuyfee
f42b296718
fix: rename tar name (#11281) 2023-10-24 18:04:37 +08:00
zhanghong
d3ac33468c
优化节点显示,添加mode (#11275) 2023-10-23 15:11:29 +08:00
阿魁
086be0386b
[ISSUE #11253]To fix the triggering of the listener upon failover con… (#11254)
* [ISSUE #11253]To fix the triggering of the listener upon failover content changes.

* [ISSUE #11255]Update style.

* [ISSUE #11255]Fix UdpConnectorTest#testContainAck.
2023-10-23 13:48:54 +08:00
杨翊 SionYang
0e6b5faf4f
Add description for new plugin. (#11268) 2023-10-19 17:11:15 +08:00
杨翊 SionYang
3a2fee5655
Upgrade to 2.3.0-BETA. (#11262) 2023-10-19 09:21:38 +08:00
阿魁
1df023451d
[ISSUE #11255]Update PathEncoderManagerTest#testEncodeWithNonExistOs. (#11256)
* [ISSUE #11255]Remove PathEncoderManagerTest#testEncodeWithNonExistOs.

* [ISSUE #11255]Update PathEncoderManagerTest#testEncodeWithNonExistOs.
2023-10-17 16:53:11 +08:00
杨翊 SionYang
c4aac2b82f
Fill ut for common module (#11247)
* Do some refactor and add UT for common package.

* Do some refactor and add UT for common package.

* Do some refactor and add UT for common package.

* Fix UT.
2023-10-13 14:46:04 +08:00
kanghailin
49f34868ff
Optimize ThreadPoolManager (#11206) 2023-10-13 10:31:25 +08:00
chenyiqin
a5c0a60a1a
Fix npe when setup ack response in GrpcClient (#11210)
* fix npe when setup ack response in GrpcClient

* server sync response, avoid blocking setup ack response sent to server.

* remove setup response from client to server, change way of server pushing abilities by sendNoACK

* add UT for negotiation timeout

* fix checkstyle

* fix PMD error

* private check logical into ReceiveAbilityContext.

* fix indent
2023-10-13 09:48:06 +08:00
E1se2t
5d8973cad5
[ISSUE#11192] batchRegisterInstance add recalculateRevision (#11232)
* [ISSUE#11192] batchRegisterInstance add recalculateRevision

* fix: update unit test

* fix: code check style

* fix:update unit test

* Update EphemeralClientOperationServiceImplTest.java
2023-10-11 17:20:00 +08:00
blake.qiu
7eb3af2659
feat(#11236): Remove invalid assertion in com.alibaba.nacos.config.server.service.ConfigCacheService#dumpChange. (#11237) 2023-10-11 10:11:46 +08:00
blake.qiu
0e43a9322d
feat(11115): http support cas publish. (#11120) 2023-10-11 10:05:31 +08:00
阿魁
d85e3f7f31
[ISSUE #11231]Optimize the handleSpringBinder method in PropertiesUtil. (#11240) 2023-10-11 09:23:31 +08:00
Keisuke Kubota
7911eb03db
ISSUE #11212 (#11213)
* Use pgrep in shutdown.sh

* Fix dot
2023-10-09 11:12:15 +08:00
阿魁
1c7b9b96e1
[ISSUE #10797]Enhance the registration logic. (#11228) 2023-10-09 09:59:27 +08:00
杨翊 SionYang
f3fb428452
Fill UT for api module. (#11205)
* Fill UT for api module.

* For checkstyle.
2023-09-28 16:09:46 +08:00
杨翊 SionYang
1192e4c36e
Merge pull request #11204 from alibaba/asoc2022_issue#8458
[Asoc2022][issue#8458] Support ability negotiations between server and clients
2023-09-28 14:09:59 +08:00
KomachiSion
3cfe5e82f2 Fix server push is intercepted by SetupRequestHandler problem. 2023-09-28 11:55:00 +08:00
KomachiSion
40b46dba81 Revert invalid application.properties change. 2023-09-28 11:42:57 +08:00
KomachiSion
4522cbcccb For checkstyle. 2023-09-28 10:49:10 +08:00
杨翊 SionYang
76861a989e
Build console ui. (#11202) 2023-09-28 09:15:14 +08:00
杨翊 SionYang
7f44132b30
Upgrade grpc version to 1.57.2 (#11199) 2023-09-27 17:23:56 +08:00
杨翊 SionYang
6dd88db501
Fix frequent do query service when hit protect empty. (#11197) 2023-09-27 15:52:38 +08:00
杨翊 SionYang
c684809337
Merge pull request #11190 from Daydreamer-ia/asoc2022_issue#8458
Asoc2022 issue#8458
2023-09-27 15:01:11 +08:00