milvus/internal
XuanYang-cn 6c5be83ea1
Refactor NewEtcdKV API (#7075)
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: #6955

Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2021-08-13 11:04:09 +08:00
..
allocator Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
core [skip ci]Update approvers (#7063) 2021-08-12 19:36:09 +08:00
datacoord Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
datanode Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
distributed [skip ci]Update approvers (#7063) 2021-08-12 19:36:09 +08:00
indexcoord Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
indexnode Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
kv Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
log [skip ci]Update approvers (#7063) 2021-08-12 19:36:09 +08:00
logutil Rename module (#4988) 2021-04-22 14:45:57 +08:00
metrics Remove too frequent timetick log (#6682) 2021-07-21 11:26:11 +08:00
msgstream Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
proto Add Datanode watch etcd channel (#6965) 2021-08-13 10:50:09 +08:00
proxy [skip ci]Update approvers (#7063) 2021-08-12 19:36:09 +08:00
querycoord Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
querynode Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
rootcoord Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
storage [skip ci]Update approvers (#7063) 2021-08-12 19:36:09 +08:00
tso Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
types Refactor the logic of assign tasks in IndexCoord (#6328) 2021-07-14 14:15:55 +08:00
util Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00