KAFKA-18272: Deprecated protocol api usage should be logged at info level (3.9) #18333
+28
−6
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.
This makes it possible to enable request logs for deprecated protocol api versions without enabling it for the rest. Combined with the ability to enable/disable dynamically, it makes it a bit easier to collect the information about deprecated clients that is not available via metrics.
I manually verified that:
INFO
level, only deprecated protocol api versions are logged and they are logged atINFO
level.DEBUG
level, all requests are logged but the log level isINFO
for deprecated protocol api versions andDEBUG
for the rest.WARN
level (the default), no requests are logged.The cherry-pick from trunk had one conflict:
RequestConvertToJson
was rewritten from Scala to Java in trunk. In addition, I added an upgrade note for 3.9.1.Committer Checklist (excluded from commit message)