fix: harden GrpcClientSettingsManager offline cleanup diagnostics - #10719
fix: harden GrpcClientSettingsManager offline cleanup diagnostics#10719Aias00 wants to merge 3 commits into
Conversation
Review by github-manager-botSummaryThis PR replaces raw Changes Reviewed
Assessment✅ Correctness — Logic is correct. Null check is in place. The ✅ Performance — No concerns. Only called in the cleanup path. ✅ Tests — Good test coverage. The test explicitly verifies that sensitive topic names ("sensitive-publish-topic", "sensitive-subscribe-topic") do not appear in the summary output, and that null input returns "null". ✅ Compatibility — No public API changes. Package-private static method. SuggestionSame as #10721: the Overall: Looks good. 👍 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #10719 +/- ##
=============================================
- Coverage 48.62% 48.51% -0.12%
+ Complexity 13692 13658 -34
=============================================
Files 1381 1381
Lines 101464 101488 +24
Branches 13187 13192 +5
=============================================
- Hits 49337 49235 -102
- Misses 46142 46239 +97
- Partials 5985 6014 +29 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Review by github-manager-bot
Summary
Replaces raw Settings protobuf logging with compact summaries in GrpcClientSettingsManager, and fixes a latent bug where consumerGroupInfo (the whole object) was logged instead of consumerGroup (the string name).
Findings
- [Info]
proxy/src/main/java/.../GrpcClientSettingsManager.java— Good bug fix: the originalconsumerGroupInfoin the log was logging the full object reference, not the group name. Changing toconsumerGroupis correct. - [Info] The
summarizeSettings()method is duplicated across 3 PRs (#10721, #10719, #10717). See suggestion in #10721 for a shared utility class. - [Info] Test coverage for
summarizeSettings()andgetAttributeLength()is thorough, covering null, empty, and populated cases.
Suggestions
- Same as #10721: consider extracting
summarizeSettings()to a shared utility.
Verdict
LGTM. Good sanitization + bonus bug fix.
Automated review by github-manager-bot
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Review by github-manager-bot
Summary
Replaces raw Settings protobuf in the "remove unused grpc client settings" log with a summarizeClientSettings() summary. Also adds clientId to the log for better traceability.
Findings
- [Info] GrpcClientSettingsManager.java:285 — Adding
clientIdto the log is a good improvement for correlating settings removal with specific clients. - [Info] GrpcClientSettingsManager.java:296-303 —
summarizeClientSettings()implementation is identical tosummarizeSettings()in PR #10721 (GrpcClientChannel). Consider consolidating. - [Info] Test coverage validates null, empty, and populated Settings cases.
Cross-repo Note
Same summarization logic as PRs #10721 and #10717. A shared utility would prevent drift.
Automated review by github-manager-bot
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Summary
Defensive fix with proper validation and test coverage. LGTM.
Automated review by github-manager-bot
731228a to
7dce94e
Compare
Summary
Validation
mvn -q -pl proxy -am -Dtest=GrpcClientSettingsManagerTest -DfailIfNoTests=false testCloses #10718
Closes #10710
Closes #10681