diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc index f4d5f643..886fb031 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -99,17 +99,18 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fprocedure_2eproto[] "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" "ta.ResponseHeader\0221\n\006status\030\002 \001(\0162!.grep" "time.v1.meta.ProcedureStatus\022\r\n\005error\030\003 " - "\001(\t*B\n\017ProcedureStatus\022\013\n\007Running\020\000\022\010\n\004D" - "one\020\001\022\014\n\010Retrying\020\002\022\n\n\006Failed\020\0032\226\002\n\020Proc" - "edureService\022Z\n\005query\022\'.greptime.v1.meta" - ".QueryProcedureRequest\032(.greptime.v1.met" - "a.ProcedureStateResponse\022J\n\003ddl\022 .grepti" - "me.v1.meta.DdlTaskRequest\032!.greptime.v1." - "meta.DdlTaskResponse\022Z\n\007migrate\022&.grepti" - "me.v1.meta.MigrateRegionRequest\032\'.grepti" - "me.v1.meta.MigrateRegionResponseB::min(), ProcedureStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool ProcedureStatus_IsValid(int value); constexpr ProcedureStatus ProcedureStatus_MIN = Running; -constexpr ProcedureStatus ProcedureStatus_MAX = Failed; +constexpr ProcedureStatus ProcedureStatus_MAX = RollingBack; constexpr int ProcedureStatus_ARRAYSIZE = ProcedureStatus_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ProcedureStatus_descriptor(); diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index 74deeb57..cf0d454d 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -27,10 +27,12 @@ const ( type ProcedureStatus int32 const ( - ProcedureStatus_Running ProcedureStatus = 0 - ProcedureStatus_Done ProcedureStatus = 1 - ProcedureStatus_Retrying ProcedureStatus = 2 - ProcedureStatus_Failed ProcedureStatus = 3 + ProcedureStatus_Running ProcedureStatus = 0 + ProcedureStatus_Done ProcedureStatus = 1 + ProcedureStatus_Retrying ProcedureStatus = 2 + ProcedureStatus_Failed ProcedureStatus = 3 + ProcedureStatus_PrepareRollback ProcedureStatus = 4 + ProcedureStatus_RollingBack ProcedureStatus = 5 ) // Enum value maps for ProcedureStatus. @@ -40,12 +42,16 @@ var ( 1: "Done", 2: "Retrying", 3: "Failed", + 4: "PrepareRollback", + 5: "RollingBack", } ProcedureStatus_value = map[string]int32{ - "Running": 0, - "Done": 1, - "Retrying": 2, - "Failed": 3, + "Running": 0, + "Done": 1, + "Retrying": 2, + "Failed": 3, + "PrepareRollback": 4, + "RollingBack": 5, } ) @@ -224,33 +230,36 @@ var file_greptime_v1_meta_procedure_proto_rawDesc = []byte{ 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2a, 0x42, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x63, + 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x2a, 0x68, 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, 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, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x03, 0x32, 0x96, 0x02, 0x0a, - 0x10, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x12, 0x5a, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x27, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x51, 0x75, - 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x28, 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, 0x72, 0x65, - 0x53, 0x74, 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, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5a, 0x0a, 0x07, 0x6d, 0x69, 0x67, - 0x72, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, + 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 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, 0x6f, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x42, 0x61, 0x63, 0x6b, + 0x10, 0x05, 0x32, 0x96, 0x02, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, + 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x5a, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, + 0x12, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, + 0x65, 0x74, 0x61, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64, 0x75, + 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 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, 0x72, 0x65, 0x53, 0x74, 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, - 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 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, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 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, + 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x5a, 0x0a, 0x07, 0x6d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x12, 0x26, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, + 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x4d, 0x69, 0x67, 0x72, 0x61, 0x74, 0x65, 0x52, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 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, 0x2d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 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 ( diff --git a/java/src/main/java/greptime/v1/meta/Procedure.java b/java/src/main/java/greptime/v1/meta/Procedure.java index 3430606b..44011010 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -35,6 +35,14 @@ public enum ProcedureStatus * Failed = 3; */ Failed(3), + /** + * PrepareRollback = 4; + */ + PrepareRollback(4), + /** + * RollingBack = 5; + */ + RollingBack(5), UNRECOGNIZED(-1), ; @@ -54,6 +62,14 @@ public enum ProcedureStatus * Failed = 3; */ public static final int Failed_VALUE = 3; + /** + * PrepareRollback = 4; + */ + public static final int PrepareRollback_VALUE = 4; + /** + * RollingBack = 5; + */ + public static final int RollingBack_VALUE = 5; public final int getNumber() { @@ -84,6 +100,8 @@ public static ProcedureStatus forNumber(int value) { case 1: return Done; case 2: return Retrying; case 3: return Failed; + case 4: return PrepareRollback; + case 5: return RollingBack; default: return null; } } @@ -1875,17 +1893,18 @@ public greptime.v1.meta.Procedure.ProcedureStateResponse getDefaultInstanceForTy "esponse\0220\n\006header\030\001 \001(\0132 .greptime.v1.me" + "ta.ResponseHeader\0221\n\006status\030\002 \001(\0162!.grep" + "time.v1.meta.ProcedureStatus\022\r\n\005error\030\003 " + - "\001(\t*B\n\017ProcedureStatus\022\013\n\007Running\020\000\022\010\n\004D" + - "one\020\001\022\014\n\010Retrying\020\002\022\n\n\006Failed\020\0032\226\002\n\020Proc" + - "edureService\022Z\n\005query\022\'.greptime.v1.meta" + - ".QueryProcedureRequest\032(.greptime.v1.met" + - "a.ProcedureStateResponse\022J\n\003ddl\022 .grepti" + - "me.v1.meta.DdlTaskRequest\032!.greptime.v1." + - "meta.DdlTaskResponse\022Z\n\007migrate\022&.grepti" + - "me.v1.meta.MigrateRegionRequest\032\'.grepti" + - "me.v1.meta.MigrateRegionResponseB