Bug 240786 - databases/clickhouse compression on jdbc connection fails
Summary: databases/clickhouse compression on jdbc connection fails
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2019-09-24 10:15 UTC by Mårten Lindblad
Modified: 2020-08-18 20:16 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (proler)


Note You need to log in before you can comment on or make changes to this bug.
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
Comment 1 olevole 2020-08-11 19:55:20 UTC
Can you try latest from the ports? 

Also you can use the official pre-built binary for FreeBSD:

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 from the ports works as expected.
Comment 3 olevole 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!