uptrace / go-clickhouse

Golang ClickHouse client
https://clickhouse.uptrace.dev
BSD 2-Clause "Simplified" License
258 stars 27 forks source link

ch: unsupported compression method: 0x00 #40

Closed yandooo closed 1 year ago

yandooo commented 2 years ago

With compression switched on client parser throws the following exception:

ch: unsupported compression method: 0x51
...
ch: unsupported compression method: 0x00

the hex number at the end of the error looks random

Disabling compression leads to reading timeout issues.

clickhouse/clickhouse-server:22.6

This error doesn't happen consistently. Some queries do get through and are successfully processed.

vmihailenco commented 2 years ago

How can I reproduce this? https://stackoverflow.com/help/minimal-reproducible-example

yandooo commented 2 years ago

It is inconsistent. It is hard to catch. I tend to believe it's an internal network setup (the bridge between CH on k8s and jump box). What can be enabled as debug/trace statement for the library to troubleshoot?

vmihailenco commented 1 year ago

This should be improved in v0.3.0