Fix DescribeCollection failed with undefined msg type (#23298)

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
yihao.dai 2023-04-07 20:58:28 +08:00 committed by GitHub
parent 5ecec95bf6
commit a92109735e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,9 @@ func (s *Server) initGarbageCollection(cli storage.ChunkManager) {
dropTolerance: Params.DataCoordCfg.GCDropTolerance,
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 {