杨翊 SionYang
ced2f1d9ed
Add unit test for api module ( #10241 )
...
* Add more situation UT for NetUtils
* Add UT for api module selector package
* Add UT for api module exception package
* Add UT for api module cmdb package
2023-03-31 16:41:11 +08:00
Karson
fe5002f485
Add some unit test for V2Controller ( #10143 )
...
* add unit test for HealthController
* for rerun ci
* add unit test for CatalogControllerV2
2023-03-21 15:28:32 +08:00
WangLiang/王良
a397c10a54
Optimize the nacos-client/pom.xml
for exclude google/**/*.proto
( #9982 )
...
* Optimize the pom.xml of the nacos-client
* optimize pom
* exclude `google/**/*.proto`
* tab
* Remove dependency `io.grpc:protoc-gen-grpc-java:${version}:pom`
* revert indent
* revert native-image
2023-03-01 09:42:15 +08:00
hth
4e78a769e5
replaced report API to Grpc ( #9976 )
2023-02-20 09:55:34 +08:00
杨翊 SionYang
9ebf5aeade
Judge the message whether null for metadata processor. ( #9951 )
2023-02-15 10:39:39 +08:00
杨翊 SionYang
1ef245d058
Add Unit test for api naming remote request. ( #9916 )
...
* Add Unit test for api naming remote request.
* For checkstyle.
2023-02-08 13:30:38 +08:00
陈浩 Nineteen
8c90f892b4
fix batchRegister authentication ( #9899 )
2023-02-05 16:06:53 +08:00
云野
71389b0f56
add feature -- list instance record which enabled was false ( #9855 )
2023-02-02 10:50:16 +08:00
杨翊 SionYang
fee349b667
Fix #9861 , auth check before distro filter. ( #9871 )
2023-01-28 11:11:29 +08:00
gongzhongqiang
708387c277
fix:replace nacos website url to https. ( #9797 )
2023-01-10 09:47:52 +08:00
zz630
20145fd256
enhancement: CloseableHttpAsyncClient does not clean up expired and i… ( #9727 )
...
* enhancement: CloseableHttpAsyncClient does not clean up expired and invalid connections (#9708 )
* enhancement: CloseableHttpAsyncClient does not clean up expired and invalid connections (#9708 )
* style:satisfy style/NacosCheckStyle.xml
* add unit test(#9708 )
* Revert "add unit test(#9708 )"
This reverts commit 939905cb56f30af4d0ec35543d6d630f0777eb98.
* add unit test
2023-01-05 10:04:27 +08:00
nov.lzf
69047073c6
修改长连接request response 类注册逻辑,由类扫描改成手动注册 ( #9738 )
...
* 修改request response 类加载逻辑,有类扫描改成手动注册
* 优化注册方式,直接SPI注册payload
2022-12-21 19:56:21 +08:00
杨翊 SionYang
dfcdd391af
Add auth for some v2 api. ( #9671 )
2022-12-08 10:31:32 +08:00
drgnchan
5be6385563
polish: reduce magic value of 'NACOS_SERVER_HEADER' ( #9663 )
2022-12-06 16:16:21 +08:00
nov.lzf
acc8ab46cf
Refactor connection limit module to plugin ( #9653 )
...
* 限流插件提交
* 限流插件提交
* 限流插件提交
* 限流插件重构提交
* connection control test case submit
* tps control test case submit
* tps control test case submit
* tps control test case submit
* exact model has higher priority
* exact model has higher priority
* tpsreporter
* tpsreporter
* tpsreporter
* check style
* log optimize
* interceptor
* checkstyle
* tps check
* configController query http
* rename component
* 优化参数命名
* 优化参数命名
* 优化参数命名
* 优化参数命名
* optimize connection manager
* optimize connection manager
* optimize connection manager
* optimize connection manager
* interceptor to mse
* Monitor Model
* Monitor Model
* revert opensource tps ability
* revert opensource tps ability
* revert opensource tps ability
* revert opensource tps ability
* revert opensource tps ability
* revert opensource tps ability
* opensource submit
* opensource submit
* check style
* check style
* pmd ,rat
* update db params
* test case fix
* 简化开源反脆弱实现
* test case
* test case fix
* 修复单测
* 修复单测
* 修复单测
2022-12-06 16:15:51 +08:00
hth
0e346f0024
Code optimization, remove useless code. ( #9620 )
...
* Code optimization, remove useless code.
* code optimization
2022-11-25 14:50:44 +08:00
zz630
7ce4dcc22c
Update HttpClientManager.java ( #9477 )
...
fix #9474
2022-11-22 09:50:22 +08:00
胡俊
0f5afa8faa
解决服务元数据清理逻辑导致的反注册失败问题 https://github.com/alibaba/nacos/issues/9586 ( #9587 )
2022-11-17 10:40:54 +08:00
李晓双 Li Xiao Shuang
e8d71359d3
Modify the method modifier of NacosApplicationListener to default ( #9460 )
2022-11-04 13:54:06 +08:00
Weizhan Yun
506bc26f4d
[ISSUE #9393 ] 设置线程为守护线程,保证在main线程推出时应用程序能过正常关闭。 ( #9396 )
...
* 设置线程为守护线程,保证在main线程退出时应用程序能过正常关闭。
* graceful shutdown naming executetask engine.
2022-11-03 13:44:00 +08:00
KomachiSion
f56dedc7fe
Fix sync connection client not removed.
2022-10-27 12:11:06 +08:00
KomachiSion
8410fbccf3
Merge remote-tracking branch 'upstream/2.2.0' into asoc2022_issue#8461
...
# Conflicts:
# config/src/main/java/com/alibaba/nacos/config/server/controller/ConfigController.java
2022-10-25 14:52:32 +08:00
Liu Yixiao
03345fd923
[ISSUE #8461 ] Enhance Nacos monitor observability system ( #9038 )
...
* Enhance MetricsMonitor with several new metrics
* Add config read and write rt
* Add ServiceEvent publisher queue size
* Add fuzzy search count
* Add naming subscriber and publisher count with v1 or v2 version tag
* Add config subscriber count with v1 or v2 version tag
* Add pending push task count and empty push count metrics
* collect pending push task count by scheduled task
* add unit test for increment metrics in NacosMonitorPushResultHook
* Add topn counter container and topn config change
* Create private MeterRegistry for config change
* Add scheduled clear for config change count, add removeAll for TopnCounterMetricsContainer
* Add topn service change
* Reconstruct metrics monitor with NacosMeterRegistryCenter.
* divide globalRegistry to different modules' CompositeMeterRegistry
* Add dynamic meters refresh service for config and naming module
* fix unit test
* Add try catch when init NacosMeterRegistryCenter
2022-10-25 11:31:29 +08:00
KomachiSion
696d489423
Merge remote-tracking branch 'upstream/2.2.0' into 2.2.0-summer#8312
...
# Conflicts:
# plugin/pom.xml
2022-10-24 15:37:47 +08:00
杨翊 SionYang
7a23c56822
[ISSUE#7930] 2.2.0 remove some deprecated codes ( #9368 )
...
* Remove double write switch and upgrade from 1.X switch.
* Remove IFilterConfig.java
* Remove some deprecated constants and methods
* Remove some deprecated classes in nacos-core
* Remove some deprecated config
* Remove some deprecated codes in naming module
* Remove some deprecated codes in sys module
* Fix unit test
* Try to make UdpConnectorTest pass more easier.
2022-10-21 17:44:26 +08:00
KomachiSion
f4438ac202
Follow 2.2.0 branch.
2022-10-21 15:33:04 +08:00
KomachiSion
aa6816b69f
Merge remote-tracking branch 'upstream/2.2.0' into summer2022_issue#8308
...
# Conflicts:
# naming/src/main/java/com/alibaba/nacos/naming/controllers/v2/InstanceControllerV2.java
# naming/src/main/java/com/alibaba/nacos/naming/controllers/v2/ServiceControllerV2.java
# naming/src/main/java/com/alibaba/nacos/naming/misc/UtilsAndCommons.java
2022-10-21 14:16:18 +08:00
陈浩 Nineteen
83855da734
buf fix ip count metrics ( #9355 )
...
* buf fix ip count metrics
* run ci
* run ci
2022-10-21 09:26:20 +08:00
胡俊
0bd589cb6d
[ISSUE#8857] collect client info ( #9202 )
...
* collect client info #8857
* collect client info #8857
* collect client info #8857
* collect client info #8857
* collect client info #8857
* collect client info #8857
2022-10-19 09:40:34 +08:00
杨翊 SionYang
b1ac88be78
[ISSUE#8481] Add Trace Event SPI for Naming. ( #9336 )
...
* Add Trace plugin spi.
* Add NacosCombinedTraceSubscriber
* Subscribe NamingTraceEvent when start up cluster.
* Fix test error.
2022-10-18 09:30:37 +08:00
KomachiSion
6eae075a48
Solve conflict.
2022-10-17 19:23:13 +08:00
KomachiSion
22169055ed
Merge remote-tracking branch 'upstream/develop' into 2.2.0
...
# Conflicts:
# naming/src/main/java/com/alibaba/nacos/naming/core/Cluster.java
2022-10-17 19:17:31 +08:00
胡俊
0834641825
[ISSUE#9323]1.x http接口服务名校验问题 ( #9324 )
...
* 1.x http接口服务名校验问题
* 1.x http接口服务名校验问题 for #9323
2022-10-14 14:34:50 +08:00
Karson
a78ee54007
[ISSUE #6876 ] Concurrent instance deregiste NullPointerException ( #9287 )
...
* fix issue #6876 .
* reset properties.
2022-10-10 15:20:17 +08:00
Pixy Yuan
9c771cf2c3
[ISSUE #9277 ] publisherIndexes clean the service key when no instances anymore. ( #9278 )
2022-10-10 09:51:15 +08:00
杨翊 SionYang
f272c36df7
[ISSUE#9210] ConnectionBasedClient support add revision ( #9239 )
...
* ConnectionBasedClient support add revision
* getRevision when get verifydata.
2022-09-29 15:55:43 +08:00
DongYafei
94d812a269
fix api result ( #9237 )
2022-09-29 10:39:23 +08:00
Pixy Yuan
af22d35d6f
[ISSUE #9230 ] Fix missing dependency between event publisher and subs… ( #9231 )
...
* [ISSUE #9230 ] Fix missing dependency between event publisher and subscriber triggered on snapshot loading.
* [ISSUE #9230 ] Fix codestyle.
* [ISSUE #9230 ] Fix missing dependency between event publisher and subscriber triggered on persistent clients' snapshot loading.
* [ISSUE #9230 ] Fix import.
2022-09-29 09:42:03 +08:00
Pixy Yuan
04fe7eab2f
Support client hash revision for DISTRO ( #9214 )
...
* [ISSUE #9210 ] Using hash as ephemeral clients' revision for DISTRO verification.
* [ISSUE #9210 ] Improve performance of ephemeral client hash calc.
* [ISSUE #9210 ] Remove calculation for ephemeral client's subscribers.
* [ISSUE #9210 ] Persist and sync revision for clients.
* [ISSUE #9210 ] Improve hash of ephemeral client.
* [ISSUE #9210 ] Improve performance of hash calc for clients.
* [ISSUE #9210 ] Make distro verification compatible with zero revision from old servers.
* [ISSUE #9210 ] Log clientId when VERIFY-FAILED.
* [ISSUE #9210 ] Fix long class cast exception to REVISION.
* [ISSUE #9210 ] Just renew clients when verify v2 clients on v1 mode.
* [ISSUE #9210 ] Add UTs for ephemeral client verification.
* [ISSUE #9210 ] Fix codestyle.
* [ISSUE #9210 ] Fix IpPortBasedClientTest.
* [ISSUE #9210 ] Fix codestyle.
* [ISSUE #9210 ] Fix license.
* [ISSUE #9210 ] Fix ConcurrentHashSetTest cases to verify concurrent modification properly.
* [ISSUE #9210 ] Fix codestyle.
2022-09-28 13:56:33 +08:00
DongYafei
0032b8cfc1
Add ClientInfoControllerV2 ( #9197 )
...
* add ClientInfoControllerV2
* rename tenant to namespaceId
2022-09-23 14:11:59 +08:00
KomachiSion
a2b997f6a7
Fix print logs for NamingTraceEvent.
2022-09-22 13:58:18 +08:00
DongYafei
6501dd8ab6
update ServiceControllerV2, add OperatorControllerV2 ( #9156 )
2022-09-19 11:30:14 +08:00
hoErYu
0fdfd194f9
For #9106 Remove redundant judgment of WebUtils ( #9107 )
...
* For #9106 Remove redundant judgment of WebUtils
* For #9106 Remove redundant judgment of WebUtils
* For #9106 Remove redundant judgment of WebUtils
2022-09-15 11:34:36 +08:00
DongYafei
9439250e80
[ISSUE#8308] update InstanceControllerV2 for api 2.0 ( #9111 )
...
* update InstanceControllerV2 for api 2.0
* for InstanceControllerV2, add parameter groupName for api 2.0
2022-09-15 10:47:07 +08:00
lphx
0cf9c24086
remove redundant code ( #9089 )
...
* Modifying duplicate code,remove unnecessary if
* remove [instance.getIp() + ":" + instance.getPort()] and use the original Instance.toIpAddr() method,Because their implementation is the same
2022-09-07 16:46:42 +08:00
KomachiSion
6edddcf48e
Remove some v1 persistent datum processor.
2022-08-29 20:19:06 +08:00
KomachiSion
e515915895
Fix UT.
2022-08-29 20:19:06 +08:00
KomachiSion
48695dab16
Remove Instance.java.
2022-08-29 20:19:05 +08:00
KomachiSion
77b3391e10
Remove Instances.java.
2022-08-29 20:19:05 +08:00
KomachiSion
8941086f5d
Remove Service.java and Cluster.java.
2022-08-29 20:19:05 +08:00
KomachiSion
c727a38411
Remove old Service usage part1.
2022-08-29 20:19:05 +08:00
KomachiSion
e648586064
Remove ServiceManager usage part3 and remove ServiceManager.java
2022-08-29 20:19:05 +08:00
KomachiSion
2f5ebe0af9
Remove DistroServiceNameTagGenerator.java
2022-08-29 20:19:05 +08:00
KomachiSion
162f4224b3
Remove some unused classes in selector.
2022-08-29 20:19:04 +08:00
KomachiSion
99035c5ec1
Remove some unused classes in push.
2022-08-29 20:19:04 +08:00
KomachiSion
1fe89a31ec
Remove some unused classes in pojo.
2022-08-29 20:19:04 +08:00
KomachiSion
5c9c35ab22
Remove some unused classes in misc.
2022-08-29 20:19:04 +08:00
KomachiSion
976f8a6729
Remove some old properties.
2022-08-29 20:19:04 +08:00
KomachiSion
db11e0bf5a
Remove ClientBeatProcessor.java and ServiceStatusSynchronizer.java
2022-08-29 20:19:04 +08:00
KomachiSion
9b68e45c97
Remove ServiceManager usage part2.
2022-08-29 20:19:03 +08:00
KomachiSion
f28efe62e1
Remove double write task.
2022-08-29 20:19:03 +08:00
KomachiSion
28ddce8d56
Remove UpgradeJudgement.java
2022-08-29 20:19:03 +08:00
KomachiSion
7af6e869d7
Remove HealthCheckTask.java
2022-08-29 20:19:01 +08:00
KomachiSion
989922600c
Remove EmptyServiceAutoCleaner.java
2022-08-29 20:18:49 +08:00
KomachiSion
49e12c8b8e
Remove old raft classes
2022-08-29 20:18:49 +08:00
KomachiSion
6f58ebf0c2
Remove EphemeralConsistencyService.java
2022-08-29 20:18:49 +08:00
KomachiSion
9df2536a1e
Remove DoubleWriteEventListener.java and DistroConsistencyServiceImpl.java
2022-08-29 20:18:48 +08:00
KomachiSion
bf0783c0e7
Remove ServiceManager usage part1.
2022-08-29 20:18:48 +08:00
KomachiSion
2477080e1d
Remove Operators for V1.
2022-08-29 20:18:48 +08:00
阿魁
d123703958
Fix spelling mistakes. ( #9026 )
2022-08-29 09:58:53 +08:00
杨翊 SionYang
f1c95a8fb4
Fix grpc push data not filter by cluster. ( #9019 )
2022-08-24 09:56:37 +08:00
无处不在
21b624e302
[ISSUE #8931 ] Fix bug :BatchInstanceData cannot Serializable question ( #8940 )
...
* [fix] fix BatchInstanceData cannot Serializable question
* fix update serialVersionUID auto generate
2022-08-12 16:44:15 +08:00
chenhao26
3586ad64c9
[ISSUE#8910] bug fix calcu ipCount ( #8911 )
...
* bug fix calcu ipCount
* update logic
2022-08-10 10:32:33 +08:00
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
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
胡俊
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
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
ZhangShenao
4a3472b9b7
Fix Word Spelling subscribers
in Comments ( #8773 )
2022-07-21 10:27:15 +08:00
KomachiSion
a20cfe2575
Fix change instance metadata, the revision of service not change.
2022-07-19 11:58:57 +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
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
mengyingsunshi
db09ce8f1f
fix( #8243 ): adapt v2 health check plugin ( #8537 )
2022-07-07 15:07:26 +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
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
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
胡俊
654462e41d
fix subscribe bug:select enable instance only. ( #8629 )
2022-06-28 11:21:43 +08:00
KomachiSion
a06152fd5d
Add Unit test for CatalogServiceV2Impl
2022-06-28 09:53:59 +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
胡俊
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
david6969xin
20af725205
use StandardCharsets.UTF_8 instead of Charsets.UTF_8 ( #8581 )
...
* use StandardCharsets.UTF_8 instead of Charsets.UTF_8
* remove unused import
2022-06-17 11:00:40 +08:00
杨翊 SionYang
ed81d3cdd0
Enhance to remove double filter service info for push callback. ( #8574 )
...
* Enhance to remove double filter service info for push callback.
* Enhance to remove double filter service info for push callback.
2022-06-16 10:01:54 +08:00
GuiShao
a7d8066e41
[ISSUE#8481]Unified TRACE capacity building ( #8521 )
2022-06-14 15:39:46 +08:00
胡俊
bf1c06f82b
Solve the bug: the persistent instance becomes a temporary instance after the console operation goes offline ( #8517 )
2022-06-10 10:06:37 +08:00
Roger3581321
fb600be9e6
removing unnecessary 'toString()' call ( #8525 )
2022-06-07 15:28:34 +08:00
onewe
b6db08bdd4
[ISSUE #8528 ] update server.tomcat.basedir default value ( #8529 )
...
Close #8528
2022-06-07 15:22:16 +08:00
Cherish 蔡梦缘
9d9a26ace3
feat( #8472 ): [Dependency Governance] Remove useless netty. ( #8472 ) ( #8474 )
2022-06-06 11:24:33 +08:00