Skip to content

KSQL-14984: demote client-side request failures from ERROR to DEBUG/WARN - #11044

Open
Parag Badani (pbadani) wants to merge 2 commits into
8.0.xfrom
pbadani/8.0.x/reduce-error-log-noise
Open

KSQL-14984: demote client-side request failures from ERROR to DEBUG/WARN#11044
Parag Badani (pbadani) wants to merge 2 commits into
8.0.xfrom
pbadani/8.0.x/reduce-error-log-noise

Conversation

@pbadani

@pbadani Parag Badani (pbadani) commented May 19, 2026

Copy link
Copy Markdown
Member

Summary

reduce the redundant logs

Linked: KSQL-14984.

Test plan

  • mvn -pl ksqldb-rest-app test -Dtest='LoggingHandlerTest,SniHandlerTest,ApiServerUtilsTest' — 30/30 passing
  • mvn -pl ksqldb-rest-app checkstyle:check — clean
  • Full CI run on this PR

🤖 Generated with Claude Code

Parag Badani (pbadani) and others added 2 commits May 19, 2026 13:45
In ksql prod, ~5.9M of 9.4M daily ERROR log entries (~63%) are client-side
request failures with no server-side action available: 4xx responses logged
by FailureHandler, SNI mismatches from misconfigured clients, SSL/Netty
handshake failures from port scanners and Kafka-protocol traffic hitting the
HTTPS endpoint, and access-log lines for boot-time 503s and probe traffic.

Demote these to DEBUG/WARN so the error log reflects genuine server-side
problems that operators can act on. Genuine 5xx exceptions in FailureHandler
remain at ERROR; HAProxyProtocolException and unrecognised throwables in the
Vert.x exception handler remain at ERROR.

Also dedupe ServerVerticle.unhandledExceptionHandler by delegating to
ApiServerUtils.unhandledExceptionHandler (the two were identical copies).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
NotSslRecordException and SslHandshakeTimeoutException both extend
javax.net.ssl.SSLException, so the SSLException check already covers them.
Drops the redundant instanceof branches to satisfy the checkstyle limit.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@pbadani
Parag Badani (pbadani) requested a review from a team as a code owner May 19, 2026 08:53
@confluent-cla-assistant

Copy link
Copy Markdown

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant