Check indexes in indexcoord instead of proxy (#20193)

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2022-10-31 11:39:33 +08:00 committed by GitHub
parent c604d2f933
commit bcffb3c389
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 218 additions and 358 deletions

View File

@ -22,9 +22,10 @@ import (
)
var (
ErrCompareVersion = errors.New("failed to save meta in etcd because version compare failure")
ErrNotIndexExist = errors.New("there is no index")
ErrSegmentNotFound = errors.New("failed to get segment")
ErrCompareVersion = errors.New("failed to save meta in etcd because version compare failure")
ErrNotIndexExist = errors.New("there is no index")
ErrSegmentNotFound = errors.New("failed to get segment")
ErrMsgAmbiguousIndexName = "there are multiple indexes, please specify the index_name"
)
// errIndexNodeIsNotOnService return an error that the specified IndexNode is not exists.

View File

@ -747,6 +747,12 @@ func (i *IndexCoord) DropIndex(ctx context.Context, req *indexpb.DropIndexReques
log.Warn(fmt.Sprintf("there is no index on collection: %d with the index name: %s", req.CollectionID, req.IndexName))
return ret, nil
}
if !req.GetDropAll() && len(indexID2CreateTs) > 1 {
log.Warn(ErrMsgAmbiguousIndexName)
ret.ErrorCode = commonpb.ErrorCode_UnexpectedError
ret.Reason = ErrMsgAmbiguousIndexName
return ret, nil
}
indexIDs := make([]UniqueID, 0)
for indexID := range indexID2CreateTs {
indexIDs = append(indexIDs, indexID)

View File

@ -450,6 +450,7 @@ func testIndexCoord(t *testing.T) {
CollectionID: collID,
PartitionIDs: nil,
IndexName: indexName,
DropAll: false,
}
resp, err := ic.DropIndex(ctx, req)
assert.NoError(t, err)
@ -623,6 +624,7 @@ func TestIndexCoord_DropIndex(t *testing.T) {
CollectionID: collID,
PartitionIDs: []int64{partID},
IndexName: indexName,
DropAll: false,
})
assert.NoError(t, err)
assert.Equal(t, commonpb.ErrorCode_Success, resp.GetErrorCode())
@ -631,6 +633,7 @@ func TestIndexCoord_DropIndex(t *testing.T) {
CollectionID: collID,
PartitionIDs: []int64{partID},
IndexName: indexName,
DropAll: false,
})
assert.NoError(t, err)
assert.Equal(t, commonpb.ErrorCode_Success, resp.GetErrorCode())
@ -639,6 +642,7 @@ func TestIndexCoord_DropIndex(t *testing.T) {
CollectionID: collID,
PartitionIDs: nil,
IndexName: indexName,
DropAll: false,
})
assert.NoError(t, err)
assert.Equal(t, commonpb.ErrorCode_Success, resp.GetErrorCode())
@ -647,6 +651,7 @@ func TestIndexCoord_DropIndex(t *testing.T) {
CollectionID: collID,
PartitionIDs: nil,
IndexName: indexName,
DropAll: false,
})
assert.NoError(t, err)
assert.Equal(t, commonpb.ErrorCode_Success, resp.GetErrorCode())
@ -668,6 +673,7 @@ func TestIndexCoord_DropIndex(t *testing.T) {
CollectionID: collID,
PartitionIDs: []int64{partID},
IndexName: indexName,
DropAll: false,
})
assert.NoError(t, err)
assert.Equal(t, commonpb.ErrorCode_UnexpectedError, resp.GetErrorCode())
@ -676,6 +682,58 @@ func TestIndexCoord_DropIndex(t *testing.T) {
CollectionID: collID,
PartitionIDs: nil,
IndexName: indexName,
DropAll: false,
})
assert.NoError(t, err)
assert.Equal(t, commonpb.ErrorCode_UnexpectedError, resp.GetErrorCode())
})
t.Run("multiple index but no index name", func(t *testing.T) {
ic := &IndexCoord{
metaTable: &metaTable{
catalog: &indexcoord.Catalog{Txn: NewMockEtcdKV()},
indexLock: sync.RWMutex{},
segmentIndexLock: sync.RWMutex{},
collectionIndexes: map[UniqueID]map[UniqueID]*model.Index{
collID: {
indexID: {
TenantID: "",
CollectionID: collID,
FieldID: fieldID,
IndexID: indexID,
IndexName: indexName,
IsDeleted: false,
CreateTime: 10,
TypeParams: nil,
IndexParams: nil,
IsAutoIndex: false,
UserIndexParams: nil,
},
indexID + 1: {
TenantID: "",
CollectionID: collID,
FieldID: fieldID + 1,
IndexID: indexID + 1,
IndexName: indexName + "1",
IsDeleted: false,
CreateTime: 20,
TypeParams: nil,
IndexParams: nil,
IsAutoIndex: false,
UserIndexParams: nil,
},
},
},
segmentIndexes: nil,
buildID2SegmentIndex: nil,
},
}
ic.UpdateStateCode(commonpb.StateCode_Healthy)
resp, err := ic.DropIndex(context.Background(), &indexpb.DropIndexRequest{
CollectionID: collID,
PartitionIDs: []int64{partID},
IndexName: "",
DropAll: false,
})
assert.NoError(t, err)
assert.Equal(t, commonpb.ErrorCode_UnexpectedError, resp.GetErrorCode())

View File

@ -167,6 +167,7 @@ message DropIndexRequest {
int64 collectionID = 1;
repeated int64 partitionIDs = 2;
string index_name = 3;
bool drop_all = 4;
}
message DescribeIndexRequest {

View File

@ -1098,6 +1098,7 @@ type DropIndexRequest struct {
CollectionID int64 `protobuf:"varint,1,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
PartitionIDs []int64 `protobuf:"varint,2,rep,packed,name=partitionIDs,proto3" json:"partitionIDs,omitempty"`
IndexName string `protobuf:"bytes,3,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"`
DropAll bool `protobuf:"varint,4,opt,name=drop_all,json=dropAll,proto3" json:"drop_all,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
@ -1149,6 +1150,13 @@ func (m *DropIndexRequest) GetIndexName() string {
return ""
}
func (m *DropIndexRequest) GetDropAll() bool {
if m != nil {
return m.DropAll
}
return false
}
type DescribeIndexRequest struct {
CollectionID int64 `protobuf:"varint,1,opt,name=collectionID,proto3" json:"collectionID,omitempty"`
IndexName string `protobuf:"bytes,2,opt,name=index_name,json=indexName,proto3" json:"index_name,omitempty"`
@ -2020,143 +2028,144 @@ func init() {
func init() { proto.RegisterFile("index_coord.proto", fileDescriptor_f9e019eb3fda53c2) }
var fileDescriptor_f9e019eb3fda53c2 = []byte{
// 2165 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0xcd, 0x6e, 0x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, 0xdf, 0x2c, 0xea, 0x7f,
0x29, 0x0f, 0xa8, 0x8f, 0xff, 0xff, 0x73, 0xe1, 0x21, 0x58, 0x49, 0x8f, 0x50, 0x1c, 0x6a, 0xf9,
0x16, 0x62, 0x56, 0xa8, 0x7d, 0x0e, 0x56, 0x52, 0x6d, 0x15, 0xaf, 0x98, 0x2f, 0x58, 0x1b, 0xf7,
0x66, 0x68, 0x25, 0xa7, 0x3d, 0x80, 0x4a, 0x5c, 0x1d, 0xa1, 0xbb, 0xd3, 0xf2, 0x42, 0x7a, 0xe5,
0x19, 0x67, 0xfd, 0x35, 0xd8, 0xa9, 0xd2, 0xa1, 0x98, 0x09, 0x26, 0x4b, 0x8e, 0xc6, 0x83, 0x99,
0x7a, 0xdf, 0x8e, 0x80, 0xdc, 0xfe, 0xd1, 0xe7, 0x5b, 0x47, 0x84, 0x1f, 0x47, 0x5d, 0x61, 0xd9,
0x87, 0x4a, 0xf3, 0x7d, 0x42, 0xf5, 0xaf, 0x87, 0xf1, 0x29, 0x1f, 0xca, 0x95, 0x1e, 0x4a, 0x3b,
0x8d, 0xba, 0xdd, 0x45, 0x39, 0xfc, 0xe0, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x3a, 0x77, 0xe5,
0xae, 0x64, 0x20, 0x00, 0x00,
// 2184 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x59, 0xcd, 0x8e, 0xdb, 0xc8,
0xf1, 0x37, 0x45, 0xcd, 0x8c, 0x58, 0x94, 0xe6, 0xa3, 0xed, 0xfd, 0xff, 0x65, 0xd9, 0x8e, 0xc7,
0xf4, 0xda, 0x56, 0x02, 0xec, 0xd8, 0x99, 0xcd, 0x06, 0x9b, 0x20, 0x09, 0x30, 0x9e, 0x59, 0xdb,
0xb2, 0xd7, 0xc6, 0x84, 0x32, 0x16, 0xc8, 0x22, 0x80, 0x42, 0x89, 0xad, 0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 0x5b, 0xe5, 0x2b, 0x16, 0x09,
0x6b, 0xeb, 0xce, 0x1c, 0xad, 0xf4, 0xb4, 0x2f, 0xa0, 0x96, 0xb0, 0x23, 0x74, 0x7b, 0x56, 0x5e,
0xc8, 0xae, 0x3c, 0xe7, 0xac, 0xbf, 0x00, 0x3b, 0x43, 0x1d, 0xca, 0x2b, 0xc1, 0x34, 0xe5, 0x68,
0xdd, 0x9b, 0xab, 0xf7, 0xbf, 0x11, 0x90, 0x0f, 0xbf, 0xf7, 0xf9, 0xf6, 0x01, 0xe1, 0x87, 0x71,
0x5f, 0x58, 0xf6, 0xbe, 0xd2, 0xfc, 0x80, 0x50, 0xfd, 0xeb, 0x7e, 0x72, 0xca, 0xfb, 0x72, 0xa5,
0xfb, 0xd2, 0x4e, 0xe3, 0x7e, 0x7f, 0x59, 0x0e, 0x3f, 0xfc, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff,
0x34, 0xde, 0x9f, 0x9a, 0x80, 0x20, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.

View File

@ -90,7 +90,3 @@ func ErrProxyNotReady() error {
func ErrPartitionNotExist(partitionName string) error {
return fmt.Errorf("partition is not exist: %s", partitionName)
}
func ErrAmbiguousIndexName() error {
return fmt.Errorf("there are multiple indexes, please specify the index_name")
}

View File

@ -529,32 +529,12 @@ func (dit *dropIndexTask) PreExecute(ctx context.Context) error {
}
func (dit *dropIndexTask) Execute(ctx context.Context) error {
resp, err := dit.indexCoord.DescribeIndex(ctx, &indexpb.DescribeIndexRequest{
CollectionID: dit.collectionID,
IndexName: dit.GetIndexName(),
})
if err != nil {
return err
}
if resp.GetStatus().GetErrorCode() != commonpb.ErrorCode_Success {
if resp.GetStatus().GetErrorCode() == commonpb.ErrorCode_IndexNotExist {
// skip drop
return nil
}
return errors.New(resp.GetStatus().GetReason())
}
if len(resp.GetIndexInfos()) > 1 && dit.GetIndexName() == "" {
return ErrAmbiguousIndexName()
}
// if len(indexInfos) == 0, the ErrorCode must be IndexNotExist
dit.IndexName = resp.GetIndexInfos()[0].IndexName
var err error
dit.result, err = dit.indexCoord.DropIndex(ctx, &indexpb.DropIndexRequest{
CollectionID: dit.collectionID,
PartitionIDs: nil,
IndexName: dit.IndexName,
DropAll: false,
})
if dit.result == nil {
return errors.New("drop index resp is nil")

View File

@ -288,195 +288,3 @@ func TestCreateIndexTask_PreExecute(t *testing.T) {
assert.Error(t, err)
})
}
func TestDropIndexTask_Execute(t *testing.T) {
collectionName := "collection1"
collectionID := UniqueID(1)
fieldID := UniqueID(2)
indexID := UniqueID(3)
fieldName := "field1"
indexName := "_default_idx_101"
ic := newMockIndexCoord()
ctx := context.Background()
mockCache := newMockCache()
mockCache.setGetIDFunc(func(ctx context.Context, collectionName string) (typeutil.UniqueID, error) {
return collectionID, nil
})
globalMetaCache = mockCache
ic.DropIndexFunc = func(ctx context.Context, request *indexpb.DropIndexRequest) (*commonpb.Status, error) {
return &commonpb.Status{
ErrorCode: commonpb.ErrorCode_Success,
}, nil
}
dit := dropIndexTask{
ctx: ctx,
DropIndexRequest: &milvuspb.DropIndexRequest{
CollectionName: collectionName,
FieldName: fieldName,
IndexName: "",
},
indexCoord: ic,
queryCoord: nil,
result: nil,
collectionID: collectionID,
}
t.Run("one index", func(t *testing.T) {
ic.DescribeIndexFunc = func(ctx context.Context, request *indexpb.DescribeIndexRequest) (*indexpb.DescribeIndexResponse, error) {
return &indexpb.DescribeIndexResponse{
Status: &commonpb.Status{
ErrorCode: commonpb.ErrorCode_Success,
},
IndexInfos: []*indexpb.IndexInfo{
{
CollectionID: collectionID,
FieldID: fieldID,
IndexName: indexName,
IndexID: indexID,
TypeParams: []*commonpb.KeyValuePair{
{
Key: "dim",
Value: "128",
},
},
IndexParams: []*commonpb.KeyValuePair{
{
Key: "metrics_type",
Value: "L2",
},
},
IndexedRows: 10000,
TotalRows: 10000,
State: commonpb.IndexState_Finished,
IndexStateFailReason: "",
IsAutoIndex: false,
UserIndexParams: nil,
},
},
}, nil
}
err := dit.Execute(ctx)
assert.NoError(t, err)
})
t.Run("two indexes", func(t *testing.T) {
ic.DescribeIndexFunc = func(ctx context.Context, request *indexpb.DescribeIndexRequest) (*indexpb.DescribeIndexResponse, error) {
return &indexpb.DescribeIndexResponse{
Status: &commonpb.Status{
ErrorCode: commonpb.ErrorCode_Success,
},
IndexInfos: []*indexpb.IndexInfo{
{
CollectionID: collectionID,
FieldID: fieldID,
IndexName: indexName,
IndexID: indexID,
TypeParams: []*commonpb.KeyValuePair{
{
Key: "dim",
Value: "128",
},
},
IndexParams: []*commonpb.KeyValuePair{
{
Key: "metrics_type",
Value: "L2",
},
{
Key: "index_type",
Value: "IVF_FLAT",
},
},
IndexedRows: 10000,
TotalRows: 10000,
State: commonpb.IndexState_Finished,
IndexStateFailReason: "",
IsAutoIndex: false,
UserIndexParams: nil,
},
{
CollectionID: collectionID,
FieldID: fieldID + 1,
IndexName: "_default_idx_102",
IndexID: indexID + 1,
TypeParams: []*commonpb.KeyValuePair{
{
Key: "dim",
Value: "128",
},
},
IndexParams: []*commonpb.KeyValuePair{
{
Key: "metrics_type",
Value: "L2",
},
{
Key: "index_type",
Value: "FLAT",
},
},
IndexedRows: 10000,
TotalRows: 10000,
State: commonpb.IndexState_Finished,
IndexStateFailReason: "",
IsAutoIndex: false,
UserIndexParams: nil,
},
},
}, nil
}
dit.indexCoord = ic
dit.IndexName = ""
err := dit.Execute(ctx)
assert.Error(t, err)
})
t.Run("describe index error", func(t *testing.T) {
ic.DescribeIndexFunc = func(ctx context.Context, request *indexpb.DescribeIndexRequest) (*indexpb.DescribeIndexResponse, error) {
return nil, errors.New("error")
}
dit.indexCoord = ic
dit.IndexName = ""
err := dit.Execute(ctx)
assert.Error(t, err)
})
t.Run("describe index fail", func(t *testing.T) {
ic.DescribeIndexFunc = func(ctx context.Context, request *indexpb.DescribeIndexRequest) (*indexpb.DescribeIndexResponse, error) {
return &indexpb.DescribeIndexResponse{
Status: &commonpb.Status{
ErrorCode: commonpb.ErrorCode_UnexpectedError,
Reason: "fail reason",
},
IndexInfos: nil,
}, nil
}
dit.indexCoord = ic
dit.IndexName = ""
err := dit.Execute(ctx)
assert.Error(t, err)
})
t.Run("index not exist", func(t *testing.T) {
ic.DescribeIndexFunc = func(ctx context.Context, request *indexpb.DescribeIndexRequest) (*indexpb.DescribeIndexResponse, error) {
return &indexpb.DescribeIndexResponse{
Status: &commonpb.Status{
ErrorCode: commonpb.ErrorCode_IndexNotExist,
Reason: "index not exist",
},
IndexInfos: nil,
}, nil
}
dit.indexCoord = ic
dit.IndexName = ""
err := dit.Execute(ctx)
assert.NoError(t, err)
})
}

View File

@ -205,6 +205,7 @@ func (b *ServerBroker) DropCollectionIndex(ctx context.Context, collID UniqueID,
CollectionID: collID,
PartitionIDs: partIDs,
IndexName: "",
DropAll: true,
})
if err != nil {
return err