Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 2.4.0 to master #12385

Merged
merged 97 commits into from
Jul 19, 2024
Merged

Merge 2.4.0 to master #12385

merged 97 commits into from
Jul 19, 2024

Conversation

KomachiSion
Copy link
Collaborator

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

XXXXX

Brief changelog

XX

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
  • Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
  • Run mvn -B clean package apache-rat:check findbugs:findbugs -Dmaven.test.skip=true to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test to make sure integration-test pass.

ldyedu and others added 30 commits August 7, 2023 09:29
* For #10374, Support listener to get changed instances

* Update AbstractNamingChangeListener,NamingChaneEventTest

* Update InstancesDiffTest

* Rename NamingChangeEventTest
* For #10374, Define selectors and related components

* Add unit test

* Update NamingSelectorWrapperTest

* Update selectors and related components

* Update NamingSelectorWrapper
* Select clusters using the selector

* Add Event Cache

* Update NacosNamingService,InstancesChangeNotifier
* Add default selectors

* add tests

* Update SubscribeSelector_ITCase

* add unsubscribe test

* Removes some methods for NamingSelectorFactor

* Update SelectorManager
* 修复openApi publishConfigCas失效

* 修复openApi publishConfigCas失效

* fix unit test

* add publish cas
- CVE-2024-22257 Upgrade Spring Security to 5.7.12.
- Use spring-framework-bom as dependencyManagement.

Closes #11904
* Update request reflect-config.json

add deletion graalvm reflect config

* Update response reflect-config.json

add deletion graalvm reflect config
… not resolved correctly when deleting an empty service instance (#11955)

* Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections.

* bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题
…ogger adapter. (#11964)

* Add NacosLoggingAdapter

* Refactor Logback Logging adapter to Nacos logging adapter.

* Refactor log4j2 Logging adapter to Nacos logging adapter.

* Remove useless abstract class

* Add and Adapt log4j2 impl to SPI.

* Remove useless method in NacosLogbackConfigurator

* Fix IT ClassNotFound problem
* Update LocalSimpleCountRateCounter.java

fixbug

* Update LocalSimpleCountRateCounter.java

bugfix

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题

* fix:默认的nacos反脆弱插件的问题,调整为tryAdd

* fix:默认的nacos反脆弱插件的问题,调整为tryAdd

* 调整测试方式,保障流水线成功

* 重构PageHandlerAdapterFactory,这里将handlerAdapters,handlerAdapterMap设置为unmodifiable

* 重构PageHandlerAdapterFactory,这里将handlerAdapters,handlerAdapterMap设置为unmodifiable

* fix: 10639, 调整encrypted_data_key 为varchar(1024)
…() in ConfigChangeRequest (#11971)

* Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections.

* bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题

* Update ConfigChangeAspect.java

修改configChangeRequest.setArg()的key为serviceType

* Update ConfigChangeAspect.java

* Update ConfigChangeRequest.java
…tanceIdGenerator初始化流程 (#11995)

* [ISSUE #11994] fix: Initialize EnvUtil's variable environment in HttpRequestInstanceBuilderTest

* refactor: Optimize the initialization process of SnowFlakeInstanceIdGenerator

* refactor: optimize the initialization process of SnowFlakeInstanceIdGenerator.
…11996)

* Move some basic logging classes into common module.

* Move logback 12 version adapter to single module.

* For checkstyle.

* Enhance logger adapter pom.

* Refactor the adapter initialization logic to avoid spi loader error.

* Move log4j2 logger adapter to single module.

* Fix the ut cover and create useless dir.
* Remove log4j dependencies from nacos-client.

* Fix logback listener don't add to context.

* Fix can't adapter low version logback below 1.1.10.

* For checkstyle.
* add junit5 in compatible mode

* add junit5 jupiter and mockito jupiter
* Remove default password

* admin role check fix

* remove tmp admin
…NACOS_MEMORY (#12014)

* use DISABLE_NACOS_DEFAULT_MEMORY_SETTING

* use CUSTOM_NACOS_MEMORY

* Code optimization

* remove unuse

* startup.cmd support CUSTOM_NACOS_MEMORY environment variable

---------

Co-authored-by: caoyanan <caoyanan@growingio.com>
* #12046 console-ui should not offer encryptedDataKey field to API

* #12046 when containing encryptedDataKey,it should not execute encryption in v2 API (same as the v1 API)
…ntLimit is less than 0. (#12073)

* Fixed an issue where the maximum number of anti-fragile plug-ins implemented by default in Nacos is one more than the actual number of connections.

* bug fix : 修改删除空服务实例时,服务名和分组名没有正确解析的问题

* Update ConfigChangeAspect.java

修改configChangeRequest.setArg()的key为serviceType

* Update ConfigChangeAspect.java

* Update ConfigChangeRequest.java

* Update NacosConnectionControlManager.java

Add logic to not impose any limit when totalCountLimit equals -1.

* Update NacosConnectionControlManager.java

* Update NacosConnectionControlManagerTest.java

Add unit test cases when LimitCount is less than 0

* Update NacosConnectionControlManager.java

Modify comment
HMYDK and others added 29 commits June 17, 2024 14:26
* upgrade module naocs-test from junit4 to junit5

* fix test/core-test

* fix some test

* fix ci
* Fix exception code error.(#10925)

* [Unit test]Add RpcServerSslContextRefresherHolder unit tests.

* [Unit test]Fix bug.
* clean junit4

* clean junit4

* clean some test dep; fix scope

* fix test compile
* fix disk failover datasource not keep status

* fix style

* fix DiskFailoverDataSource
* prometheus http sd: fix invalid label names

* Update PrometheusUtils.java
…12220)

* [ISSUE #12219] 修复nacos-client中config的ServerListManager解析endpoint失败问题

* [ISSUE #12219] 修复nacos-client中config的ServerListManager解析endpoint失败问题
…se, the time-related field values need to be set using the time obtained from the database's built-in time function. (#12244)
* Add RequestContext and RequestContextHolder.

* build RequestContext when request start.

* Refactor ClientAttributesFilter with RequestContext.

* InstanceController get client ip from request context.

* SubscribeServiceRequestHandler get app from requestcontext.

* config http api support use request context get user, app and source ip.

* Rename nacos request context filter.

* Unified naming request get source ip by request context.

* For checkstyle.
… core module to comply with checkstyle. (#12335)

* Fix exception code error.(#10925)

* [IT]Adjust integration tests for ability, base, and client modules in the core module to comply with checkstyle.

* [IT]Optimize the class naming.
…ough the IP dimension in the ListeningQuery (#12315)
…uration instead of logback-nacos.xml's packagingData configuration (#12360)
…ply with checkstyle. (#12349)

* Fix exception code error.(#10925)

* [IT]Adjust integration tests for ability, base, and client modules in the core module to comply with checkstyle.

* [IT]Optimize the class naming.

* [IT]Adjust integration tests for common modules in the core module to comply with checkstyle.
… openAPI namespaceId. (#12336)

fix(#12333): fixed auth Plugin resource parser can't parser v2 config openAPI namespaceId.
* Upgrade grpc to 1.64.1

* add grpc-util compile scope.

* add grpc-testing
* Close derby ops api default.

* Fix unit test.
* add new property to support agent situation.

* for checkstyle.

* Upgrade cheery pick ut to junit5.

* add ignored lefthook.yml.

* add ignored lefthook.yml.
@KomachiSion KomachiSion merged commit 974edfe into master Jul 19, 2024
14 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.