Comments (5)
Looks like this was caused during handshake. Which version of ClickHouse are you using? Can you use the default port 9000?
from clickhouse-net.
Either it is new clickhouse server version which I do not support (yet) or there's some protocol desync.
First of all try disabling compression - it is notorious for causing similar troubles due to slight differences in .net and c++ implementations.
from clickhouse-net.
Message code 53 is simply the type of message server sends in each packet header. It has no other special meaning. However for a long time clickhouse used these types <=8, so getting 53 here most probably means protocol desync.
from clickhouse-net.
I've reproduced this bug and it seems that it is not a bug at all :)
By default my driver uses TCP buffer of size 1024 - exactly the same that can be seen in CH's sources (at least in older versions) and despite that server sends bigger packets (in my case 1500+ bytes). This causes data loss upon receive and infinite waits upon consequent receives.
Bottom line:
To quickly fix without new binary version just set BufferSize=8192 (or whatever value you see reasonable) in your connection string.
Moreover, I'm changing default 1024 ripped from CH sources to 4096 as it definetaly has more sense.
from clickhouse-net.
Although this issue has closed ...
I experience the same error "Bad message type 53 received from server" on connection.open();
My ConnString is "Host=localhost;Port=8123;User=default;Password=;BufferSize=8192;"
(I had to SSH-tunnel the Port 8123 to the remoteServer)
We are using .NET driver ClickHouse.Ado v1.1.17 and ClickHouse server version 19.7.3.1 revision 54419
You commented on 21 Jun 2018 "Either it is new clickhouse server version which I do not support (yet) or there's some protocol desync"
Is there an issue with this combination of CH-Versions ?
Or are there any other solutions?
from clickhouse-net.
Related Issues (20)
- Any Way To optimize the ClickHouseCommand memory Use HOT 1
- how to set timezone in current connect HOT 3
- Driver hangs when inserting into ReplicatedMergeTree tables HOT 6
- Connection string for cluster db
- Inserting multiple rows doesn't work returns an timeout error HOT 4
- Please add a English and Russian headings in documentation / readme.md HOT 1
- Replace sql parameter error when execute sql HOT 1
- DataTable.Load(DbDataReader) has a wrong hadppend Can't use it in this way? HOT 3
- Пул подключений к БД HOT 1
- System.NotSupportedException:“Unknown column type Decimal(9, 4)” HOT 3
- find a bug ,when process nullable(DateTime) fields
- ClickHouseConnection how to use it properly HOT 1
- how to get correct value from datetime64 ? HOT 1
- DialogueLock of ClickhouseConnection is not released when read command fails and the reader is not created (the method dispose of the reader do the release when it's at least created) HOT 1
- Json Column types are not supported
- Special Character and connect string requirements HOT 1
- Type LowCardinality(Nullable(String)) not supported in v2.0.5 HOT 1
- Best way to measure write performance of batch insertion
- No rows returned in select statement, though data is present in the table HOT 1
- INSERT ... SETTINGS syntax does not work with bulk insertion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clickhouse-net.