Open antonrubtsov opened 3 years ago
krowinski/php-mysql-replication/src/MySQLReplication/BinLog/BinLogSocketConnect.php:165
if ('' !== Config::getGtid()) {
$this->setBinLogDumpGtid();
$this->setBinLogDump(); // This change fixes the problem, but i'm not sure that it's correct.
} else {
$this->setBinLogDump();
}
This change fixes the problem, but i'm not sure that it's correct.
If you use gitid it will set just gtid if you use binlog file it will set binlog file Its intended but not changeable. I will change this in next version.
System details:
SELECT VERSION();
): <5.7.35-38-log PERCONA>Problem
$eventInfo->getBinLogCurrent()->getBinFileName();
falls withException 'TypeError' with message 'Return value of MySQLReplication\BinLog\BinLogCurrent::getBinFileName() must be of the type string, null returned'
Steps required to reproduce the problem.
Starting conditions:
Insert 1 string: insert into test.test_table (id, is_clicked) values (1,0); And run replication with GTID = ''
Reproducing error:
var_dump($eventInfo->getBinlogCurrent);
Question
Is it a bug?