milvus/internal/rootcoord
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
..
dml_channels.go Fix DataNode BackGroudGC problem (#6551) 2021-08-03 09:59:24 +08:00
field_id.go rename masterservice to rootcoord (#5875) 2021-06-18 21:30:08 +08:00
meta_snapshot_test.go Set CollectionInfo.CreateTime to the timestamp when save the metadata into etcd, (#6763) 2021-07-23 14:36:12 +08:00
meta_snapshot.go Set CollectionInfo.CreateTime to the timestamp when save the metadata into etcd, (#6763) 2021-07-23 14:36:12 +08:00
meta_table_test.go Set CollectionInfo.CreateTime to the timestamp when save the metadata into etcd, (#6763) 2021-07-23 14:36:12 +08:00
meta_table.go Set CollectionInfo.CreateTime to the timestamp when save the metadata into etcd, (#6763) 2021-07-23 14:36:12 +08:00
OWNERS [skip ci]Update approvers (#7063) 2021-08-12 19:36:09 +08:00
param_table_test.go rename masterservice to rootcoord (#5875) 2021-06-18 21:30:08 +08:00
param_table.go remove msgstream of segment info (#6280) 2021-07-03 14:36:18 +08:00
proxy_client_manager.go check proxy if exist before connect to it (#6165) 2021-06-28 15:08:12 +08:00
proxy_manager_test.go Update component names in config files (#5989) 2021-06-22 19:08:03 +08:00
proxy_manager.go check proxy if exist before connect to it (#6165) 2021-06-28 15:08:12 +08:00
root_coord_test.go Fix DataNode BackGroudGC problem (#6551) 2021-08-03 09:59:24 +08:00
root_coord.go Refactor NewEtcdKV API (#7075) 2021-08-13 11:04:09 +08:00
task.go sync call querycoord releaseXXXX (#6978) 2021-08-03 21:47:24 +08:00
timestamp_test.go Update component names in config files (#5989) 2021-06-22 19:08:03 +08:00
timeticksync.go Update component names in config files (#5989) 2021-06-22 19:08:03 +08:00
util_test.go get pchannel name from vchannel name (#5892) 2021-06-19 14:18:08 +08:00
util.go Create default partition when receive CreateCollectionMsg (#6305) 2021-07-06 09:16:03 +08:00