Skip to content

Commit

Permalink
fix integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Wei Liu <wei.liu@zilliz.com>
  • Loading branch information
weiliu1031 committed Dec 19, 2024
1 parent 59a23ec commit 731cb0a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion internal/querycoordv2/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ func (s *Server) UpdateLoadConfig(ctx context.Context, req *querypb.UpdateLoadCo
jobs := make([]job.Job, 0, len(req.GetCollectionIDs()))
for _, collectionID := range req.GetCollectionIDs() {
collection := s.meta.GetCollection(collectionID)
if collection == nil{
if collection == nil {
err := merr.WrapErrCollectionNotLoaded(collectionID)
log.Warn("failed to update load config", zap.Error(err))
continue
Expand Down
3 changes: 0 additions & 3 deletions tests/integration/replicas/load/load_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,6 @@ func (s *LoadTestSuite) TestDynamicUpdateLoadConfigs_OnLoadingCollection() {
}, 30*time.Second, time.Second)

// trigger collection loading, and modify collection's load config during loading
s.loadCollection(collectionName, dbName, 3, rgs[:3])
loadStatus, err := s.Cluster.Proxy.LoadCollection(ctx, &milvuspb.LoadCollectionRequest{
DbName: dbName,
CollectionName: collectionName,
Expand All @@ -930,7 +929,6 @@ func (s *LoadTestSuite) TestDynamicUpdateLoadConfigs_OnLoadingCollection() {
})
s.NoError(err)
s.True(merr.Ok(loadStatus))
s.loadCollection(collectionName, dbName, 3, rgs[:3])
loadStatus, err = s.Cluster.Proxy.LoadCollection(ctx, &milvuspb.LoadCollectionRequest{
DbName: dbName,
CollectionName: collectionName,
Expand All @@ -939,7 +937,6 @@ func (s *LoadTestSuite) TestDynamicUpdateLoadConfigs_OnLoadingCollection() {
})
s.NoError(err)
s.True(merr.Ok(loadStatus))
s.loadCollection(collectionName, dbName, 3, rgs[:3])
loadStatus, err = s.Cluster.Proxy.LoadCollection(ctx, &milvuspb.LoadCollectionRequest{
DbName: dbName,
CollectionName: collectionName,
Expand Down

0 comments on commit 731cb0a

Please sign in to comment.