mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
issue: #38399 pr: #39522 - broadcast message can carry multi resource key now. - implement event-based notification for broadcast messages - broadcast message use broadcast id as a unique identifier in message - broadcasted message on vchannels keep the broadcasted vchannel now. - broadcasted message and broadcast message have a common broadcast header now. --------- Signed-off-by: chyezh <chyezh@outlook.com>
33 lines
954 B
Go
33 lines
954 B
Go
//go:build test
|
|
// +build test
|
|
|
|
package coordclient
|
|
|
|
import (
|
|
"github.com/milvus-io/milvus/internal/types"
|
|
"github.com/milvus-io/milvus/pkg/util/syncutil"
|
|
)
|
|
|
|
// ResetRegistration resets the global local client to initial state.
|
|
// This function is only used in test.
|
|
func ResetRegistration() {
|
|
glocalClient = &localClient{
|
|
queryCoordClient: syncutil.NewFuture[types.QueryCoordClient](),
|
|
dataCoordClient: syncutil.NewFuture[types.DataCoordClient](),
|
|
rootCoordClient: syncutil.NewFuture[types.RootCoordClient](),
|
|
}
|
|
}
|
|
|
|
// ResetQueryCoordRegistration resets the query coord client to initial state.
|
|
func ResetQueryCoordRegistration() {
|
|
glocalClient.queryCoordClient = syncutil.NewFuture[types.QueryCoordClient]()
|
|
}
|
|
|
|
func ResetRootCoordRegistration() {
|
|
glocalClient.rootCoordClient = syncutil.NewFuture[types.RootCoordClient]()
|
|
}
|
|
|
|
func ResetDataCoordRegistration() {
|
|
glocalClient.dataCoordClient = syncutil.NewFuture[types.DataCoordClient]()
|
|
}
|