mirror of https://github.com/milvus-io/milvus.git
fix: CreateStatsRequest change storage_version to 25 consistent with 2.5 (#41217)
fix: CreateStatsRequest change storage_version to 25 consistent with 2.5 relate-pr:https://github.com/milvus-io/milvus/pull/38039 issue: https://github.com/milvus-io/milvus/issues/36995 Signed-off-by: Xianhui.Lin <xianhui.lin@zilliz.com>pull/41237/head
parent
7d946af00f
commit
144911aec6
|
@ -246,12 +246,12 @@ func (st *statsTask) PreCheck(ctx context.Context, dependency *taskScheduler) bo
|
|||
// update version after check
|
||||
TaskVersion: statsMeta.GetVersion() + 1,
|
||||
BinlogMaxSize: Params.DataNodeCfg.BinLogMaxSize.GetAsUint64(),
|
||||
StorageVersion: segment.StorageVersion,
|
||||
TaskSlot: st.taskSlot,
|
||||
EnableJsonKeyStats: Params.CommonCfg.EnabledJSONKeyStats.GetAsBool(),
|
||||
JsonKeyStatsTantivyMemory: Params.DataCoordCfg.JSONKeyStatsMemoryBudgetInTantivy.GetAsInt64(),
|
||||
JsonKeyStatsDataFormat: 1,
|
||||
EnableJsonKeyStatsInSort: Params.DataCoordCfg.EnabledJSONKeyStatsInSort.GetAsBool(),
|
||||
TaskSlot: st.taskSlot,
|
||||
StorageVersion: segment.StorageVersion,
|
||||
}
|
||||
|
||||
log.Info("stats task pre check successfully", zap.String("subJobType", st.subJobType.String()),
|
||||
|
|
|
@ -136,8 +136,8 @@ message CreateStatsRequest {
|
|||
int64 json_key_stats_tantivy_memory = 21;
|
||||
int64 json_key_stats_data_format = 22;
|
||||
bool enable_json_key_stats_in_sort = 23;
|
||||
int64 storage_version = 24;
|
||||
int64 task_slot = 25;
|
||||
int64 task_slot = 24;
|
||||
int64 storage_version = 25;
|
||||
}
|
||||
|
||||
message CreateJobV2Request {
|
||||
|
|
|
@ -829,8 +829,8 @@ type CreateStatsRequest struct {
|
|||
JsonKeyStatsTantivyMemory int64 `protobuf:"varint,21,opt,name=json_key_stats_tantivy_memory,json=jsonKeyStatsTantivyMemory,proto3" json:"json_key_stats_tantivy_memory,omitempty"`
|
||||
JsonKeyStatsDataFormat int64 `protobuf:"varint,22,opt,name=json_key_stats_data_format,json=jsonKeyStatsDataFormat,proto3" json:"json_key_stats_data_format,omitempty"`
|
||||
EnableJsonKeyStatsInSort bool `protobuf:"varint,23,opt,name=enable_json_key_stats_in_sort,json=enableJsonKeyStatsInSort,proto3" json:"enable_json_key_stats_in_sort,omitempty"`
|
||||
StorageVersion int64 `protobuf:"varint,24,opt,name=storage_version,json=storageVersion,proto3" json:"storage_version,omitempty"`
|
||||
TaskSlot int64 `protobuf:"varint,25,opt,name=task_slot,json=taskSlot,proto3" json:"task_slot,omitempty"`
|
||||
TaskSlot int64 `protobuf:"varint,24,opt,name=task_slot,json=taskSlot,proto3" json:"task_slot,omitempty"`
|
||||
StorageVersion int64 `protobuf:"varint,25,opt,name=storage_version,json=storageVersion,proto3" json:"storage_version,omitempty"`
|
||||
}
|
||||
|
||||
func (x *CreateStatsRequest) Reset() {
|
||||
|
@ -1026,16 +1026,16 @@ func (x *CreateStatsRequest) GetEnableJsonKeyStatsInSort() bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func (x *CreateStatsRequest) GetStorageVersion() int64 {
|
||||
func (x *CreateStatsRequest) GetTaskSlot() int64 {
|
||||
if x != nil {
|
||||
return x.StorageVersion
|
||||
return x.TaskSlot
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *CreateStatsRequest) GetTaskSlot() int64 {
|
||||
func (x *CreateStatsRequest) GetStorageVersion() int64 {
|
||||
if x != nil {
|
||||
return x.TaskSlot
|
||||
return x.StorageVersion
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
@ -2118,11 +2118,11 @@ var file_worker_proto_rawDesc = []byte{
|
|||
0x73, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x5f, 0x69, 0x6e,
|
||||
0x5f, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x08, 0x52, 0x18, 0x65, 0x6e, 0x61,
|
||||
0x62, 0x6c, 0x65, 0x4a, 0x73, 0x6f, 0x6e, 0x4b, 0x65, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x49,
|
||||
0x6e, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65,
|
||||
0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x18, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e,
|
||||
0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1b,
|
||||
0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x6c, 0x6f, 0x74, 0x18, 0x19, 0x20, 0x01, 0x28,
|
||||
0x03, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x6c, 0x6f, 0x74, 0x22, 0xf8, 0x02, 0x0a, 0x12,
|
||||
0x6e, 0x53, 0x6f, 0x72, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x73, 0x6c,
|
||||
0x6f, 0x74, 0x18, 0x18, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x53, 0x6c,
|
||||
0x6f, 0x74, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x5f, 0x76, 0x65,
|
||||
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0e, 0x73, 0x74, 0x6f,
|
||||
0x72, 0x61, 0x67, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xf8, 0x02, 0x0a, 0x12,
|
||||
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x56, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||
0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x44, 0x18,
|
||||
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x44,
|
||||
|
|
Loading…
Reference in New Issue