[ISSUE #10718] Summarize removed client settings logs - #10719
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.31% 48.22% -0.09%
+ Complexity 13511 13481 -30
=============================================
Files 1380 1380
Lines 101091 101098 +7
Branches 13101 13103 +2
=============================================
- Hits 48844 48759 -85
- Misses 46285 46355 +70
- Partials 5962 5984 +22 ☔ 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
Summary
Fixes #10718
Tests