apache / incubator-horaedb-meta

Meta service of HoraeDB cluster.
https://horaedb.apache.org
Apache License 2.0
27 stars 15 forks source link

Input address format mistake when get grpc client connection #88

Closed ZuLiangWang closed 2 years ago

ZuLiangWang commented 2 years ago

Describe this problem CeresMeta node need to create grpc client in the following two scenarios:

But CeresMeta current only support the second scenario, when forward request to leader node, the following error occurs: ERRO [cluster/src/cluster_impl.rs:80] Send heartbeat to meta failed, err:Failed to send heartbeat, cluster:defaultCluster, err:status: Unavailable, message: "connection error: desc = \"transport: Error while dialing dial tcp: address http://127.0.0.1:22379: too many colons in address\"", details: [], metadata: MetadataMap { headers: {"content-type": "application/grpc"} }

Steps to reproduce

  1. Start CeresMeta and CeresDB in cluster mode.
  2. Close CeresMeta leader node.

Expected behavior CeresMeta node can create grpc client in both cases.

Additional Information