Skip to content

Commit

Permalink
fix: it
Browse files Browse the repository at this point in the history
Signed-off-by: chyezh <[email protected]>
  • Loading branch information
chyezh committed Jan 10, 2025
1 parent e3b5fff commit d108b10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (
"github.com/milvus-io/milvus-proto/go-api/v2/commonpb"
"github.com/milvus-io/milvus-proto/go-api/v2/milvuspb"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/internal/streamingcoord/server/broadcaster/registry"
"github.com/milvus-io/milvus/pkg/common"
"github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/util/funcutil"
Expand Down Expand Up @@ -302,6 +303,8 @@ func (s *CoordDownSearch) searchAfterCoordDown() float64 {
s.searchFailed(searchCollectionName, Dim, commonpb.ConsistencyLevel_Strong)
log.Info(fmt.Sprintf("=========================Failed search cost: %fs=========================", time.Since(failedStart).Seconds()))

registry.ResetRegistration()

log.Info("=========================restart Root Coordinators=========================")
c.StartRootCoord()
s.search(searchCollectionName, Dim, commonpb.ConsistencyLevel_Eventually)
Expand Down
3 changes: 3 additions & 0 deletions tests/integration/coordrecovery/coord_recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ import (

"github.com/milvus-io/milvus-proto/go-api/v2/milvuspb"
"github.com/milvus-io/milvus-proto/go-api/v2/schemapb"
"github.com/milvus-io/milvus/internal/streamingcoord/server/broadcaster/registry"
"github.com/milvus-io/milvus/pkg/common"
"github.com/milvus-io/milvus/pkg/log"
"github.com/milvus-io/milvus/pkg/util/funcutil"
Expand Down Expand Up @@ -242,6 +243,8 @@ func (s *CoordSwitchSuite) switchCoord() float64 {
log.Info("=========================Coordinators stopped=========================", zap.Duration("elapsed", time.Since(start)))
start = time.Now()

registry.ResetRegistration()

c.StartRootCoord()
log.Info("=========================RootCoord restarted=========================")
c.StartDataCoord()
Expand Down

0 comments on commit d108b10

Please sign in to comment.