polardbxengine/mysql-test/suite/xcluster/r/force_single_mode.result

24 lines
613 B
Plaintext

# start a new learner
call dbms_consensus.add_learner(learner_cluster_info);
create table t (id int);
insert into t values (1);
stop xpaxos_replication;
insert into t values (2);
call dbms_consensus.force_single_mode();
select SERVER_ID, ROLE from information_schema.alisql_cluster_global;
SERVER_ID ROLE
1 Leader
select SERVER_ID, ROLE, SERVER_READY_FOR_RW from information_schema.alisql_cluster_local;
SERVER_ID ROLE SERVER_READY_FOR_RW
1 Leader No
start xpaxos_replication;
insert into t values (3);
select * from t;
id
1
2
3
drop table t;
call dbms_consensus.drop_learner(learner_cluster_info);
drop table t;