Remove state service in querynode (#15281)

Signed-off-by: xige-16 <xi.ge@zilliz.com>
This commit is contained in:
xige-16 2022-01-18 18:43:37 +08:00 committed by GitHub
parent 87394e29b6
commit bbb672cb00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ func (node *QueryNode) Init() error {
node.etcdKV,
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.InitSegcore()
@ -343,7 +343,7 @@ func (node *QueryNode) Start() error {
// start services
go node.watchChangeInfo()
go node.statsService.start()
//go node.statsService.start()
// watch proxy
if err := node.initServiceDiscovery(); err != nil {
@ -383,9 +383,9 @@ func (node *QueryNode) Stop() error {
if node.queryService != nil {
node.queryService.close()
}
if node.statsService != nil {
node.statsService.close()
}
//if node.statsService != nil {
// node.statsService.close()
//}
node.session.Revoke(time.Second)
node.wg.Wait()
return nil