mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
Remove state service in querynode (#15281)
Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
parent
87394e29b6
commit
bbb672cb00
@ -290,7 +290,7 @@ func (node *QueryNode) Init() error {
|
|||||||
node.etcdKV,
|
node.etcdKV,
|
||||||
node.msFactory)
|
node.msFactory)
|
||||||
|
|
||||||
node.statsService = newStatsService(node.queryNodeLoopCtx, node.historical.replica, node.loader.indexLoader.fieldStatsChan, node.msFactory)
|
//node.statsService = newStatsService(node.queryNodeLoopCtx, node.historical.replica, node.loader.indexLoader.fieldStatsChan, node.msFactory)
|
||||||
node.dataSyncService = newDataSyncService(node.queryNodeLoopCtx, streamingReplica, historicalReplica, node.tSafeReplica, node.msFactory)
|
node.dataSyncService = newDataSyncService(node.queryNodeLoopCtx, streamingReplica, historicalReplica, node.tSafeReplica, node.msFactory)
|
||||||
|
|
||||||
node.InitSegcore()
|
node.InitSegcore()
|
||||||
@ -343,7 +343,7 @@ func (node *QueryNode) Start() error {
|
|||||||
|
|
||||||
// start services
|
// start services
|
||||||
go node.watchChangeInfo()
|
go node.watchChangeInfo()
|
||||||
go node.statsService.start()
|
//go node.statsService.start()
|
||||||
|
|
||||||
// watch proxy
|
// watch proxy
|
||||||
if err := node.initServiceDiscovery(); err != nil {
|
if err := node.initServiceDiscovery(); err != nil {
|
||||||
@ -383,9 +383,9 @@ func (node *QueryNode) Stop() error {
|
|||||||
if node.queryService != nil {
|
if node.queryService != nil {
|
||||||
node.queryService.close()
|
node.queryService.close()
|
||||||
}
|
}
|
||||||
if node.statsService != nil {
|
//if node.statsService != nil {
|
||||||
node.statsService.close()
|
// node.statsService.close()
|
||||||
}
|
//}
|
||||||
node.session.Revoke(time.Second)
|
node.session.Revoke(time.Second)
|
||||||
node.wg.Wait()
|
node.wg.Wait()
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user