Fix ES:QL Driver logging for 4xx errors and cancellations#140905
Merged
shmuelhanoch merged 3 commits intomainfrom Feb 8, 2026
Merged
Fix ES:QL Driver logging for 4xx errors and cancellations#140905shmuelhanoch merged 3 commits intomainfrom
shmuelhanoch merged 3 commits intomainfrom
Conversation
Collaborator
|
Hi @shmuelhanoch, I've created a changelog YAML for you. |
GalLalouche
reviewed
Jan 19, 2026
x-pack/plugin/esql/compute/src/main/java/org/elasticsearch/compute/operator/Driver.java
Show resolved
Hide resolved
56f296b to
f34737f
Compare
480db7e to
700ca2d
Compare
Collaborator
|
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Collaborator
|
Hi @shmuelhanoch, I've created a changelog YAML for you. |
2f8a35f to
c616cb5
Compare
GalLalouche
approved these changes
Feb 5, 2026
Reduce log noise by logging 4xx client errors (including TaskCancelledException) at DEBUG level instead of WARN/ERROR. This addresses the issue where over 80% of ES:QL errors in serverless are due to user cancellations, which are expected user actions rather than system failures. - TaskCancelledException already handled separately at DEBUG level - RuntimeException with 4xx status codes now logged at DEBUG level - 5xx server errors continue to be logged at WARN level Relates to #138008
c616cb5 to
aa379e3
Compare
This was referenced Feb 12, 2026
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.
Fix ES:QL Driver logging for 4xx errors and cancellations
Reduces log noise by logging 4xx client errors (including cancellations) at DEBUG instead of WARN/ERROR.
Problem:
Over 80% of ES:QL errors in serverless are from user cancellations, which are expected user actions, not system failures. These were logged at WARN/ERROR, creating noise.
Solution:
TaskCancelledException is already handled separately at DEBUG level
RuntimeException with 4xx status codes (400-499) are now logged at DEBUG level
5xx server errors continue to be logged at WARN level
Impact:
Reduces log noise from expected client actions while preserving visibility into actual system failures.
Closes #138008