milvus/internal/querycoord
XuanYang-cn 6c5be83ea1
Refactor NewEtcdKV API ()
This PR mainly did the following 3 things:

- Refactor NewEtcdKV API
- Add unittests for `kv/etcd/`, raise the coverage
up to 94%
- Correct some APIs from version to revision

The old NewEtcdKV() API took `clientv3.Client` as
one of the input, making everyone who using this API
had to create a new `clientv3.Client`. So there're a lot
of repeated codes everywhere.

Meanwhile, someplace didn't even check whether the
`clientv3.New()` returned error or not, and the old API
also didn't check whether the clientv3.Client was Nil.
This caused issue#6955.

Ectd's version and revision have nothing alike, they
represent different concepts, but our APIs kind of
mixed them all up. So I correct those APIs' names.

Resolves: 

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2021-08-13 11:04:09 +08:00
..
OWNERS [skip ci]Update approvers () 2021-08-12 19:36:09 +08:00
cluster.go Refactor showCollection/showPartition to get load state in memory () 2021-08-02 22:39:25 +08:00
condition.go Rename queryservice to querycoordinator () 2021-06-22 16:44:09 +08:00
impl.go Use proto marshal instead of MarshalTextString in querycoord () 2021-08-03 22:03:25 +08:00
meta.go Refactor showCollection/showPartition to get load state in memory () 2021-08-02 22:39:25 +08:00
meta_test.go Refactor NewEtcdKV API () 2021-08-13 11:04:09 +08:00
mock_test.go Read vector from disk () 2021-07-24 09:25:22 +08:00
param_table.go Fix load hang when restart querynode many time in short time () 2021-07-13 14:16:00 +08:00
query_coord.go Refactor NewEtcdKV API () 2021-08-13 11:04:09 +08:00
query_coord_test.go Change client timeout () 2021-08-06 14:09:26 +08:00
querynode.go Refactor showCollection/showPartition to get load state in memory () 2021-08-02 22:39:25 +08:00
querynode_test.go Change client timeout () 2021-08-06 14:09:26 +08:00
task.go Use proto marshal instead of MarshalTextString in querycoord () 2021-08-03 22:03:25 +08:00
task_scheduler.go Refactor NewEtcdKV API () 2021-08-13 11:04:09 +08:00
task_scheduler_test.go Refactor NewEtcdKV API () 2021-08-13 11:04:09 +08:00