Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add gather_id to DisaggTaskMeta #1147

Merged
merged 2 commits into from
Jul 5, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
184 changes: 110 additions & 74 deletions pkg/disaggregated/disaggregated.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion proto/disaggregated.proto
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ message GetDisaggConfigResponse {

message DisaggTaskMeta {
uint64 start_ts = 1; // start ts of a query
// query_ts + server_id + local_query_id to represent a global unique query.
// gather_id + query_ts + server_id + local_query_id to represent a global unique query.
uint64 query_ts = 2; // timestamp when start to execute query, used for TiFlash miniTSO schedule.
uint64 server_id = 3; // TiDB server id
uint64 local_query_id = 4; // unique local query_id if tidb don't restart.
int64 task_id = 5; // if task id is -1 , it indicates a tidb task.
string executor_id = 6; // the exectuor id
uint32 keyspace_id = 7; // keyspace id of the request
kvrpcpb.APIVersion api_version = 8; // API version of the request
int64 gather_id = 9;
JaySon-Huang marked this conversation as resolved.
Show resolved Hide resolved
}

message DisaggReadError {
Expand Down
5 changes: 5 additions & 0 deletions scripts/proto.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4263,6 +4263,11 @@
"id": 8,
"name": "api_version",
"type": "kvrpcpb.APIVersion"
},
{
"id": 9,
"name": "gather_id",
"type": "int64"
}
]
},
Expand Down