mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
Pre-check import message to prevent pipeline block indefinitely. issue: https://github.com/milvus-io/milvus/issues/42414 --------- Signed-off-by: bigsheeper <yihao.dai@zilliz.com> Co-authored-by: chyezh <chyezh@outlook.com>
15 lines
441 B
Go
15 lines
441 B
Go
//go:build test
|
|
// +build test
|
|
|
|
package registry
|
|
|
|
import "github.com/milvus-io/milvus/pkg/v2/util/syncutil"
|
|
|
|
func ResetRegistration() {
|
|
localRegistry = make(map[AppendOperatorType]*syncutil.Future[AppendOperator])
|
|
localRegistry[AppendOperatorTypeMsgstream] = syncutil.NewFuture[AppendOperator]()
|
|
localRegistry[AppendOperatorTypeStreaming] = syncutil.NewFuture[AppendOperator]()
|
|
resetMessageAckCallbacks()
|
|
resetMessageCheckCallbacks()
|
|
}
|