diff --git a/c++/greptime/v1/meta/procedure.pb.cc b/c++/greptime/v1/meta/procedure.pb.cc index a416b980..886fb031 100644 --- a/c++/greptime/v1/meta/procedure.pb.cc +++ b/c++/greptime/v1/meta/procedure.pb.cc @@ -99,18 +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*g\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\003\022\022\n\016Commi" - "tRollback\020\004\022\017\n\013RollingBack\020\0052\226\002\n\020Procedu" - "reService\022Z\n\005query\022\'.greptime.v1.meta.Qu" - "eryProcedureRequest\032(.greptime.v1.meta.P" - "rocedureStateResponse\022J\n\003ddl\022 .greptime." - "v1.meta.DdlTaskRequest\032!.greptime.v1.met" - "a.DdlTaskResponse\022Z\n\007migrate\022&.greptime." - "v1.meta.MigrateRegionRequest\032\'.greptime." - "v1.meta.MigrateRegionResponseB::min(), ProcedureStatus_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() diff --git a/go/greptime/v1/meta/procedure.pb.go b/go/greptime/v1/meta/procedure.pb.go index 7e732383..cf0d454d 100644 --- a/go/greptime/v1/meta/procedure.pb.go +++ b/go/greptime/v1/meta/procedure.pb.go @@ -27,12 +27,12 @@ const ( type ProcedureStatus int32 const ( - ProcedureStatus_Running ProcedureStatus = 0 - ProcedureStatus_Done ProcedureStatus = 1 - ProcedureStatus_Retrying ProcedureStatus = 2 - ProcedureStatus_Failed ProcedureStatus = 3 - ProcedureStatus_CommitRollback ProcedureStatus = 4 - ProcedureStatus_RollingBack ProcedureStatus = 5 + 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. @@ -42,16 +42,16 @@ var ( 1: "Done", 2: "Retrying", 3: "Failed", - 4: "CommitRollback", + 4: "PrepareRollback", 5: "RollingBack", } ProcedureStatus_value = map[string]int32{ - "Running": 0, - "Done": 1, - "Retrying": 2, - "Failed": 3, - "CommitRollback": 4, - "RollingBack": 5, + "Running": 0, + "Done": 1, + "Retrying": 2, + "Failed": 3, + "PrepareRollback": 4, + "RollingBack": 5, } ) @@ -230,35 +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, 0x67, 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, 0x12, 0x12, 0x0a, 0x0e, - 0x43, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 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, 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, + 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, + 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 89b0e0dc..44011010 100644 --- a/java/src/main/java/greptime/v1/meta/Procedure.java +++ b/java/src/main/java/greptime/v1/meta/Procedure.java @@ -36,9 +36,9 @@ public enum ProcedureStatus */ Failed(3), /** - * CommitRollback = 4; + * PrepareRollback = 4; */ - CommitRollback(4), + PrepareRollback(4), /** * RollingBack = 5; */ @@ -63,9 +63,9 @@ public enum ProcedureStatus */ public static final int Failed_VALUE = 3; /** - * CommitRollback = 4; + * PrepareRollback = 4; */ - public static final int CommitRollback_VALUE = 4; + public static final int PrepareRollback_VALUE = 4; /** * RollingBack = 5; */ @@ -100,7 +100,7 @@ public static ProcedureStatus forNumber(int value) { case 1: return Done; case 2: return Retrying; case 3: return Failed; - case 4: return CommitRollback; + case 4: return PrepareRollback; case 5: return RollingBack; default: return null; } @@ -1893,18 +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*g\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\003\022\022\n\016Commi" + - "tRollback\020\004\022\017\n\013RollingBack\020\0052\226\002\n\020Procedu" + - "reService\022Z\n\005query\022\'.greptime.v1.meta.Qu" + - "eryProcedureRequest\032(.greptime.v1.meta.P" + - "rocedureStateResponse\022J\n\003ddl\022 .greptime." + - "v1.meta.DdlTaskRequest\032!.greptime.v1.met" + - "a.DdlTaskResponse\022Z\n\007migrate\022&.greptime." + - "v1.meta.MigrateRegionRequest\032\'.greptime." + - "v1.meta.MigrateRegionResponseB