Catch exception in ~WriteBufferFromS3#34963
Conversation
src/IO/WriteBufferFromS3.cpp
Outdated
There was a problem hiding this comment.
Maybe it is better to put finalize call into caller to avoid suppressing errors?
|
By the way here I see only jemalloc exception, not uncaught exception. |
At least I've finally figured out why the assertion in jemalloc was hitting (hopefully). So maybe it worth to do proper destroy in StorageS3Sink, instead of adding try/catch in dtor. |
src/QueryPipeline/QueryPipeline.cpp
Outdated
There was a problem hiding this comment.
Don't fully understand why this is needed ...
This reverts commit 7783bb24ea0c109c918faf24343082fc564f22d1.
7783bb2 to
6c29a57
Compare
|
Still not sure what's the proper way. We can call ClickHouse/src/QueryPipeline/QueryPipeline.cpp Lines 531 to 535 in c48c136 But it would throw anyway. Also, should any retries be performed after errors from |
|
Let's merge current solution with |
Yes, but it should call |
|
what happened if finalize throw excaption? Looks like there is a possibility of data loss. |
Indeed, and to me it is better to abort over data loss. |
Changelog category (leave one):
Function
finalizein~WriteBufferFromS3may throw an exceptionhttps://s3.amazonaws.com/clickhouse-test-reports/34951/96390a9263cb5af3d6e42a84988239c9ae87ce32/stress_test__debug__actions_.htmlhttps://s3.amazonaws.com/clickhouse-test-reports/34951/96390a9263cb5af3d6e42a84988239c9ae87ce32/stress_test__undefined__actions_/clickhouse-server.err.log