milvus/internal/util/testutil/reset_env.go
Zhen Ye 4bad293655
enhance: make upgrading from 2.5.x less down time (#42082)
issue: #40532

- start timeticksync at rootcoord if the streaming service is not
available
- stop timeticksync if the streaming service is available
- open a read-only wal if some nodes in cluster is not upgrading to 2.6
- allow to open read-write wal after all nodes in cluster is upgrading
to 2.6

---------

Signed-off-by: chyezh <chyezh@outlook.com>
2025-05-29 23:02:29 +08:00

16 lines
524 B
Go

package testutil
import (
"github.com/milvus-io/milvus/internal/coordinator/snmanager"
"github.com/milvus-io/milvus/internal/streamingcoord/server/balancer/channel"
"github.com/milvus-io/milvus/internal/streamingcoord/server/broadcaster/registry"
registry2 "github.com/milvus-io/milvus/internal/streamingnode/client/handler/registry"
)
func ResetEnvironment() {
channel.ResetStaticPChannelStatsManager()
registry.ResetRegistration()
snmanager.ResetStreamingNodeManager()
registry2.ResetRegisterLocalWALManager()
}