mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
Fix a crash while the grpc port is conflict
This commit is contained in:
parent
fec58f7d1b
commit
b52e098a40
@ -1862,6 +1862,11 @@ void GRPCServer::start()
|
||||
|
||||
queue = builder.AddCompletionQueue();
|
||||
grpc_server = builder.BuildAndStart();
|
||||
if (nullptr == grpc_server)
|
||||
{
|
||||
throw DB::Exception("Can't start grpc server, there is a port conflict", DB::ErrorCodes::NETWORK_ERROR);
|
||||
}
|
||||
|
||||
runner->start();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user