feat: add ProcedureStatus::Poisoned (#229)

This commit is contained in:
Weny Xu
2025-04-07 15:53:11 +08:00
committed by GitHub
parent fb8e20ce29
commit 2be0f36b32
5 changed files with 73 additions and 57 deletions
+15 -14
View File
@@ -189,21 +189,21 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[]
"tHeader\"\200\001\n\027ProcedureDetailResponse\0220\n\006h" "tHeader\"\200\001\n\027ProcedureDetailResponse\0220\n\006h"
"eader\030\001 \001(\0132 .greptime.v1.meta.ResponseH" "eader\030\001 \001(\0132 .greptime.v1.meta.ResponseH"
"eader\0223\n\nprocedures\030\002 \003(\0132\037.greptime.v1." "eader\0223\n\nprocedures\030\002 \003(\0132\037.greptime.v1."
"meta.ProcedureMeta*h\n\017ProcedureStatus\022\013\n" "meta.ProcedureMeta*v\n\017ProcedureStatus\022\013\n"
"\007Running\020\000\022\010\n\004Done\020\001\022\014\n\010Retrying\020\002\022\n\n\006Fa" "\007Running\020\000\022\010\n\004Done\020\001\022\014\n\010Retrying\020\002\022\n\n\006Fa"
"iled\020\003\022\023\n\017PrepareRollback\020\004\022\017\n\013RollingBa" "iled\020\003\022\023\n\017PrepareRollback\020\004\022\017\n\013RollingBa"
"ck\020\0052\366\002\n\020ProcedureService\022Z\n\005query\022\'.gre" "ck\020\005\022\014\n\010Poisoned\020\0062\366\002\n\020ProcedureService\022"
"ptime.v1.meta.QueryProcedureRequest\032(.gr" "Z\n\005query\022\'.greptime.v1.meta.QueryProcedu"
"eptime.v1.meta.ProcedureStateResponse\022J\n" "reRequest\032(.greptime.v1.meta.ProcedureSt"
"\003ddl\022 .greptime.v1.meta.DdlTaskRequest\032!" "ateResponse\022J\n\003ddl\022 .greptime.v1.meta.Dd"
".greptime.v1.meta.DdlTaskResponse\022Z\n\007mig" "lTaskRequest\032!.greptime.v1.meta.DdlTaskR"
"rate\022&.greptime.v1.meta.MigrateRegionReq" "esponse\022Z\n\007migrate\022&.greptime.v1.meta.Mi"
"uest\032\'.greptime.v1.meta.MigrateRegionRes" "grateRegionRequest\032\'.greptime.v1.meta.Mi"
"ponse\022^\n\007details\022(.greptime.v1.meta.Proc" "grateRegionResponse\022^\n\007details\022(.greptim"
"edureDetailRequest\032).greptime.v1.meta.Pr" "e.v1.meta.ProcedureDetailRequest\032).grept"
"ocedureDetailResponseB<Z:github.com/Grep" "ime.v1.meta.ProcedureDetailResponseB<Z:g"
"timeTeam/greptime-proto/go/greptime/v1/m" "ithub.com/GreptimeTeam/greptime-proto/go"
"etab\006proto3" "/greptime/v1/metab\006proto3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_deps[3] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
@@ -212,7 +212,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmet
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto = {
false, false, 1371, descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto, false, false, 1385, descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto,
"greptime/v1/meta/procedure.proto", "greptime/v1/meta/procedure.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_deps, 3, 5, &descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fprocedure_2eproto_deps, 3, 5,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fprocedure_2eproto::offsets,
@@ -240,6 +240,7 @@ bool ProcedureStatus_IsValid(int value) {
case 3: case 3:
case 4: case 4:
case 5: case 5:
case 6:
return true; return true;
default: default:
return false; return false;
+2 -1
View File
@@ -87,12 +87,13 @@ enum ProcedureStatus : int {
Failed = 3, Failed = 3,
PrepareRollback = 4, PrepareRollback = 4,
RollingBack = 5, RollingBack = 5,
Poisoned = 6,
ProcedureStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(), ProcedureStatus_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
ProcedureStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max() ProcedureStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
}; };
bool ProcedureStatus_IsValid(int value); bool ProcedureStatus_IsValid(int value);
constexpr ProcedureStatus ProcedureStatus_MIN = Running; constexpr ProcedureStatus ProcedureStatus_MIN = Running;
constexpr ProcedureStatus ProcedureStatus_MAX = RollingBack; constexpr ProcedureStatus ProcedureStatus_MAX = Poisoned;
constexpr int ProcedureStatus_ARRAYSIZE = ProcedureStatus_MAX + 1; constexpr int ProcedureStatus_ARRAYSIZE = ProcedureStatus_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProcedureStatus_descriptor(); const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProcedureStatus_descriptor();
+33 -29
View File
@@ -33,6 +33,7 @@ const (
ProcedureStatus_Failed ProcedureStatus = 3 ProcedureStatus_Failed ProcedureStatus = 3
ProcedureStatus_PrepareRollback ProcedureStatus = 4 ProcedureStatus_PrepareRollback ProcedureStatus = 4
ProcedureStatus_RollingBack ProcedureStatus = 5 ProcedureStatus_RollingBack ProcedureStatus = 5
ProcedureStatus_Poisoned ProcedureStatus = 6
) )
// Enum value maps for ProcedureStatus. // Enum value maps for ProcedureStatus.
@@ -44,6 +45,7 @@ var (
3: "Failed", 3: "Failed",
4: "PrepareRollback", 4: "PrepareRollback",
5: "RollingBack", 5: "RollingBack",
6: "Poisoned",
} }
ProcedureStatus_value = map[string]int32{ ProcedureStatus_value = map[string]int32{
"Running": 0, "Running": 0,
@@ -52,6 +54,7 @@ var (
"Failed": 3, "Failed": 3,
"PrepareRollback": 4, "PrepareRollback": 4,
"RollingBack": 5, "RollingBack": 5,
"Poisoned": 6,
} }
) )
@@ -459,41 +462,42 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75,
0x72, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x72, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72,
0x65, 0x73, 0x2a, 0x68, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x65, 0x73, 0x2a, 0x76, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67,
0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x6f, 0x6e, 0x65, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x6f, 0x6e, 0x65, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
0x52, 0x65, 0x74, 0x72, 0x79, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x52, 0x65, 0x74, 0x72, 0x79, 0x69, 0x6e, 0x67, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61,
0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72,
0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x52, 0x65, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x52,
0x6f, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x63, 0x6b, 0x10, 0x05, 0x32, 0xf6, 0x02, 0x0a, 0x6f, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x63, 0x6b, 0x10, 0x05, 0x12, 0x0c, 0x0a, 0x08,
0x10, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x50, 0x6f, 0x69, 0x73, 0x6f, 0x6e, 0x65, 0x64, 0x10, 0x06, 0x32, 0xf6, 0x02, 0x0a, 0x10, 0x50,
0x65, 0x12, 0x5a, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x51, 0x75, 0x5a, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72,
0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x74, 0x1a, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74,
0x03, 0x64, 0x64, 0x6c, 0x12, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x03, 0x64,
0x64, 0x6c, 0x12, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x07, 0x6d, 0x69, 0x67, 0x72, 0x61,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x07, 0x6d, 0x69, 0x67, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67,
0x72, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65,
0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x28,
0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x07, 0x64, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69,
0x12, 0x28, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63,
0x61, 0x69, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x67, 0x72, 0x65, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x52, 0x65, 0x73, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d,
0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -43,6 +43,10 @@ public final class Procedure {
* <code>RollingBack = 5;</code> * <code>RollingBack = 5;</code>
*/ */
RollingBack(5), RollingBack(5),
/**
* <code>Poisoned = 6;</code>
*/
Poisoned(6),
UNRECOGNIZED(-1), UNRECOGNIZED(-1),
; ;
@@ -70,6 +74,10 @@ public final class Procedure {
* <code>RollingBack = 5;</code> * <code>RollingBack = 5;</code>
*/ */
public static final int RollingBack_VALUE = 5; public static final int RollingBack_VALUE = 5;
/**
* <code>Poisoned = 6;</code>
*/
public static final int Poisoned_VALUE = 6;
public final int getNumber() { public final int getNumber() {
@@ -102,6 +110,7 @@ public final class Procedure {
case 3: return Failed; case 3: return Failed;
case 4: return PrepareRollback; case 4: return PrepareRollback;
case 5: return RollingBack; case 5: return RollingBack;
case 6: return Poisoned;
default: return null; default: return null;
} }
} }
@@ -4931,21 +4940,21 @@ public final class Procedure {
"tHeader\"\200\001\n\027ProcedureDetailResponse\0220\n\006h" + "tHeader\"\200\001\n\027ProcedureDetailResponse\0220\n\006h" +
"eader\030\001 \001(\0132 .greptime.v1.meta.ResponseH" + "eader\030\001 \001(\0132 .greptime.v1.meta.ResponseH" +
"eader\0223\n\nprocedures\030\002 \003(\0132\037.greptime.v1." + "eader\0223\n\nprocedures\030\002 \003(\0132\037.greptime.v1." +
"meta.ProcedureMeta*h\n\017ProcedureStatus\022\013\n" + "meta.ProcedureMeta*v\n\017ProcedureStatus\022\013\n" +
"\007Running\020\000\022\010\n\004Done\020\001\022\014\n\010Retrying\020\002\022\n\n\006Fa" + "\007Running\020\000\022\010\n\004Done\020\001\022\014\n\010Retrying\020\002\022\n\n\006Fa" +
"iled\020\003\022\023\n\017PrepareRollback\020\004\022\017\n\013RollingBa" + "iled\020\003\022\023\n\017PrepareRollback\020\004\022\017\n\013RollingBa" +
"ck\020\0052\366\002\n\020ProcedureService\022Z\n\005query\022\'.gre" + "ck\020\005\022\014\n\010Poisoned\020\0062\366\002\n\020ProcedureService\022" +
"ptime.v1.meta.QueryProcedureRequest\032(.gr" + "Z\n\005query\022\'.greptime.v1.meta.QueryProcedu" +
"eptime.v1.meta.ProcedureStateResponse\022J\n" + "reRequest\032(.greptime.v1.meta.ProcedureSt" +
"\003ddl\022 .greptime.v1.meta.DdlTaskRequest\032!" + "ateResponse\022J\n\003ddl\022 .greptime.v1.meta.Dd" +
".greptime.v1.meta.DdlTaskResponse\022Z\n\007mig" + "lTaskRequest\032!.greptime.v1.meta.DdlTaskR" +
"rate\022&.greptime.v1.meta.MigrateRegionReq" + "esponse\022Z\n\007migrate\022&.greptime.v1.meta.Mi" +
"uest\032\'.greptime.v1.meta.MigrateRegionRes" + "grateRegionRequest\032\'.greptime.v1.meta.Mi" +
"ponse\022^\n\007details\022(.greptime.v1.meta.Proc" + "grateRegionResponse\022^\n\007details\022(.greptim" +
"edureDetailRequest\032).greptime.v1.meta.Pr" + "e.v1.meta.ProcedureDetailRequest\032).grept" +
"ocedureDetailResponseB<Z:github.com/Grep" + "ime.v1.meta.ProcedureDetailResponseB<Z:g" +
"timeTeam/greptime-proto/go/greptime/v1/m" + "ithub.com/GreptimeTeam/greptime-proto/go" +
"etab\006proto3" "/greptime/v1/metab\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
+1
View File
@@ -19,6 +19,7 @@ enum ProcedureStatus {
Failed = 3; Failed = 3;
PrepareRollback = 4; PrepareRollback = 4;
RollingBack = 5; RollingBack = 5;
Poisoned = 6;
} }
message ProcedureMeta { message ProcedureMeta {