[ISSUE #10710] Sanitize lite offline Settings failure logs - #10712
Open
Aias00 wants to merge 1 commit into
Open
Conversation
RockteMQ-AI
reviewed
Jul 31, 2026
RockteMQ-AI
left a comment
Contributor
There was a problem hiding this comment.
Review by github-manager-bot
Summary
Replace full protobuf Settings logging in lite offline cleanup failures with a compact diagnostic summary to prevent sensitive subscription filter details from leaking into logs.
Findings
- [Info] GrpcClientSettingsManager.java:257-282 —
summarizeLiteSettings()correctly extracts only safe diagnostic fields (clientType, group, first topic, subscription count) without exposing subscription filter expressions. - [Info] GrpcClientSettingsManager.java:260 — Null check for settings is good defensive coding.
- [Info] GrpcClientSettingsManagerTest.java — Regression test verifies that filter details are not leaked in the summary output. Good coverage.
- [Info] — Fixes #10710, clean and focused change.
Suggestions
- Minor:
summarizeLiteSettingsonly shows the first topic (subscriptions(0)). If multiple topics are involved in a failure, only the first is visible. This is acceptable for error-path logging, but consider loggingsubscriptionCountprominently so operators know there may be more topics involved. - Consider making the method package-private instead of
protected staticif no subclass override is intended — this limits the API surface.
Overall
Clean fix for a log sanitization issue. Good test coverage. LGTM.
Automated review by github-manager-bot
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #10712 +/- ##
=============================================
- Coverage 48.31% 48.24% -0.08%
+ Complexity 13511 13482 -29
=============================================
Files 1380 1380
Lines 101091 101104 +13
Branches 13101 13103 +2
=============================================
- Hits 48844 48773 -71
- Misses 46285 46344 +59
- Partials 5962 5987 +25 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Summary
Fixes #10710
Tests