2021-01-14 06:24:14 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package milvus.proto.data;
|
|
|
|
|
2021-04-22 06:45:57 +00:00
|
|
|
option go_package = "github.com/milvus-io/milvus/internal/proto/datapb";
|
2021-01-14 06:24:14 +00:00
|
|
|
|
|
|
|
import "common.proto";
|
|
|
|
import "internal.proto";
|
2021-01-22 03:07:07 +00:00
|
|
|
import "milvus.proto";
|
2021-04-09 01:55:04 +00:00
|
|
|
import "schema.proto";
|
2021-01-14 06:24:14 +00:00
|
|
|
|
2021-06-21 10:22:13 +00:00
|
|
|
service DataCoord {
|
2021-03-12 06:22:09 +00:00
|
|
|
rpc GetComponentStates(internal.GetComponentStatesRequest) returns (internal.ComponentStates) {}
|
|
|
|
rpc GetTimeTickChannel(internal.GetTimeTickChannelRequest) returns(milvus.StringResponse) {}
|
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
|
|
|
|
2021-06-23 08:56:11 +00:00
|
|
|
rpc Flush(FlushRequest) returns (FlushResponse) {}
|
2021-03-12 06:22:09 +00:00
|
|
|
|
|
|
|
rpc AssignSegmentID(AssignSegmentIDRequest) returns (AssignSegmentIDResponse) {}
|
|
|
|
|
|
|
|
rpc GetSegmentInfo(GetSegmentInfoRequest) returns (GetSegmentInfoResponse) {}
|
|
|
|
rpc GetSegmentStates(GetSegmentStatesRequest) returns (GetSegmentStatesResponse) {}
|
|
|
|
rpc GetInsertBinlogPaths(GetInsertBinlogPathsRequest) returns (GetInsertBinlogPathsResponse) {}
|
|
|
|
|
|
|
|
rpc GetCollectionStatistics(GetCollectionStatisticsRequest) returns (GetCollectionStatisticsResponse) {}
|
|
|
|
rpc GetPartitionStatistics(GetPartitionStatisticsRequest) returns (GetPartitionStatisticsResponse) {}
|
|
|
|
|
|
|
|
rpc GetSegmentInfoChannel(GetSegmentInfoChannelRequest) returns (milvus.StringResponse){}
|
2021-05-20 03:34:45 +00:00
|
|
|
|
|
|
|
rpc SaveBinlogPaths(SaveBinlogPathsRequest) returns (common.Status){}
|
2021-06-07 06:16:36 +00:00
|
|
|
rpc GetRecoveryInfo(GetRecoveryInfoRequest) returns (GetRecoveryInfoResponse){}
|
2021-07-02 03:16:20 +00:00
|
|
|
rpc GetFlushedSegments(GetFlushedSegmentsRequest) returns(GetFlushedSegmentsResponse){}
|
2021-09-01 02:13:15 +00:00
|
|
|
|
|
|
|
// https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy
|
|
|
|
rpc GetMetrics(milvus.GetMetricsRequest) returns (milvus.GetMetricsResponse) {}
|
2021-11-05 14:25:00 +00:00
|
|
|
rpc CompleteCompaction(CompactionResult) returns (common.Status) {}
|
2021-11-09 06:47:02 +00:00
|
|
|
rpc ManualCompaction(milvus.ManualCompactionRequest) returns (milvus.ManualCompactionResponse) {}
|
|
|
|
rpc GetCompactionState(milvus.GetCompactionStateRequest) returns (milvus.GetCompactionStateResponse) {}
|
|
|
|
rpc GetCompactionStateWithPlans(milvus.GetCompactionPlansRequest) returns (milvus.GetCompactionPlansResponse) {}
|
2021-11-10 16:54:45 +00:00
|
|
|
|
|
|
|
rpc WatchChannels(WatchChannelsRequest) returns (WatchChannelsResponse) {}
|
2021-11-23 02:55:14 +00:00
|
|
|
rpc GetFlushState(milvus.GetFlushStateRequest) returns (milvus.GetFlushStateResponse) {}
|
2021-11-29 14:35:41 +00:00
|
|
|
rpc DropVirtualChannel(DropVirtualChannelRequest) returns (DropVirtualChannelResponse) {}
|
2022-03-09 10:33:59 +00:00
|
|
|
|
|
|
|
// https://wiki.lfaidata.foundation/display/MIL/MEP+24+--+Support+bulk+load
|
2022-03-22 07:11:24 +00:00
|
|
|
rpc Import(ImportTask) returns (ImportTaskResponse) {}
|
2021-03-12 06:22:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
service DataNode {
|
|
|
|
rpc GetComponentStates(internal.GetComponentStatesRequest) returns (internal.ComponentStates) {}
|
|
|
|
rpc GetStatisticsChannel(internal.GetStatisticsChannelRequest) returns(milvus.StringResponse){}
|
|
|
|
|
|
|
|
rpc WatchDmChannels(WatchDmChannelsRequest) returns (common.Status) {}
|
|
|
|
rpc FlushSegments(FlushSegmentsRequest) returns(common.Status) {}
|
2021-09-01 02:13:15 +00:00
|
|
|
|
|
|
|
// https://wiki.lfaidata.foundation/display/MIL/MEP+8+--+Add+metrics+for+proxy
|
|
|
|
rpc GetMetrics(milvus.GetMetricsRequest) returns (milvus.GetMetricsResponse) {}
|
2021-11-05 14:25:00 +00:00
|
|
|
rpc Compaction(CompactionPlan) returns (common.Status) {}
|
2022-03-09 10:33:59 +00:00
|
|
|
|
|
|
|
// https://wiki.lfaidata.foundation/display/MIL/MEP+24+--+Support+bulk+load
|
2022-03-11 09:13:59 +00:00
|
|
|
rpc Import(ImportTask) returns(common.Status) {}
|
2021-03-12 06:22:09 +00:00
|
|
|
}
|
2021-01-14 06:24:14 +00:00
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message FlushRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
int64 dbID = 2;
|
|
|
|
int64 collectionID = 4;
|
|
|
|
}
|
2021-01-14 06:24:14 +00:00
|
|
|
|
2021-06-23 08:56:11 +00:00
|
|
|
message FlushResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
int64 dbID = 2;
|
|
|
|
int64 collectionID = 3;
|
|
|
|
repeated int64 segmentIDs = 4;
|
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message SegmentIDRequest {
|
2021-01-18 11:32:08 +00:00
|
|
|
uint32 count = 1;
|
2021-03-12 06:22:09 +00:00
|
|
|
string channel_name = 2;
|
|
|
|
int64 collectionID = 3;
|
2021-01-14 06:24:14 +00:00
|
|
|
int64 partitionID = 4;
|
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message AssignSegmentIDRequest {
|
2021-01-14 06:24:14 +00:00
|
|
|
int64 nodeID = 1;
|
|
|
|
string peer_role = 2;
|
2021-03-12 06:22:09 +00:00
|
|
|
repeated SegmentIDRequest segmentIDRequests = 3;
|
2021-01-14 06:24:14 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message SegmentIDAssignment {
|
2021-01-14 06:24:14 +00:00
|
|
|
int64 segID = 1;
|
2021-03-12 06:22:09 +00:00
|
|
|
string channel_name = 2;
|
2021-01-14 06:24:14 +00:00
|
|
|
uint32 count = 3;
|
|
|
|
int64 collectionID = 4;
|
|
|
|
int64 partitionID = 5;
|
|
|
|
uint64 expire_time = 6;
|
|
|
|
common.Status status = 7;
|
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message AssignSegmentIDResponse {
|
|
|
|
repeated SegmentIDAssignment segIDAssignments = 1;
|
2021-01-19 04:10:49 +00:00
|
|
|
common.Status status = 2;
|
2021-01-14 06:24:14 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetSegmentStatesRequest {
|
2021-01-16 07:06:19 +00:00
|
|
|
common.MsgBase base = 1;
|
2021-03-12 06:22:09 +00:00
|
|
|
repeated int64 segmentIDs = 2;
|
2021-02-02 02:58:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SegmentStateInfo {
|
|
|
|
int64 segmentID = 1;
|
2021-02-03 10:55:00 +00:00
|
|
|
common.SegmentState state = 2;
|
2021-05-21 06:51:25 +00:00
|
|
|
internal.MsgPosition start_position = 3;
|
|
|
|
internal.MsgPosition end_position = 4;
|
|
|
|
common.Status status = 5;
|
2021-01-14 06:24:14 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetSegmentStatesResponse {
|
2021-02-02 02:58:39 +00:00
|
|
|
common.Status status = 1;
|
|
|
|
repeated SegmentStateInfo states = 2;
|
2021-01-14 06:24:14 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetSegmentInfoRequest {
|
2021-01-16 07:06:19 +00:00
|
|
|
common.MsgBase base = 1;
|
2021-03-12 06:22:09 +00:00
|
|
|
repeated int64 segmentIDs = 2;
|
2021-01-14 06:24:14 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetSegmentInfoResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
repeated SegmentInfo infos = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetInsertBinlogPathsRequest {
|
2021-01-20 01:36:50 +00:00
|
|
|
common.MsgBase base = 1;
|
2021-03-12 06:22:09 +00:00
|
|
|
int64 segmentID = 2;
|
2021-01-20 01:36:50 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetInsertBinlogPathsResponse {
|
|
|
|
repeated int64 fieldIDs = 1;
|
|
|
|
repeated internal.StringList paths = 2;
|
|
|
|
common.Status status = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetCollectionStatisticsRequest {
|
2021-01-22 03:07:07 +00:00
|
|
|
common.MsgBase base = 1;
|
2021-02-02 06:25:58 +00:00
|
|
|
int64 dbID = 2;
|
|
|
|
int64 collectionID = 3;
|
2021-01-22 03:07:07 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetCollectionStatisticsResponse {
|
2021-01-22 03:07:07 +00:00
|
|
|
repeated common.KeyValuePair stats = 1;
|
|
|
|
common.Status status = 2;
|
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetPartitionStatisticsRequest{
|
2021-01-22 03:07:07 +00:00
|
|
|
common.MsgBase base = 1;
|
2021-02-02 06:25:58 +00:00
|
|
|
int64 dbID = 2;
|
|
|
|
int64 collectionID = 3;
|
|
|
|
int64 partitionID = 4;
|
2021-01-22 03:07:07 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetPartitionStatisticsResponse {
|
2021-01-22 03:07:07 +00:00
|
|
|
repeated common.KeyValuePair stats = 1;
|
|
|
|
common.Status status = 2;
|
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message GetSegmentInfoChannelRequest {
|
2021-01-22 01:36:40 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 07:35:37 +00:00
|
|
|
|
2021-06-04 01:57:54 +00:00
|
|
|
message VchannelInfo {
|
|
|
|
int64 collectionID = 1;
|
|
|
|
string channelName = 2;
|
2021-06-04 08:29:43 +00:00
|
|
|
internal.MsgPosition seek_position = 3;
|
2021-06-08 11:25:37 +00:00
|
|
|
repeated SegmentInfo unflushedSegments = 4;
|
2021-10-08 11:09:12 +00:00
|
|
|
repeated SegmentInfo flushedSegments = 5;
|
2021-11-25 06:25:15 +00:00
|
|
|
repeated SegmentInfo dropped_segments = 6;
|
2021-06-04 01:57:54 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message WatchDmChannelsRequest {
|
|
|
|
common.MsgBase base = 1;
|
2021-06-04 01:57:54 +00:00
|
|
|
repeated VchannelInfo vchannels = 2;
|
2021-01-22 01:36:40 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message FlushSegmentsRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
int64 dbID = 2;
|
|
|
|
int64 collectionID = 3;
|
2021-10-20 07:02:36 +00:00
|
|
|
repeated int64 segmentIDs = 4; // segments to flush
|
|
|
|
repeated int64 markSegmentIDs = 5; // segments to clean buffer and mark segment position, but NOT flushed
|
2021-01-22 01:36:40 +00:00
|
|
|
}
|
|
|
|
|
2021-03-12 06:22:09 +00:00
|
|
|
message SegmentMsg{
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
SegmentInfo segment = 2;
|
|
|
|
}
|
2021-01-25 07:17:17 +00:00
|
|
|
|
2021-04-09 01:55:04 +00:00
|
|
|
message CollectionInfo {
|
|
|
|
int64 ID = 1;
|
|
|
|
schema.CollectionSchema schema = 2;
|
|
|
|
repeated int64 partitions = 3;
|
2021-09-27 12:34:03 +00:00
|
|
|
repeated common.KeyDataPair start_positions = 4;
|
2021-04-09 01:55:04 +00:00
|
|
|
}
|
2021-09-27 12:34:03 +00:00
|
|
|
|
2021-04-09 01:55:04 +00:00
|
|
|
message SegmentInfo {
|
|
|
|
int64 ID = 1;
|
|
|
|
int64 collectionID = 2;
|
|
|
|
int64 partitionID = 3;
|
|
|
|
string insert_channel = 4;
|
2021-06-04 03:45:45 +00:00
|
|
|
int64 num_of_rows = 5;
|
2021-05-21 06:51:25 +00:00
|
|
|
common.SegmentState state = 6;
|
2021-08-19 05:00:12 +00:00
|
|
|
int64 max_row_num = 7;
|
|
|
|
uint64 last_expire_time = 8;
|
|
|
|
internal.MsgPosition start_position = 9;
|
|
|
|
internal.MsgPosition dml_position = 10;
|
2021-10-18 13:27:09 +00:00
|
|
|
// binlogs consist of insert binlogs
|
2021-08-19 05:00:12 +00:00
|
|
|
repeated FieldBinlog binlogs = 11;
|
2021-10-15 10:24:39 +00:00
|
|
|
repeated FieldBinlog statslogs = 12;
|
2021-12-19 12:00:42 +00:00
|
|
|
// deltalogs consists of delete binlogs. FieldID is not used yet since delete is always applied on primary key
|
|
|
|
repeated FieldBinlog deltalogs = 13;
|
2021-11-05 14:25:00 +00:00
|
|
|
|
|
|
|
bool createdByCompaction = 14;
|
|
|
|
repeated int64 compactionFrom = 15;
|
2021-11-16 06:23:21 +00:00
|
|
|
uint64 dropped_at = 16; // timestamp when segment marked drop
|
2021-04-09 01:55:04 +00:00
|
|
|
}
|
2021-05-20 03:34:45 +00:00
|
|
|
|
2021-06-11 11:15:48 +00:00
|
|
|
message SegmentStartPosition {
|
2021-05-21 11:38:58 +00:00
|
|
|
internal.MsgPosition start_position = 1;
|
2021-06-11 11:15:48 +00:00
|
|
|
int64 segmentID = 2;
|
2021-05-21 11:38:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message SaveBinlogPathsRequest {
|
|
|
|
common.MsgBase base = 1;
|
2021-05-20 03:34:45 +00:00
|
|
|
int64 segmentID = 2;
|
|
|
|
int64 collectionID = 3;
|
2021-08-19 05:00:12 +00:00
|
|
|
repeated FieldBinlog field2BinlogPaths = 4;
|
2021-06-08 11:25:37 +00:00
|
|
|
repeated CheckPoint checkPoints = 5;
|
2021-10-15 10:24:39 +00:00
|
|
|
repeated SegmentStartPosition start_positions = 6;
|
2021-06-11 11:15:48 +00:00
|
|
|
bool flushed = 7;
|
2021-10-18 16:26:35 +00:00
|
|
|
repeated FieldBinlog field2StatslogPaths = 8;
|
2021-12-19 12:00:42 +00:00
|
|
|
repeated FieldBinlog deltalogs = 9;
|
2021-11-09 14:27:37 +00:00
|
|
|
bool dropped = 10;
|
2021-06-03 10:34:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message CheckPoint {
|
|
|
|
int64 segmentID = 1;
|
2021-06-04 03:45:45 +00:00
|
|
|
internal.MsgPosition position = 2;
|
|
|
|
int64 num_of_rows = 3;
|
2021-06-07 06:16:36 +00:00
|
|
|
}
|
|
|
|
|
2021-10-18 16:26:35 +00:00
|
|
|
message DeltaLogInfo {
|
|
|
|
uint64 record_entries = 1;
|
|
|
|
uint64 timestamp_from = 2;
|
|
|
|
uint64 timestamp_to = 3;
|
|
|
|
string delta_log_path = 4;
|
|
|
|
int64 delta_log_size = 5;
|
|
|
|
}
|
|
|
|
|
2021-05-25 07:35:37 +00:00
|
|
|
message DataNodeTtMsg {
|
|
|
|
common.MsgBase base =1;
|
|
|
|
string channel_name = 2;
|
|
|
|
uint64 timestamp = 3;
|
2021-12-15 02:53:16 +00:00
|
|
|
repeated SegmentStats segments_stats = 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SegmentStats {
|
|
|
|
int64 SegmentID = 1;
|
|
|
|
int64 NumRows = 2;
|
2021-05-25 07:35:37 +00:00
|
|
|
}
|
|
|
|
|
2021-05-25 08:22:02 +00:00
|
|
|
enum ChannelWatchState {
|
2022-03-03 10:43:56 +00:00
|
|
|
Uncomplete = 0; // deprecated, keep it for compatibility
|
|
|
|
Complete = 1; // deprecated, keep it for compatibility
|
|
|
|
ToWatch = 2;
|
|
|
|
WatchSuccess = 3;
|
|
|
|
WatchFailure = 4;
|
|
|
|
ToRelease = 5;
|
|
|
|
ReleaseSuccess = 6;
|
|
|
|
ReleaseFailure = 7;
|
2021-05-25 08:22:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message ChannelStatus {
|
|
|
|
string name = 1;
|
|
|
|
ChannelWatchState state=2;
|
2021-05-27 06:14:05 +00:00
|
|
|
int64 collectionID = 3;
|
2021-05-25 08:22:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message DataNodeInfo {
|
|
|
|
string address = 1;
|
|
|
|
int64 version = 2;
|
|
|
|
repeated ChannelStatus channels = 3;
|
|
|
|
}
|
|
|
|
|
2021-06-07 01:47:36 +00:00
|
|
|
message SegmentBinlogs {
|
|
|
|
int64 segmentID = 1;
|
|
|
|
repeated FieldBinlog fieldBinlogs = 2;
|
2021-09-07 03:35:18 +00:00
|
|
|
int64 num_of_rows = 3;
|
2021-10-22 06:31:13 +00:00
|
|
|
repeated FieldBinlog statslogs = 4;
|
2021-12-19 12:00:42 +00:00
|
|
|
repeated FieldBinlog deltalogs = 5;
|
2021-06-07 01:47:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message FieldBinlog{
|
|
|
|
int64 fieldID = 1;
|
2021-12-19 12:00:42 +00:00
|
|
|
repeated Binlog binlogs = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message Binlog {
|
|
|
|
int64 entries_num = 1;
|
|
|
|
uint64 timestamp_from = 2;
|
|
|
|
uint64 timestamp_to = 3;
|
|
|
|
string log_path = 4;
|
|
|
|
int64 log_size = 5;
|
2021-06-07 01:47:36 +00:00
|
|
|
}
|
|
|
|
|
2021-06-07 06:16:36 +00:00
|
|
|
message GetRecoveryInfoResponse {
|
2021-06-07 01:47:36 +00:00
|
|
|
common.Status status = 1;
|
2021-06-07 06:16:36 +00:00
|
|
|
repeated VchannelInfo channels = 2;
|
|
|
|
repeated SegmentBinlogs binlogs = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetRecoveryInfoRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
int64 collectionID = 2;
|
|
|
|
int64 partitionID = 3;
|
|
|
|
}
|
|
|
|
|
2021-07-02 03:16:20 +00:00
|
|
|
message GetFlushedSegmentsRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
int64 collectionID = 2;
|
|
|
|
int64 partitionID = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message GetFlushedSegmentsResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
repeated int64 segments = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message SegmentFlushCompletedMsg {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
SegmentInfo segment = 2;
|
|
|
|
}
|
|
|
|
|
2021-08-13 02:50:09 +00:00
|
|
|
message ChannelWatchInfo {
|
|
|
|
VchannelInfo vchan= 1;
|
|
|
|
int64 startTs = 2;
|
|
|
|
ChannelWatchState state = 3;
|
2022-03-03 10:43:56 +00:00
|
|
|
// the timeout ts, datanode shall do nothing after it
|
|
|
|
// if the timeout is not set(= 0), original infinite retry logic shall be applied
|
|
|
|
int64 timeoutTs = 4;
|
2021-08-13 02:50:09 +00:00
|
|
|
}
|
2021-08-24 07:51:51 +00:00
|
|
|
|
2021-10-20 03:58:35 +00:00
|
|
|
enum CompactionType {
|
|
|
|
UndefinedCompaction = 0;
|
|
|
|
InnerCompaction = 1;
|
|
|
|
MergeCompaction = 2;
|
2022-02-18 06:51:49 +00:00
|
|
|
MixCompaction = 3;
|
2021-10-20 03:58:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message CompactionSegmentBinlogs {
|
|
|
|
int64 segmentID = 1;
|
|
|
|
repeated FieldBinlog fieldBinlogs = 2;
|
|
|
|
repeated FieldBinlog field2StatslogPaths = 3;
|
2021-12-19 12:00:42 +00:00
|
|
|
repeated FieldBinlog deltalogs = 4;
|
2021-10-20 03:58:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message CompactionPlan {
|
|
|
|
int64 planID = 1;
|
2021-11-05 14:25:00 +00:00
|
|
|
repeated CompactionSegmentBinlogs segmentBinlogs = 2;
|
2021-10-20 03:58:35 +00:00
|
|
|
uint64 start_time = 3;
|
|
|
|
int32 timeout_in_seconds = 4;
|
|
|
|
CompactionType type = 5;
|
|
|
|
uint64 timetravel = 6;
|
2021-11-05 14:25:00 +00:00
|
|
|
string channel = 7;
|
2021-10-20 03:58:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
message CompactionResult {
|
|
|
|
int64 planID = 1;
|
|
|
|
int64 segmentID = 2;
|
|
|
|
int64 num_of_rows = 3;
|
|
|
|
repeated FieldBinlog insert_logs = 4;
|
|
|
|
repeated FieldBinlog field2StatslogPaths = 5;
|
2021-12-19 12:00:42 +00:00
|
|
|
repeated FieldBinlog deltalogs = 6;
|
2021-10-20 03:58:35 +00:00
|
|
|
}
|
|
|
|
|
2021-08-24 07:51:51 +00:00
|
|
|
// Deprecated
|
|
|
|
message SegmentFieldBinlogMeta {
|
|
|
|
int64 fieldID = 1;
|
|
|
|
string binlog_path = 2;
|
2021-11-09 06:47:02 +00:00
|
|
|
}
|
2021-11-10 16:54:45 +00:00
|
|
|
|
|
|
|
message WatchChannelsRequest {
|
|
|
|
int64 collectionID = 1;
|
|
|
|
repeated string channelNames = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message WatchChannelsResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
}
|
2021-11-29 14:35:41 +00:00
|
|
|
|
|
|
|
message DropVirtualChannelRequest {
|
|
|
|
common.MsgBase base = 1;
|
|
|
|
string channel_name = 2;
|
|
|
|
repeated DropVirtualChannelSegment segments = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DropVirtualChannelSegment {
|
|
|
|
int64 segmentID = 1;
|
|
|
|
int64 collectionID = 2;
|
|
|
|
repeated FieldBinlog field2BinlogPaths = 3;
|
|
|
|
repeated FieldBinlog field2StatslogPaths = 4;
|
2021-12-19 12:00:42 +00:00
|
|
|
repeated FieldBinlog deltalogs = 5;
|
2021-11-29 14:35:41 +00:00
|
|
|
internal.MsgPosition startPosition = 6;
|
|
|
|
internal.MsgPosition checkPoint = 7;
|
|
|
|
int64 numOfRows = 8;
|
|
|
|
}
|
|
|
|
|
|
|
|
message DropVirtualChannelResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
}
|
2022-03-09 10:33:59 +00:00
|
|
|
|
2022-03-11 09:13:59 +00:00
|
|
|
message ImportTask {
|
2022-03-09 10:33:59 +00:00
|
|
|
common.Status status = 1;
|
2022-03-31 05:51:28 +00:00
|
|
|
int64 collection_id = 2; // target collection ID
|
|
|
|
int64 partition_id = 3; // target partition ID
|
2022-03-11 09:13:59 +00:00
|
|
|
bool row_based = 4; // the file is row-based or column-based
|
|
|
|
int64 task_id = 5; // id of the task
|
|
|
|
repeated string files = 6; // file paths to be imported
|
|
|
|
repeated common.KeyValuePair infos = 7; // more informations about the task, bucket, etc.
|
2022-03-22 07:11:24 +00:00
|
|
|
}
|
|
|
|
|
2022-03-25 03:03:25 +00:00
|
|
|
message ImportTaskState {
|
|
|
|
common.ImportState stateCode = 1; // Import state code.
|
|
|
|
repeated int64 segments = 2; // Ids of segments created in import task.
|
|
|
|
repeated int64 row_ids = 3; // Row IDs for the newly inserted rows.
|
|
|
|
int64 row_count = 4; // # of rows added in the import task.
|
|
|
|
string error_message = 5; // Error message for the failed task.
|
|
|
|
}
|
|
|
|
|
|
|
|
message ImportTaskInfo {
|
|
|
|
int64 id = 1; // Task ID.
|
|
|
|
int64 request_id = 2; // Request ID of the import task.
|
|
|
|
int64 datanode_id = 3; // ID of DataNode that processes the task.
|
2022-03-31 05:51:28 +00:00
|
|
|
int64 collection_id = 4; // Collection ID for the import task.
|
|
|
|
int64 partition_id = 5; // Partition ID for the import task.
|
2022-03-25 03:03:25 +00:00
|
|
|
string bucket = 6; // Bucket for the import task.
|
|
|
|
bool row_based = 7; // Boolean indicating whether import files are row-based or column-based.
|
|
|
|
repeated string files = 8; // A list of files to import.
|
|
|
|
int64 create_ts = 9; // Timestamp when the import task is created.
|
2022-03-31 05:51:28 +00:00
|
|
|
ImportTaskState state = 10; // State of the import task.
|
2022-03-25 03:03:25 +00:00
|
|
|
}
|
|
|
|
|
2022-03-22 07:11:24 +00:00
|
|
|
message ImportTaskResponse {
|
|
|
|
common.Status status = 1;
|
|
|
|
int64 datanode_id = 2; // which datanode takes this task
|
2022-03-09 10:33:59 +00:00
|
|
|
}
|