Repository navigation
Preserve metadata page size when copying ClientConfig - #11615
Merged
ShannonDing merged 1 commit intoNov 25, 2026
Merged
Conversation
Copy maxPageSizeInGetMetadata when cloning or resetting ClientConfig so metadata requests keep the configured page size. Cover both operations with non-default values.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #11615 +/- ##
=============================================
+ Coverage 50.47% 50.53% +0.06%
- Complexity 14711 14730 +19
=============================================
Files 1391 1391
Lines 103541 103551 +10
Branches 13575 13575
=============================================
+ Hits 52261 52334 +73
+ Misses 45042 44968 -74
- Partials 6238 6249 +11 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ShannonDing
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which Issue(s) This PR Fixes
Found during source review. Related context: #11041 uses a custom metadata page size.
Brief Description
Copy
maxPageSizeInGetMetadataincloneClientConfigandresetClientConfig. The clone otherwise falls back to 2000, and reset keeps the destination's previous value. Copying the field preserves the configured page size for Topic and subscription group metadata requests.How Did You Test This Change?
mvn -B -pl client -am -Dtest=ClientConfigTest,MQClientAPIImplTest,MQClientManagerTest -Dsurefire.failIfNoSpecifiedTests=false -Djacoco.skip=true teston JDK 21. All 147 tests passed. Checkstyle and SpotBugs passed.