mirror of https://github.com/milvus-io/milvus.git
fix: merge index params when creating index (#31127)
issue: https://github.com/milvus-io/milvus/issues/31102 --------- Signed-off-by: sunby <sunbingyi1992@gmail.com>pull/31297/head
parent
6a9418d200
commit
5c0bb40549
|
@ -205,6 +205,19 @@ func (s *Server) CreateIndex(ctx context.Context, req *indexpb.CreateIndexReques
|
|||
return merr.Status(err), nil
|
||||
}
|
||||
|
||||
// merge with previous params because create index would not pass mmap params
|
||||
indexes := s.meta.indexMeta.GetFieldIndexes(req.GetCollectionID(), req.GetFieldID(), req.GetIndexName())
|
||||
if len(indexes) == 1 {
|
||||
req.UserIndexParams, err = UpdateParams(indexes[0], indexes[0].UserIndexParams, req.GetUserIndexParams())
|
||||
if err != nil {
|
||||
return merr.Status(err), nil
|
||||
}
|
||||
req.IndexParams, err = UpdateParams(indexes[0], indexes[0].IndexParams, req.GetIndexParams())
|
||||
if err != nil {
|
||||
return merr.Status(err), nil
|
||||
}
|
||||
}
|
||||
|
||||
if indexID == 0 {
|
||||
indexID, err = s.allocator.allocID(ctx)
|
||||
if err != nil {
|
||||
|
|
|
@ -48,8 +48,8 @@ type DataCoordCatalog_AddSegment_Call struct {
|
|||
}
|
||||
|
||||
// AddSegment is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - segment *datapb.SegmentInfo
|
||||
// - ctx context.Context
|
||||
// - segment *datapb.SegmentInfo
|
||||
func (_e *DataCoordCatalog_Expecter) AddSegment(ctx interface{}, segment interface{}) *DataCoordCatalog_AddSegment_Call {
|
||||
return &DataCoordCatalog_AddSegment_Call{Call: _e.mock.On("AddSegment", ctx, segment)}
|
||||
}
|
||||
|
@ -91,8 +91,8 @@ type DataCoordCatalog_AlterIndexes_Call struct {
|
|||
}
|
||||
|
||||
// AlterIndexes is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - newIndexes []*model.Index
|
||||
// - ctx context.Context
|
||||
// - newIndexes []*model.Index
|
||||
func (_e *DataCoordCatalog_Expecter) AlterIndexes(ctx interface{}, newIndexes interface{}) *DataCoordCatalog_AlterIndexes_Call {
|
||||
return &DataCoordCatalog_AlterIndexes_Call{Call: _e.mock.On("AlterIndexes", ctx, newIndexes)}
|
||||
}
|
||||
|
@ -134,8 +134,8 @@ type DataCoordCatalog_AlterSegmentIndexes_Call struct {
|
|||
}
|
||||
|
||||
// AlterSegmentIndexes is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - newSegIdxes []*model.SegmentIndex
|
||||
// - ctx context.Context
|
||||
// - newSegIdxes []*model.SegmentIndex
|
||||
func (_e *DataCoordCatalog_Expecter) AlterSegmentIndexes(ctx interface{}, newSegIdxes interface{}) *DataCoordCatalog_AlterSegmentIndexes_Call {
|
||||
return &DataCoordCatalog_AlterSegmentIndexes_Call{Call: _e.mock.On("AlterSegmentIndexes", ctx, newSegIdxes)}
|
||||
}
|
||||
|
@ -184,9 +184,9 @@ type DataCoordCatalog_AlterSegments_Call struct {
|
|||
}
|
||||
|
||||
// AlterSegments is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - newSegments []*datapb.SegmentInfo
|
||||
// - binlogs ...metastore.BinlogsIncrement
|
||||
// - ctx context.Context
|
||||
// - newSegments []*datapb.SegmentInfo
|
||||
// - binlogs ...metastore.BinlogsIncrement
|
||||
func (_e *DataCoordCatalog_Expecter) AlterSegments(ctx interface{}, newSegments interface{}, binlogs ...interface{}) *DataCoordCatalog_AlterSegments_Call {
|
||||
return &DataCoordCatalog_AlterSegments_Call{Call: _e.mock.On("AlterSegments",
|
||||
append([]interface{}{ctx, newSegments}, binlogs...)...)}
|
||||
|
@ -235,8 +235,8 @@ type DataCoordCatalog_ChannelExists_Call struct {
|
|||
}
|
||||
|
||||
// ChannelExists is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
func (_e *DataCoordCatalog_Expecter) ChannelExists(ctx interface{}, channel interface{}) *DataCoordCatalog_ChannelExists_Call {
|
||||
return &DataCoordCatalog_ChannelExists_Call{Call: _e.mock.On("ChannelExists", ctx, channel)}
|
||||
}
|
||||
|
@ -278,8 +278,8 @@ type DataCoordCatalog_CreateIndex_Call struct {
|
|||
}
|
||||
|
||||
// CreateIndex is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - index *model.Index
|
||||
// - ctx context.Context
|
||||
// - index *model.Index
|
||||
func (_e *DataCoordCatalog_Expecter) CreateIndex(ctx interface{}, index interface{}) *DataCoordCatalog_CreateIndex_Call {
|
||||
return &DataCoordCatalog_CreateIndex_Call{Call: _e.mock.On("CreateIndex", ctx, index)}
|
||||
}
|
||||
|
@ -321,8 +321,8 @@ type DataCoordCatalog_CreateSegmentIndex_Call struct {
|
|||
}
|
||||
|
||||
// CreateSegmentIndex is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - segIdx *model.SegmentIndex
|
||||
// - ctx context.Context
|
||||
// - segIdx *model.SegmentIndex
|
||||
func (_e *DataCoordCatalog_Expecter) CreateSegmentIndex(ctx interface{}, segIdx interface{}) *DataCoordCatalog_CreateSegmentIndex_Call {
|
||||
return &DataCoordCatalog_CreateSegmentIndex_Call{Call: _e.mock.On("CreateSegmentIndex", ctx, segIdx)}
|
||||
}
|
||||
|
@ -364,8 +364,8 @@ type DataCoordCatalog_DropChannel_Call struct {
|
|||
}
|
||||
|
||||
// DropChannel is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
func (_e *DataCoordCatalog_Expecter) DropChannel(ctx interface{}, channel interface{}) *DataCoordCatalog_DropChannel_Call {
|
||||
return &DataCoordCatalog_DropChannel_Call{Call: _e.mock.On("DropChannel", ctx, channel)}
|
||||
}
|
||||
|
@ -407,8 +407,8 @@ type DataCoordCatalog_DropChannelCheckpoint_Call struct {
|
|||
}
|
||||
|
||||
// DropChannelCheckpoint is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - vChannel string
|
||||
// - ctx context.Context
|
||||
// - vChannel string
|
||||
func (_e *DataCoordCatalog_Expecter) DropChannelCheckpoint(ctx interface{}, vChannel interface{}) *DataCoordCatalog_DropChannelCheckpoint_Call {
|
||||
return &DataCoordCatalog_DropChannelCheckpoint_Call{Call: _e.mock.On("DropChannelCheckpoint", ctx, vChannel)}
|
||||
}
|
||||
|
@ -450,7 +450,7 @@ type DataCoordCatalog_DropImportJob_Call struct {
|
|||
}
|
||||
|
||||
// DropImportJob is a helper method to define mock.On call
|
||||
// - jobID int64
|
||||
// - jobID int64
|
||||
func (_e *DataCoordCatalog_Expecter) DropImportJob(jobID interface{}) *DataCoordCatalog_DropImportJob_Call {
|
||||
return &DataCoordCatalog_DropImportJob_Call{Call: _e.mock.On("DropImportJob", jobID)}
|
||||
}
|
||||
|
@ -492,7 +492,7 @@ type DataCoordCatalog_DropImportTask_Call struct {
|
|||
}
|
||||
|
||||
// DropImportTask is a helper method to define mock.On call
|
||||
// - taskID int64
|
||||
// - taskID int64
|
||||
func (_e *DataCoordCatalog_Expecter) DropImportTask(taskID interface{}) *DataCoordCatalog_DropImportTask_Call {
|
||||
return &DataCoordCatalog_DropImportTask_Call{Call: _e.mock.On("DropImportTask", taskID)}
|
||||
}
|
||||
|
@ -534,9 +534,9 @@ type DataCoordCatalog_DropIndex_Call struct {
|
|||
}
|
||||
|
||||
// DropIndex is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - collID int64
|
||||
// - dropIdxID int64
|
||||
// - ctx context.Context
|
||||
// - collID int64
|
||||
// - dropIdxID int64
|
||||
func (_e *DataCoordCatalog_Expecter) DropIndex(ctx interface{}, collID interface{}, dropIdxID interface{}) *DataCoordCatalog_DropIndex_Call {
|
||||
return &DataCoordCatalog_DropIndex_Call{Call: _e.mock.On("DropIndex", ctx, collID, dropIdxID)}
|
||||
}
|
||||
|
@ -578,7 +578,7 @@ type DataCoordCatalog_DropPreImportTask_Call struct {
|
|||
}
|
||||
|
||||
// DropPreImportTask is a helper method to define mock.On call
|
||||
// - taskID int64
|
||||
// - taskID int64
|
||||
func (_e *DataCoordCatalog_Expecter) DropPreImportTask(taskID interface{}) *DataCoordCatalog_DropPreImportTask_Call {
|
||||
return &DataCoordCatalog_DropPreImportTask_Call{Call: _e.mock.On("DropPreImportTask", taskID)}
|
||||
}
|
||||
|
@ -620,8 +620,8 @@ type DataCoordCatalog_DropSegment_Call struct {
|
|||
}
|
||||
|
||||
// DropSegment is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - segment *datapb.SegmentInfo
|
||||
// - ctx context.Context
|
||||
// - segment *datapb.SegmentInfo
|
||||
func (_e *DataCoordCatalog_Expecter) DropSegment(ctx interface{}, segment interface{}) *DataCoordCatalog_DropSegment_Call {
|
||||
return &DataCoordCatalog_DropSegment_Call{Call: _e.mock.On("DropSegment", ctx, segment)}
|
||||
}
|
||||
|
@ -663,11 +663,11 @@ type DataCoordCatalog_DropSegmentIndex_Call struct {
|
|||
}
|
||||
|
||||
// DropSegmentIndex is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - collID int64
|
||||
// - partID int64
|
||||
// - segID int64
|
||||
// - buildID int64
|
||||
// - ctx context.Context
|
||||
// - collID int64
|
||||
// - partID int64
|
||||
// - segID int64
|
||||
// - buildID int64
|
||||
func (_e *DataCoordCatalog_Expecter) DropSegmentIndex(ctx interface{}, collID interface{}, partID interface{}, segID interface{}, buildID interface{}) *DataCoordCatalog_DropSegmentIndex_Call {
|
||||
return &DataCoordCatalog_DropSegmentIndex_Call{Call: _e.mock.On("DropSegmentIndex", ctx, collID, partID, segID, buildID)}
|
||||
}
|
||||
|
@ -709,9 +709,9 @@ type DataCoordCatalog_GcConfirm_Call struct {
|
|||
}
|
||||
|
||||
// GcConfirm is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - collectionID int64
|
||||
// - partitionID int64
|
||||
// - ctx context.Context
|
||||
// - collectionID int64
|
||||
// - partitionID int64
|
||||
func (_e *DataCoordCatalog_Expecter) GcConfirm(ctx interface{}, collectionID interface{}, partitionID interface{}) *DataCoordCatalog_GcConfirm_Call {
|
||||
return &DataCoordCatalog_GcConfirm_Call{Call: _e.mock.On("GcConfirm", ctx, collectionID, partitionID)}
|
||||
}
|
||||
|
@ -765,7 +765,7 @@ type DataCoordCatalog_ListChannelCheckpoint_Call struct {
|
|||
}
|
||||
|
||||
// ListChannelCheckpoint is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - ctx context.Context
|
||||
func (_e *DataCoordCatalog_Expecter) ListChannelCheckpoint(ctx interface{}) *DataCoordCatalog_ListChannelCheckpoint_Call {
|
||||
return &DataCoordCatalog_ListChannelCheckpoint_Call{Call: _e.mock.On("ListChannelCheckpoint", ctx)}
|
||||
}
|
||||
|
@ -925,7 +925,7 @@ type DataCoordCatalog_ListIndexes_Call struct {
|
|||
}
|
||||
|
||||
// ListIndexes is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - ctx context.Context
|
||||
func (_e *DataCoordCatalog_Expecter) ListIndexes(ctx interface{}) *DataCoordCatalog_ListIndexes_Call {
|
||||
return &DataCoordCatalog_ListIndexes_Call{Call: _e.mock.On("ListIndexes", ctx)}
|
||||
}
|
||||
|
@ -1032,7 +1032,7 @@ type DataCoordCatalog_ListSegmentIndexes_Call struct {
|
|||
}
|
||||
|
||||
// ListSegmentIndexes is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - ctx context.Context
|
||||
func (_e *DataCoordCatalog_Expecter) ListSegmentIndexes(ctx interface{}) *DataCoordCatalog_ListSegmentIndexes_Call {
|
||||
return &DataCoordCatalog_ListSegmentIndexes_Call{Call: _e.mock.On("ListSegmentIndexes", ctx)}
|
||||
}
|
||||
|
@ -1086,7 +1086,7 @@ type DataCoordCatalog_ListSegments_Call struct {
|
|||
}
|
||||
|
||||
// ListSegments is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - ctx context.Context
|
||||
func (_e *DataCoordCatalog_Expecter) ListSegments(ctx interface{}) *DataCoordCatalog_ListSegments_Call {
|
||||
return &DataCoordCatalog_ListSegments_Call{Call: _e.mock.On("ListSegments", ctx)}
|
||||
}
|
||||
|
@ -1128,8 +1128,8 @@ type DataCoordCatalog_MarkChannelAdded_Call struct {
|
|||
}
|
||||
|
||||
// MarkChannelAdded is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
func (_e *DataCoordCatalog_Expecter) MarkChannelAdded(ctx interface{}, channel interface{}) *DataCoordCatalog_MarkChannelAdded_Call {
|
||||
return &DataCoordCatalog_MarkChannelAdded_Call{Call: _e.mock.On("MarkChannelAdded", ctx, channel)}
|
||||
}
|
||||
|
@ -1171,8 +1171,8 @@ type DataCoordCatalog_MarkChannelDeleted_Call struct {
|
|||
}
|
||||
|
||||
// MarkChannelDeleted is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
func (_e *DataCoordCatalog_Expecter) MarkChannelDeleted(ctx interface{}, channel interface{}) *DataCoordCatalog_MarkChannelDeleted_Call {
|
||||
return &DataCoordCatalog_MarkChannelDeleted_Call{Call: _e.mock.On("MarkChannelDeleted", ctx, channel)}
|
||||
}
|
||||
|
@ -1214,9 +1214,9 @@ type DataCoordCatalog_SaveChannelCheckpoint_Call struct {
|
|||
}
|
||||
|
||||
// SaveChannelCheckpoint is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - vChannel string
|
||||
// - pos *msgpb.MsgPosition
|
||||
// - ctx context.Context
|
||||
// - vChannel string
|
||||
// - pos *msgpb.MsgPosition
|
||||
func (_e *DataCoordCatalog_Expecter) SaveChannelCheckpoint(ctx interface{}, vChannel interface{}, pos interface{}) *DataCoordCatalog_SaveChannelCheckpoint_Call {
|
||||
return &DataCoordCatalog_SaveChannelCheckpoint_Call{Call: _e.mock.On("SaveChannelCheckpoint", ctx, vChannel, pos)}
|
||||
}
|
||||
|
@ -1301,8 +1301,8 @@ type DataCoordCatalog_SaveDroppedSegmentsInBatch_Call struct {
|
|||
}
|
||||
|
||||
// SaveDroppedSegmentsInBatch is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - segments []*datapb.SegmentInfo
|
||||
// - ctx context.Context
|
||||
// - segments []*datapb.SegmentInfo
|
||||
func (_e *DataCoordCatalog_Expecter) SaveDroppedSegmentsInBatch(ctx interface{}, segments interface{}) *DataCoordCatalog_SaveDroppedSegmentsInBatch_Call {
|
||||
return &DataCoordCatalog_SaveDroppedSegmentsInBatch_Call{Call: _e.mock.On("SaveDroppedSegmentsInBatch", ctx, segments)}
|
||||
}
|
||||
|
@ -1344,7 +1344,7 @@ type DataCoordCatalog_SaveImportJob_Call struct {
|
|||
}
|
||||
|
||||
// SaveImportJob is a helper method to define mock.On call
|
||||
// - job *datapb.ImportJob
|
||||
// - job *datapb.ImportJob
|
||||
func (_e *DataCoordCatalog_Expecter) SaveImportJob(job interface{}) *DataCoordCatalog_SaveImportJob_Call {
|
||||
return &DataCoordCatalog_SaveImportJob_Call{Call: _e.mock.On("SaveImportJob", job)}
|
||||
}
|
||||
|
@ -1386,7 +1386,7 @@ type DataCoordCatalog_SaveImportTask_Call struct {
|
|||
}
|
||||
|
||||
// SaveImportTask is a helper method to define mock.On call
|
||||
// - task *datapb.ImportTaskV2
|
||||
// - task *datapb.ImportTaskV2
|
||||
func (_e *DataCoordCatalog_Expecter) SaveImportTask(task interface{}) *DataCoordCatalog_SaveImportTask_Call {
|
||||
return &DataCoordCatalog_SaveImportTask_Call{Call: _e.mock.On("SaveImportTask", task)}
|
||||
}
|
||||
|
@ -1428,7 +1428,7 @@ type DataCoordCatalog_SavePreImportTask_Call struct {
|
|||
}
|
||||
|
||||
// SavePreImportTask is a helper method to define mock.On call
|
||||
// - task *datapb.PreImportTask
|
||||
// - task *datapb.PreImportTask
|
||||
func (_e *DataCoordCatalog_Expecter) SavePreImportTask(task interface{}) *DataCoordCatalog_SavePreImportTask_Call {
|
||||
return &DataCoordCatalog_SavePreImportTask_Call{Call: _e.mock.On("SavePreImportTask", task)}
|
||||
}
|
||||
|
@ -1470,8 +1470,8 @@ type DataCoordCatalog_ShouldDropChannel_Call struct {
|
|||
}
|
||||
|
||||
// ShouldDropChannel is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
// - ctx context.Context
|
||||
// - channel string
|
||||
func (_e *DataCoordCatalog_Expecter) ShouldDropChannel(ctx interface{}, channel interface{}) *DataCoordCatalog_ShouldDropChannel_Call {
|
||||
return &DataCoordCatalog_ShouldDropChannel_Call{Call: _e.mock.On("ShouldDropChannel", ctx, channel)}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -111,9 +111,9 @@ type MockProxyClient_GetComponentStates_Call struct {
|
|||
}
|
||||
|
||||
// GetComponentStates is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *milvuspb.GetComponentStatesRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *milvuspb.GetComponentStatesRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) GetComponentStates(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_GetComponentStates_Call {
|
||||
return &MockProxyClient_GetComponentStates_Call{Call: _e.mock.On("GetComponentStates",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -181,9 +181,9 @@ type MockProxyClient_GetDdChannel_Call struct {
|
|||
}
|
||||
|
||||
// GetDdChannel is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.GetDdChannelRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.GetDdChannelRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) GetDdChannel(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_GetDdChannel_Call {
|
||||
return &MockProxyClient_GetDdChannel_Call{Call: _e.mock.On("GetDdChannel",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -251,9 +251,9 @@ type MockProxyClient_GetImportProgress_Call struct {
|
|||
}
|
||||
|
||||
// GetImportProgress is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.GetImportProgressRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.GetImportProgressRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) GetImportProgress(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_GetImportProgress_Call {
|
||||
return &MockProxyClient_GetImportProgress_Call{Call: _e.mock.On("GetImportProgress",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -321,9 +321,9 @@ type MockProxyClient_GetProxyMetrics_Call struct {
|
|||
}
|
||||
|
||||
// GetProxyMetrics is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *milvuspb.GetMetricsRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *milvuspb.GetMetricsRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) GetProxyMetrics(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_GetProxyMetrics_Call {
|
||||
return &MockProxyClient_GetProxyMetrics_Call{Call: _e.mock.On("GetProxyMetrics",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -391,9 +391,9 @@ type MockProxyClient_GetStatisticsChannel_Call struct {
|
|||
}
|
||||
|
||||
// GetStatisticsChannel is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.GetStatisticsChannelRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.GetStatisticsChannelRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) GetStatisticsChannel(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_GetStatisticsChannel_Call {
|
||||
return &MockProxyClient_GetStatisticsChannel_Call{Call: _e.mock.On("GetStatisticsChannel",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -461,9 +461,9 @@ type MockProxyClient_ImportV2_Call struct {
|
|||
}
|
||||
|
||||
// ImportV2 is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.ImportRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.ImportRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) ImportV2(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_ImportV2_Call {
|
||||
return &MockProxyClient_ImportV2_Call{Call: _e.mock.On("ImportV2",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -531,9 +531,9 @@ type MockProxyClient_InvalidateCollectionMetaCache_Call struct {
|
|||
}
|
||||
|
||||
// InvalidateCollectionMetaCache is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.InvalidateCollMetaCacheRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.InvalidateCollMetaCacheRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) InvalidateCollectionMetaCache(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_InvalidateCollectionMetaCache_Call {
|
||||
return &MockProxyClient_InvalidateCollectionMetaCache_Call{Call: _e.mock.On("InvalidateCollectionMetaCache",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -601,9 +601,9 @@ type MockProxyClient_InvalidateCredentialCache_Call struct {
|
|||
}
|
||||
|
||||
// InvalidateCredentialCache is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.InvalidateCredCacheRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.InvalidateCredCacheRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) InvalidateCredentialCache(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_InvalidateCredentialCache_Call {
|
||||
return &MockProxyClient_InvalidateCredentialCache_Call{Call: _e.mock.On("InvalidateCredentialCache",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -671,9 +671,9 @@ type MockProxyClient_ListClientInfos_Call struct {
|
|||
}
|
||||
|
||||
// ListClientInfos is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.ListClientInfosRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.ListClientInfosRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) ListClientInfos(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_ListClientInfos_Call {
|
||||
return &MockProxyClient_ListClientInfos_Call{Call: _e.mock.On("ListClientInfos",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -741,9 +741,9 @@ type MockProxyClient_ListImports_Call struct {
|
|||
}
|
||||
|
||||
// ListImports is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.ListImportsRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *internalpb.ListImportsRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) ListImports(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_ListImports_Call {
|
||||
return &MockProxyClient_ListImports_Call{Call: _e.mock.On("ListImports",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -811,9 +811,9 @@ type MockProxyClient_RefreshPolicyInfoCache_Call struct {
|
|||
}
|
||||
|
||||
// RefreshPolicyInfoCache is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.RefreshPolicyInfoCacheRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.RefreshPolicyInfoCacheRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) RefreshPolicyInfoCache(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_RefreshPolicyInfoCache_Call {
|
||||
return &MockProxyClient_RefreshPolicyInfoCache_Call{Call: _e.mock.On("RefreshPolicyInfoCache",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -881,9 +881,9 @@ type MockProxyClient_SetRates_Call struct {
|
|||
}
|
||||
|
||||
// SetRates is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.SetRatesRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.SetRatesRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) SetRates(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_SetRates_Call {
|
||||
return &MockProxyClient_SetRates_Call{Call: _e.mock.On("SetRates",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
@ -951,9 +951,9 @@ type MockProxyClient_UpdateCredentialCache_Call struct {
|
|||
}
|
||||
|
||||
// UpdateCredentialCache is a helper method to define mock.On call
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.UpdateCredCacheRequest
|
||||
// - opts ...grpc.CallOption
|
||||
// - ctx context.Context
|
||||
// - in *proxypb.UpdateCredCacheRequest
|
||||
// - opts ...grpc.CallOption
|
||||
func (_e *MockProxyClient_Expecter) UpdateCredentialCache(ctx interface{}, in interface{}, opts ...interface{}) *MockProxyClient_UpdateCredentialCache_Call {
|
||||
return &MockProxyClient_UpdateCredentialCache_Call{Call: _e.mock.On("UpdateCredentialCache",
|
||||
append([]interface{}{ctx, in}, opts...)...)}
|
||||
|
|
|
@ -652,7 +652,7 @@ func GenerateJSONFile(t *testing.T, filePath string, schema *schemapb.Collection
|
|||
jsonBytes, err := json.Marshal(rows)
|
||||
assert.NoError(t, err)
|
||||
|
||||
err = os.WriteFile(filePath, jsonBytes, 0644) // nolint
|
||||
err = os.WriteFile(filePath, jsonBytes, 0o644) // nolint
|
||||
assert.NoError(t, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue