KAFKA-3702: Change log level of SSL close_notify failure#5397
Merged
rajinisivaram merged 1 commit intoapache:trunkfrom Jul 20, 2018
Merged
KAFKA-3702: Change log level of SSL close_notify failure#5397rajinisivaram merged 1 commit intoapache:trunkfrom
rajinisivaram merged 1 commit intoapache:trunkfrom
Conversation
Contributor
Author
|
@ijuma Can you review, please? This is not a fix for KAFKA-3702 which was raised to shutdown SSL connections gracefully. Since we need to work with different SSL clients and proxies, I think we should reduce the level of this log anyway since no one understands what it means and it is not really useful anyway. Thank you. |
hachikuji
approved these changes
Jul 19, 2018
Contributor
hachikuji
left a comment
There was a problem hiding this comment.
LGTM. I agree the log message does not provide much value in practice.
Member
|
Seems fine to me. But we are keeping the JIRA open, I guess? |
Contributor
Author
|
@ijuma Yes, just updating the log for now and leaving the JIRA open. |
Contributor
Author
|
@hachikuji @ijuma Thanks for the review, merging to trunk and 2.0 |
rajinisivaram
added a commit
that referenced
this pull request
Jul 20, 2018
SslTransportLayer currently closes the SSL engine and logs a warning if close_notify message canot be sent because the remote end closed its connection. This tends to fill up broker logs, especially when using clients which close connections immediately. Since this log entry is not very useful anyway, it would be better to log at debug level. Reviewers: Jason Gustafson <jason@confluent.io>, Ismael Juma <ismael@juma.me.uk>
3 tasks
colinhicks
pushed a commit
to confluentinc/kafka
that referenced
this pull request
May 24, 2019
SslTransportLayer currently closes the SSL engine and logs a warning if close_notify message canot be sent because the remote end closed its connection. This tends to fill up broker logs, especially when using clients which close connections immediately. Since this log entry is not very useful anyway, it would be better to log at debug level. Reviewers: Jason Gustafson <jason@confluent.io>, Ismael Juma <ismael@juma.me.uk>
3 tasks
colinhicks
pushed a commit
to confluentinc/kafka
that referenced
this pull request
May 24, 2019
* KAFKA-3702: Change log level of SSL close_notify failure (apache#5397) SslTransportLayer currently closes the SSL engine and logs a warning if close_notify message canot be sent because the remote end closed its connection. This tends to fill up broker logs, especially when using clients which close connections immediately. Since this log entry is not very useful anyway, it would be better to log at debug level. Reviewers: Jason Gustafson <jason@confluent.io>, Ismael Juma <ismael@juma.me.uk> * KAFKA-7454: Use lazy allocation for SslTransportLayer buffers and null them on close (apache#5713) Lazy allocation helps when there are a large number of connections that have been accepted, but where no data has been received from the clients. Each buffer is often around 16k (max TLS record size). Nulling the buffers should not make a difference in the current implementation since we release the reference to the channel and transport layer after we close them, but it's a good practice to release medium/large buffers after `close` is called. Reviewers: Jun Rao <junrao@gmail.com>, Ismael Juma <ismael@juma.me.uk> * KAFKA-7453: Expire registered channels not selected within idle timeout (apache#5712) Reviewers: Jun Rao <junrao@gmail.com>. Ismael Juma <ismael@juma.me.uk> * KAFKA-7304: Limit connection accept rate to prioritize other channels * Log close of idle connections at `info` * Checkstyle * Fix processor retry logic to advance to the next processor on retry * Add test for connection rate limit * Wrap socketChannel close in try block
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.
SslTransportLayer currently closes the SSL engine and logs a warning if
close_notifymessage canot be sent because the remote end closed its connection. This tends to fill up broker logs, especially when using clients which close connections immediately. Since this log entry is not very useful anyway, it would be better to log at debug level.Committer Checklist (excluded from commit message)