Skip to content

Commit 8da65e9

Browse files
mregrockgithub-actions[bot]
authored andcommitted
Check version ydb cli (#17888)
1 parent c25394c commit 8da65e9

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

.github/last_commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
04801c0ba7d7f9f55f7bd7681dd03a87c221d8c2
1+
984787760ea6d7f0bbf954dc56d979d45d3aaf61

src/api/grpc/draft/ydb_dynamic_config_v1.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,7 @@ service DynamicConfigService {
4949

5050
// Generate dynamic config based on cluster's static config.
5151
rpc FetchStartupConfig(DynamicConfig.FetchStartupConfigRequest) returns (DynamicConfig.FetchStartupConfigResponse);
52+
53+
// Get configuration version of nodes.
54+
rpc GetConfigurationVersion(DynamicConfig.GetConfigurationVersionRequest) returns (DynamicConfig.GetConfigurationVersionResponse);
5255
}

src/api/protos/draft/ydb_dynamic_config.proto

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,42 @@ message FetchStartupConfigResult {
242242
// YAML document with generated dynamic config
243243
string config = 1;
244244
}
245+
246+
message GetConfigurationVersionRequest {
247+
Ydb.Operations.OperationParams operation_params = 1;
248+
// List nodes with different configuration versions
249+
bool list_nodes = 2;
250+
}
251+
252+
message GetConfigurationVersionResponse {
253+
// Result of request will be inside operation.
254+
Ydb.Operations.Operation operation = 1;
255+
}
256+
257+
message NodeInfo {
258+
message Endpoint {
259+
// Node's hostname
260+
string hostname = 1;
261+
// Node's port
262+
uint32 port = 2;
263+
}
264+
// Node's id
265+
uint32 node_id = 1;
266+
// Node's endpoint
267+
Endpoint endpoint = 2;
268+
}
269+
270+
message GetConfigurationVersionResult {
271+
// Count of nodes with V1 configuration version
272+
uint32 v1_nodes = 1;
273+
// List of nodes with V1 configuration version
274+
repeated NodeInfo v1_nodes_list = 2;
275+
// Count of nodes with V2 configuration version
276+
uint32 v2_nodes = 3;
277+
// List of nodes with V2 configuration version
278+
repeated NodeInfo v2_nodes_list = 4;
279+
// Count of nodes with unknown configuration version
280+
uint32 unknown_nodes = 5;
281+
// List of nodes with unknown configuration version
282+
repeated NodeInfo unknown_nodes_list = 6;
283+
}

0 commit comments

Comments
 (0)