mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
issue: #43897 - Return LastConfirmedMessageID when wal append operation. - Add resource-key-based locker for broadcast-ack operation to protect the coord state when executing ddl. - Resource-key-based locker is held until the broadcast operation is acked. - ResourceKey support shared and exclusive lock. - Add FastAck execute ack right away after the broadcast done to speed up ddl. - Ack callback will support broadcast message result now. - Add tombstone for broadcaster to avoid to repeatedly commit DDL and ABA issue. --------- Signed-off-by: chyezh <chyezh@outlook.com>
18 lines
638 B
Go
18 lines
638 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/broadcast"
|
|
"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()
|
|
broadcast.ResetBroadcaster()
|
|
}
|