Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRC failed #325

Closed
mmitkevich opened this issue Aug 29, 2023 · 4 comments
Closed

CRC failed #325

mmitkevich opened this issue Aug 29, 2023 · 4 comments
Labels
bug Something isn't working need-info Awaiting extra info from community/issue creator

Comments

@mmitkevich
Copy link

with latest clickhouse-client-cpp release and clickhouse-server 23.x I get CRC error when using LZ4 compression in client.

I digged into CRC and server's ipml
https://github.com/ClickHouse/ClickHouse/blob/17f37541935bce25e2b200f061baafa4dadb338e/contrib/cityhash102/src/city.cc#L344
image

looks just like client's impl

https://github.com/ClickHouse/clickhouse-cpp/blob/master/contrib/cityhash/cityhash/city.cc#L339
image

but it does not work anymore. Probably it's worth to use the server's code here?

here is my server problem desc
ClickHouse/ClickHouse#53932

@Enmk
Copy link
Collaborator

Enmk commented Aug 31, 2023

Hi @mmitkevich thank you for reporting!
Yes, we sure want to be compatible with ClickHouse's server implementation.

Could you please create a PR with the proposed changes?

@Enmk Enmk added bug Something isn't working priority-high Pretty important bug or issue labels Aug 31, 2023
@Enmk
Copy link
Collaborator

Enmk commented Sep 19, 2023

Hi @mmitkevich could you please provide more info on that? I tested against 23.8 and wasn't able to reproduce the issue.

Do you have any sample code that reproduces that?

@Enmk Enmk added need-info Awaiting extra info from community/issue creator and removed priority-high Pretty important bug or issue labels Sep 19, 2023
@Enmk
Copy link
Collaborator

Enmk commented Sep 26, 2023

Hi, @mmitkevich! Have you by any chance used cityhash 1.1 which comes as an OS package? IIRC some versions might be incompatible...

@mmitkevich
Copy link
Author

After ensuring my program is linked against bundled cityhash it looks like the problem has gone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-info Awaiting extra info from community/issue creator
Projects
None yet
Development

No branches or pull requests

2 participants