Bug 240786

Summary: databases/clickhouse compression on jdbc connection fails
Product: Ports & Packages Reporter: Mårten Lindblad <marten>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: olevole, proler
Priority: --- Flags: bugzilla: maintainer-feedback? (proler)
Version: Latest   
Hardware: amd64   
OS: Any   

Description Mårten Lindblad 2019-09-24 10:15:02 UTC
Using the ru.yandex.clickhouse.ClickHouseDriver with Datagrip or Apache Flink fails when using compression=true (default setting).
The server logs an error message in clickhouse-server.log:
2019.09.24 10:05:23.657236 [ 25 ] {90569b7e-f291-43e5-991e-efc43d0ea244} <Error> virtual DB::WriteBufferFromHTTPServerResponse::~WriteBufferFromHTTPServerResponse(): Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = Assertion violation: !_pStream in file "/wrkdirs/usr/ports/devel/poco/work/poco-1.9.0-all/Net/src/HTTPServerResponseImpl.cpp", line 69 (version 19.5.3.1)
Comment 1 Oleg Ginzburg 2020-08-11 19:55:20 UTC
Can you try latest 20.5.4.40 from the ports? 

Also you can use the official pre-built binary for FreeBSD:
https://clickhouse.tech/docs/en/getting-started/install/#from-binaries-non-linux

perhaps this is an upstream bug, not a FreeBSD port. In this case the bug should be registered here: https://github.com/ClickHouse/ClickHouse/issues
Comment 2 Mårten Lindblad 2020-08-18 08:19:21 UTC
The version 20.5.4.40 from the ports works as expected.
Comment 3 Oleg Ginzburg 2020-08-18 20:10:14 UTC
(In reply to Mårten Lindblad from comment #2)
in this case, I propose to close this PR ;)
Comment 4 Mårten Lindblad 2020-08-18 20:16:04 UTC
Sorry, first bug report and didn’t know I should do that!