if database changed in "RETRY_TIMEOUT" time, restart zongji will case "ER_MASTER_FATAL_ERROR_READING_BINLOG: ".
full error message:
{ Error: ER_MASTER_FATAL_ERROR_READING_BINLOG: Client requested master to start replication from position > file size; the first event '' at 465694, the last event read from '/home/mysql/data3067/mysql/mysql-bin.000433' at 4, the last byte read from '/home/mysql/data3067/mysql/mysql-bin.000433' at 4
setTimeout(function() { if(!newInst.child) { console.log("dbWarcher error restart ZJ:") var newInstNext = zongjiManager(dsn, options, onBinlog); newInst.stop(); newInst = newInstNext; newInst.child = true; } }, RETRY_TIMEOUT);
if database changed in "RETRY_TIMEOUT" time, restart zongji will case "ER_MASTER_FATAL_ERROR_READING_BINLOG: ".
full error message:
{ Error: ER_MASTER_FATAL_ERROR_READING_BINLOG: Client requested master to start replication from position > file size; the first event '' at 465694, the last event read from '/home/mysql/data3067/mysql/mysql-bin.000433' at 4, the last byte read from '/home/mysql/data3067/mysql/mysql-bin.000433' at 4