ClickHouse-Net icon indicating copy to clipboard operation
ClickHouse-Net copied to clipboard

Open() freeze in rare cases

Open endrx opened this issue 1 year ago • 0 comments

Description

Generally works super, but a couple of times I got a sudden process total freeze (for more than 10 hours). Last time I investigated the situation via Remote Debugger.

The process execution was frozen deep inside the .Open() here:

Open() >...> ProtocolFormatter.Handshake() (line 97): ReadUInt > ... > ProtocolFormatter.ReadBytes() (line 478): int num = await _ioStream.ReadAsync(bytes, read, i - read, cToken);

image

UPD: It seems this happens when ClickHouse server is suddenly goes down. But the client stays frozen even after ClickHouse server restoration.

endrx avatar Nov 29 '24 07:11 endrx