You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am sending data to a local clickhouse instance using clickhouse-cpp. The
program successfully send some data, but at some point fails. The point where it fails seems to be random.
My local client then throws a std::system_error:
fail to send 8192 bytes of data: Connection reset by peer
As far as I can tell, the Block I am sending is well-formed.
I can provide a full end-to-end setup/demo if you are interested. Our source
code is open-source here: https://github.com/tenzir/tenzir/tree/main/plugins/clickhouse
and I can also give you the pipeline & data used for testing. Unfortunately I
was not yet able to craft a smaller scale test case. For smaller handcrafted
tests, I do not have any issues.
Let me know if I can assist in tracking this down in any way, I'd be happy to
help!
The text was updated successfully, but these errors were encountered:
It is caused by trying to send invalid Arrays with missmatching offsets + data arrays. While the invalid arrays are clearly created by my code, there seem to be some basic sanity checks for this missing in clickhouse-cpp .
More importantly, the Clickhouse sever itself also does not properly guard against this/validate the request it gets, causing it to essentially "go out of bounds", leading to almost random errors.
Once I have my own thing fixed, I will create a simple repro and file proper issues for both of these points.
Uh oh!
There was an error while loading. Please reload this page.
I am sending data to a local clickhouse instance using
clickhouse-cpp
. Theprogram successfully send some data, but at some point fails. The point where it fails seems to be random.
My local client then throws a
std::system_error
:which originates from socket.cpp:462
My clickhouse sever is a local instance simply started via
./clickhouse server
.Looking into the server's console output/log I can see
server log "Unrecognized token: Syntax error"
I have also seen a variation of this where the error was
Empty Query:
, but i got the same failure in the client:alternative server log "Empty query. (SYNTAX_ERROR)"
I also got back the exception from the server a few times:
server log where I get back the exception in my client
As far as I can tell, the
Block
I am sending is well-formed.I can provide a full end-to-end setup/demo if you are interested. Our source
code is open-source here: https://github.com/tenzir/tenzir/tree/main/plugins/clickhouse
and I can also give you the pipeline & data used for testing. Unfortunately I
was not yet able to craft a smaller scale test case. For smaller handcrafted
tests, I do not have any issues.
Let me know if I can assist in tracking this down in any way, I'd be happy to
help!
The text was updated successfully, but these errors were encountered: