fix(protocol): fence gateway work recovery

This commit is contained in:
sechmachine
2026-08-13 07:43:42 +07:00
parent 8eacc4fda9
commit 6e18bc9ee6
21 changed files with 572 additions and 146 deletions
+7 -2
View File
@@ -205,8 +205,10 @@ message GatewayQualityWorkRequest {
string gateway_id = 3;
uint64 reconnect_sequence = 4;
string operation_id = 5;
uint64 revision = 6;
optional uint64 revision = 6;
optional uint64 current_applied_revision = 7;
string acquisition = 8;
optional uint64 lease_generation = 9;
}
message GatewayQualityWork {
@@ -219,6 +221,7 @@ message GatewayQualityWork {
google.protobuf.Timestamp lease_expires_at = 7;
SelectedSessionDescriptor selected_descriptor = 8;
optional uint64 current_applied_revision = 9;
uint64 lease_generation = 10;
}
message GatewayQualityAck {
@@ -229,8 +232,9 @@ message GatewayQualityAck {
string operation_id = 5;
uint64 revision = 6;
string outcome = 7;
uint64 current_applied_revision = 8;
optional uint64 current_applied_revision = 8;
string failure_code = 9;
uint64 lease_generation = 10;
}
message GatewayStopWork {
@@ -248,6 +252,7 @@ message GatewayStopWorkRequest {
string gateway_id = 3;
uint64 reconnect_sequence = 4;
string operation_id = 5;
string acquisition = 6;
}
message GatewayStopAck {