Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  rpl_gtid_thread_id.result   Sprache: Lisp

 

include/master-slave.inc
[connection master]
connection master;
create table t1(a int);
insert into t1 values(1);
optimize table t1;
Table Op Msg_type Msg_text
test.t1 optimize status OK
connection slave;
connection master;
# MYSQL_BINLOG master_local_binlog > master_outfile
include/assert_grep.inc [Ensure only 3 GTID events exist (Master)]
include/assert_grep.inc [Ensure each GTID event has the thread id (Master)]
#
# GTID event's thread_id should use pseudo_thread_id
connection master;
set @@pseudo_thread_id=99999;
insert into t1 values(2);
# MYSQL_BINLOG master_local_binlog > master_outfile
include/assert_grep.inc [GTID event's thread_id should use pseudo_thread_id]
#
# Test the serial slave
connection slave;
# MYSQL_BINLOG slave_local_binlog > slave_outfile
include/assert_grep.inc [Ensure the same number of GTID events on the slave as the master]
include/assert_grep.inc [Ensure GTID events logged with master's thread id maintain that value]
include/assert_grep.inc [Ensure GTID event logged with pseudo_thread_id on master maintains that value]
#
# Test the parallel slave
connection slave;
include/stop_slave.inc
SET @@GLOBAL.slave_parallel_threads=1;
include/start_slave.inc
connection master;
insert into t1 values(3);
insert into t1 values(4);
connection slave;
connection slave;
# MYSQL_BINLOG slave_local_binlog > slave_outfile
include/assert_grep.inc [Ensure the same number of GTID events on the slave as the master]
include/assert_grep.inc [Ensure GTID the new events are logged on the slave with the thread_id of the master thread id]
include/stop_slave.inc
SET @@GLOBAL.slave_parallel_threads=0;
include/start_slave.inc
#
# MDEV-33924: If pseudo_thread_id is set to 0, thread_id should still be
# written and propagated to slaves
connection master;
set @@pseudo_thread_id=0;
insert into t1 values(33924);
# MYSQL_BINLOG master_local_binlog > master_outfile
include/assert_grep.inc [GTID event's thread_id should write pseudo_thread_id value of 0]
connection slave;
connection slave;
# MYSQL_BINLOG slave_local_binlog > slave_outfile
include/assert_grep.inc [A 0 value for GTID event's thread_id should be propagated on slaves]
# If pseudo_thread_id is set to a value greater than 4 bytes, thread_id
# should be truncated to a 32-bit value in the binary log (see
# MDEV-15089 for details)
connection master;
set @@pseudo_thread_id=99999999999999999999;
insert into t1 values(15089);
# MYSQL_BINLOG master_local_binlog > master_outfile
include/assert_grep.inc [GTID event's thread_id should truncate values higher than 32 bit]
connection slave;
connection slave;
# MYSQL_BINLOG slave_local_binlog > slave_outfile
include/assert_grep.inc [The truncated thread_id should be preserved on the slave]
#
# Cleanup
connection master;
drop table t1;
include/rpl_end.inc

Messung V0.5 in Prozent
C=74 H=92 G=83

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-10-10) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1897691