Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
c059d8d5
Unverified
Commit
c059d8d5
authored
11 months ago
by
Alexander Solovyov
Committed by
GitHub
11 months ago
Browse files
Options
Downloads
Patches
Plain Diff
do not print stacktrace when client closes connection too early (#40834)
parent
321e2d0d
Branches
change-filter-type
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/metabase/query_processor/streaming.clj
+6
-2
6 additions, 2 deletions
src/metabase/query_processor/streaming.clj
with
6 additions
and
2 deletions
src/metabase/query_processor/streaming.clj
+
6
−
2
View file @
c059d8d5
...
...
@@ -16,7 +16,8 @@
(
:import
(
clojure.core.async.impl.channels
ManyToManyChannel
)
(
java.io
OutputStream
)
(
metabase.async.streaming_response
StreamingResponse
)))
(
metabase.async.streaming_response
StreamingResponse
)
(
org.eclipse.jetty.io
EofException
)))
(
set!
*warn-on-reflection*
true
)
...
...
@@ -139,7 +140,10 @@
(
fn
result
[
result
]
(
when
(
=
(
:status
result
)
:completed
)
(
log/debug
"Finished writing results; closing results writer."
)
(
qp.si/finish!
results-writer
result
)
(
try
(
qp.si/finish!
results-writer
result
)
(
catch
EofException
e
(
log/error
e
"Client closed connection prematurely"
)))
(
u/ignore-exceptions
(
.flush
os
)
(
.close
os
)))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment