Fix DescribeCollection failed with undefined msg type (#23192)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/23201/head
yihao.dai 2023-04-03 19:52:24 +08:00 committed by GitHub
parent 4d2e379b09
commit 17d3190fcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -457,7 +457,9 @@ func (s *Server) initGarbageCollection(cli storage.ChunkManager) {
dropTolerance: Params.DataCoordCfg.GCDropTolerance.GetAsDuration(time.Second),
collValidator: func(collID int64) bool {
resp, err := s.rootCoordClient.DescribeCollectionInternal(context.Background(), &milvuspb.DescribeCollectionRequest{
Base: commonpbutil.NewMsgBase(),
Base: commonpbutil.NewMsgBase(
commonpbutil.WithMsgType(commonpb.MsgType_DescribeCollection),
),
CollectionID: collID,
})
if err != nil {