Closed WangXiangUSTC closed 6 years ago
Hi @WangXiangUSTC , do you close the pd client right after done use of it?
the code like this:
pdCli, err := getPdClient(cfg)
if err != nil {
return nil, errors.Trace(err)
}
clusterID = pdCli.GetClusterID(ctx)
pdCli.Close()
@disksing
hi @WangXiangUSTC , I have sent a PR to fix it. If it is convenient, you can try it with the branch of PR in advance.
@disksing Thanks!
In tidb-binlog, we will connect to pd to get some information, it always get
context canceled
error when close pd client, the logs are below:This error dosen't matter, but may make some confused to users, can we refine the code to avoid this error?
the pd version I use: version: eed819b6999186a4bf2d25255f8d61b371a450d6