[FEAT MERGE] 日志流副本运维命令

This commit is contained in:
zhangzhenyuyu
2024-08-12 10:05:52 +00:00
committed by ob-robot
parent 1a0f638cdf
commit 267e780787
74 changed files with 7531 additions and 402 deletions

View File

@ -3709,3 +3709,202 @@ question_mask_size: 0
|--[0],[T_CANCEL_BALANCE_JOB], str_value_=[], value=[0]
|--[0],[T_TENANT_NAME], str_value_=[], value=[9223372036854775807]
|--[0],[T_VARCHAR], str_value_=[mysql], value=[9223372036854775807]
************** Case 204 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_ADD_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=[F], value=[9223372036854775807]
|--[3],[T_VARCHAR], str_value_=["100.88.107.212":5001], value=[9223372036854775807]
|--[4],[T_INT], str_value_=[3], value=[3]
|--[5],[T_TENANT_NAME], str_value_=[], value=[9223372036854775807]
|--[0],[T_VARCHAR], str_value_=[mysql_tenant], value=[9223372036854775807]
************** Case 205 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001' paxos_replica_num=3;
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_ADD_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=[F], value=[9223372036854775807]
|--[3],[T_VARCHAR], str_value_=["100.88.107.212":5001], value=[9223372036854775807]
|--[4],[T_INT], str_value_=[3], value=[3]
************** Case 206 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_ADD_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=[F], value=[9223372036854775807]
|--[3],[T_VARCHAR], str_value_=["100.88.107.212":5001], value=[9223372036854775807]
************** Case 207 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_ADD_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=[F], value=[9223372036854775807]
************** Case 208 ***************
alter system remove replica ls=100 server='100.88.107.212:5000' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_REMOVE_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_INT], str_value_=[3], value=[3]
|--[3],[T_TENANT_NAME], str_value_=[], value=[9223372036854775807]
|--[0],[T_VARCHAR], str_value_=[mysql_tenant], value=[9223372036854775807]
************** Case 209 ***************
alter system remove replica ls=100 server='100.88.107.212:5000' paxos_replica_num=3;
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_REMOVE_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_INT], str_value_=[3], value=[3]
************** Case 210 ***************
alter system remove replica ls=100 server='100.88.107.212:5000';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_REMOVE_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
************** Case 211 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_MODIFY_LS_REPLICA_TYPE], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=[F], value=[9223372036854775807]
|--[3],[T_INT], str_value_=[3], value=[3]
|--[4],[T_TENANT_NAME], str_value_=[], value=[9223372036854775807]
|--[0],[T_VARCHAR], str_value_=[mysql_tenant], value=[9223372036854775807]
************** Case 212 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F' paxos_replica_num=3;
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_MODIFY_LS_REPLICA_TYPE], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=[F], value=[9223372036854775807]
|--[3],[T_INT], str_value_=[3], value=[3]
************** Case 213 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_MODIFY_LS_REPLICA_TYPE], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=[F], value=[9223372036854775807]
************** Case 214 ***************
alter system modify ls=100 paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_MODIFY_LS_PAXOS_REPLICA_NUM], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_INT], str_value_=[3], value=[3]
|--[2],[T_TENANT_NAME], str_value_=[], value=[9223372036854775807]
|--[0],[T_VARCHAR], str_value_=[mysql_tenant], value=[9223372036854775807]
************** Case 215 ***************
alter system modify ls=100 paxos_replica_num=3;
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_MODIFY_LS_PAXOS_REPLICA_NUM], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_INT], str_value_=[3], value=[3]
************** Case 216 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000' data_source='100.88.107.212:5001' tenant='mysql_tenant';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_MIGRATE_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[3],[T_VARCHAR], str_value_=["100.88.107.212":5001], value=[9223372036854775807]
|--[4],[T_TENANT_NAME], str_value_=[], value=[9223372036854775807]
|--[0],[T_VARCHAR], str_value_=[mysql_tenant], value=[9223372036854775807]
************** Case 217 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000' data_source='100.88.107.212:5001';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_MIGRATE_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[3],[T_VARCHAR], str_value_=["100.88.107.212":5001], value=[9223372036854775807]
************** Case 218 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_MIGRATE_LS_REPLICA], str_value_=[], value=[0]
|--[0],[T_LS], str_value_=[], value=[9223372036854775807]
|--[0],[T_INT], str_value_=[100], value=[100]
|--[1],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
|--[2],[T_VARCHAR], str_value_=["100.88.107.212":5000], value=[9223372036854775807]
************** Case 219 ***************
alter system cancel replica task task_id = 'xxx' tenant='mysql_tenant';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_CANCEL_LS_REPLICA_TASK], str_value_=[], value=[0]
|--[0],[T_VARCHAR], str_value_=[xxx], value=[9223372036854775807]
|--[1],[T_TENANT_NAME], str_value_=[], value=[9223372036854775807]
|--[0],[T_VARCHAR], str_value_=[mysql_tenant], value=[9223372036854775807]
************** Case 220 ***************
alter system cancel replica task task_id = 'xxx';
question_mask_size: 0
|--[0],[T_STMT_LIST], str_value_=[], value=[9223372036854775807]
|--[0],[T_CANCEL_LS_REPLICA_TASK], str_value_=[], value=[0]
|--[0],[T_VARCHAR], str_value_=[xxx], value=[9223372036854775807]

View File

@ -24165,3 +24165,865 @@ question_mask_size: 0
}
]
}
************** Case 204 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_ADD_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 205 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001' paxos_replica_num=3;
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_ADD_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{ }
]
}
]
}
************** Case 206 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_ADD_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{ },
{ }
]
}
]
}
************** Case 207 ***************
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_ADD_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{ },
{ },
{ }
]
}
]
}
************** Case 208 ***************
alter system remove replica ls=100 server='100.88.107.212:5000' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_REMOVE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 209 ***************
alter system remove replica ls=100 server='100.88.107.212:5000' paxos_replica_num=3;
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_REMOVE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{ }
]
}
]
}
************** Case 210 ***************
alter system remove replica ls=100 server='100.88.107.212:5000';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_REMOVE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{ },
{ }
]
}
]
}
************** Case 211 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F' paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_REPLICA_TYPE",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 212 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F' paxos_replica_num=3;
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_REPLICA_TYPE",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{ }
]
}
]
}
************** Case 213 ***************
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_REPLICA_TYPE",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":1,
"str_val":"F"
},
{ },
{ }
]
}
]
}
************** Case 214 ***************
alter system modify ls=100 paxos_replica_num=3 tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_PAXOS_REPLICA_NUM",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 215 ***************
alter system modify ls=100 paxos_replica_num=3;
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MODIFY_LS_PAXOS_REPLICA_NUM",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_INT",
"int_val":3,
"str_len":1,
"str_val":"3"
},
{ }
]
}
]
}
************** Case 216 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000' data_source='100.88.107.212:5001' tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MIGRATE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 217 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000' data_source='100.88.107.212:5001';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MIGRATE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5001"
},
{ }
]
}
]
}
************** Case 218 ***************
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_MIGRATE_LS_REPLICA",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_LS",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_INT",
"int_val":100,
"str_len":3,
"str_val":"100"
}
]
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":19,
"str_val":"100.88.107.212:5000"
},
{ },
{ }
]
}
]
}
************** Case 219 ***************
alter system cancel replica task task_id = 'xxx' tenant='mysql_tenant';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_CANCEL_LS_REPLICA_TASK",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":3,
"str_val":"xxx"
},
{
"type":"T_TENANT_NAME",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":12,
"str_val":"mysql_tenant"
}
]
}
]
}
]
}
************** Case 220 ***************
alter system cancel replica task task_id = 'xxx';
question_mask_size: 0
{
"type":"T_STMT_LIST",
"int_val":9223372036854775807,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_CANCEL_LS_REPLICA_TASK",
"int_val":0,
"str_len":0,
"str_val":"",
"children": [
{
"type":"T_VARCHAR",
"int_val":9223372036854775807,
"str_len":3,
"str_val":"xxx"
},
{ }
]
}
]
}

View File

@ -313,3 +313,28 @@ alter system cancel transfer partition ALL;
alter system cancel transfer partition ALL tenant 'mysql';
alter system cancel balance job;
alter system cancel balance job tenant 'mysql';
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001' paxos_replica_num=3 tenant='mysql_tenant';
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001' paxos_replica_num=3;
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F' data_source='100.88.107.212:5001';
alter system add replica ls=100 server='100.88.107.212:5000' replica_type='F';
alter system remove replica ls=100 server='100.88.107.212:5000' paxos_replica_num=3 tenant='mysql_tenant';
alter system remove replica ls=100 server='100.88.107.212:5000' paxos_replica_num=3;
alter system remove replica ls=100 server='100.88.107.212:5000';
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F' paxos_replica_num=3 tenant='mysql_tenant';
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F' paxos_replica_num=3;
alter system modify replica ls=100 server='100.88.107.212:5000' replica_type='F';
alter system modify ls=100 paxos_replica_num=3 tenant='mysql_tenant';
alter system modify ls=100 paxos_replica_num=3;
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000' data_source='100.88.107.212:5001' tenant='mysql_tenant';
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000' data_source='100.88.107.212:5001';
alter system migrate replica ls=100 source='100.88.107.212:5000' destination='100.88.107.212:5000';
alter system cancel replica task task_id = 'xxx' tenant='mysql_tenant';
alter system cancel replica task task_id = 'xxx';