dragondriver
ee0f753f7a
Fix datarace between GetComponentStates and Register ( #11935 )
...
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
2021-11-19 13:57:12 +08:00
congqixia
5edbb82610
Add session revoke ( #11908 )
...
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2021-11-16 22:31:14 +08:00
Xiaofan
71e814f796
Remove common.yaml and component.yaml ( #11661 )
...
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
2021-11-12 21:25:08 +08:00
XuanYang-cn
ca857d922c
Fix session util using the same context ( #10981 )
...
Before this PR, session_util used the same context for new session,
keepalive check, and etcd keep alive. So if we cancel this context
by ourselves, half the chances will the etcd keep-alive-channel be
closed by etcd, which will make session utils `think` there's something
wrong in connecting to etcd, and half the chances will our keepalive check
exit as expected.
To solve this problem, this PR seperates 2 contexts: etcd keep alive
channel context and our liveness check context. So that when we cancel
this liveness check context, session util will exit as expected.
Resolves : #10881
Signed-off-by: yangxuan <xuan.yang@zilliz.com>
2021-11-01 18:25:58 +08:00
Xiaofan
6fddcb3925
Fix Session checker for proxy ( #10737 )
...
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
2021-10-27 21:58:33 +08:00
congqixia
6b8ff60de3
Close event channel when watch event found error ( #9819 )
...
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2021-10-14 19:20:35 +08:00
congqixia
ec6e8e4127
Hide liveChn into sessionutil and fix liveness init order ( #9860 )
...
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2021-10-14 16:40:35 +08:00
congqixia
1d5d0903e8
[skip ci] Fix golint for sessionutil ( #9335 )
...
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2021-10-06 19:21:17 +08:00
congqixia
a182326c60
Fix liveness check not quit after canceled ( #8454 )
...
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2021-09-24 12:47:54 +08:00
NotRyan
e3d3834243
Fix debug typos in sesion_util ( #8020 )
...
Signed-off-by: NotRyan <ryan.chan@zilliz.com>
Co-authored-by: NotRyan <ryan.chan@zilliz.com>
2021-09-23 21:54:03 +08:00
congqixia
da6d93527d
Add session liveness check ( #8408 )
...
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2021-09-23 18:29:55 +08:00
godchen
75672abab4
Add lease time ( #8064 )
...
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-09-22 17:50:00 +08:00
dragondriver
9b21b3b5fd
Initialize test framework of proxy ( #7563 )
...
Signed-off-by: dragondriver <jiquan.long@zilliz.com>
2021-09-09 10:06:29 +08:00
congqixia
1c88c8b0a5
Clean fmt.Println in util/flowgraph ( #7355 )
...
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2021-08-30 15:29:57 +08:00
congqixia
0281bd8d22
Change context to correct package ( #7331 )
...
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
2021-08-27 15:37:56 +08:00
Xiaofan
58b2089692
Import Embedded Etcd Kv Part 1( #7112 ) ( #7174 )
...
Signed-off-by: xiaofan-luan <xiaofan.luan@zilliz.com>
2021-08-24 09:45:51 +08:00
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
cai.zhang
f469a315d6
Refactor the logic of assign tasks in IndexCoord ( #6328 )
...
* Refactor the logic of assign tasks in IndexCoord
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Fix bugs
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Fix bug for unittest
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Add lock for map
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Improve code
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Fix unittest bug
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Reduce duriation for timetick
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Update orm version
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Reset sdk version
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Fix bug
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Reset orm version
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Reset test ip
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Fix bug
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Fix bug for unissued
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Rename some variables
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Fix bug
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
* Use break instead of continue in select::case
Signed-off-by: xiaocai2333 <cai.zhang@zilliz.com>
2021-07-14 14:15:55 +08:00
neza2017
8b89744c6b
search with exp ( #6409 )
...
* process float vector and binary vector field
on the search result
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
* add more debug info on etcd
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
* add debug info when grpc failed
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
2021-07-10 10:21:52 +08:00
neza2017
4e4ab4adc6
check if etcd is health before register session ( #6215 )
...
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
2021-06-30 14:12:15 +08:00
neza2017
6d7edc6015
fix typo ( #6142 )
...
* fix typo
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
* add log
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
2021-06-26 18:04:12 +08:00
neza2017
2e37fca214
add log in session ( #6136 )
...
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
2021-06-26 14:14:11 +08:00
godchen
17303bf4d3
Change session doc ( #6022 )
...
* change session doc
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
* fix error
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-06-23 17:14:10 +08:00
godchen
99be4c09a5
change retry ( #5996 )
...
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-06-23 09:24:10 +08:00
neza2017
96cb24e566
fix session util ( #5780 )
...
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
2021-06-15 18:53:55 +08:00
zhenshan.cao
5c69c6902d
Refactor proxy channelTimeTick and fix search timeout ( #5760 )
...
Signed-off-by: zhenshan.cao <zhenshan.cao@zilliz.com>
2021-06-15 16:36:36 +08:00
Cai Yudong
0f4bd50ce3
Support ETCD endpoints array ( #5755 )
2021-06-15 16:36:36 +08:00
sunby
f1ccbb8f9a
Fix init session in dataservice ( #5522 )
...
Signed-off-by: sunby <bingyi.sun@zilliz.com>
2021-06-15 15:59:04 +08:00
neza2017
f80dbab6ec
watch proxynode ( #5424 )
...
watch proxy node and,
send InvalidataCollectionMetaCache to each proxynode
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
Resolves : #5423
2021-05-26 12:14:30 +00:00
godchen
200801271d
Fix GetSession error ( #5401 )
...
Fix GetSession error
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-05-25 12:15:46 +00:00
godchen
042a061123
Fix session util error ( #5370 )
...
Fix session util error.
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-05-24 08:31:06 +00:00
godchen
dd736ee8ba
Change session doc ( #5355 )
...
Change session doc
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-05-24 03:53:07 +00:00
neza2017
e326eaad1e
master client,reconnect if grpc failed ( #5360 )
...
master client,reconnect if grpc failed
Signed-off-by: yefu.chen <yefu.chen@zilliz.com>
2021-05-24 01:44:49 +00:00
godchen
0eee7e5252
Change session ( #5329 )
...
Change session.
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-05-21 11:28:52 +00:00
godchen
913712fbea
Improve session manager ( #5310 )
...
Improve session manager.
Issue #5174
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-05-20 07:07:25 +00:00
godchen
e224d1e725
Add SessionManager ( #5288 )
...
Add SessionManager.
Resolves : #5174
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-05-19 10:36:05 +00:00
godchen
ccc0130bb4
Add exclusive parameter ( #5278 )
...
Add exclusive parameter.
Issue #5174
Signed-off-by: godchen <qingxiang.chen@zilliz.com>
2021-05-18 11:07:27 +00:00