delphix / mysqllinux

MySQLVirtualization Plugin for Delphix
Apache License 2.0
1 stars 9 forks source link

"01/18/2022 Cannot ingest onto a staging server with binary logging option set to enable" #10

Open ranjeethdelphix opened 2 years ago

ranjeethdelphix commented 2 years ago

Expected Behavior dSource ingestion fails when the MySQL server's global environment variable "log_bin" is enabled. Even though the default setting of the binary logging is disabled, there are situations where customer may use existing server with log_bin enabled.

Actual Behavior dSource ingestion to complete successfully whether binary logging is enabled or disabled on staging. The ingestion process anyway enables log_bin at the end of ingestion.

Steps To Reproduce the Problem Set the log_bin option on MySQL staging server to "ON" and run the dSource ingestion. The process fails with error "unable to start database on stage".

Version MySQL 5.7.19

Additional Context restore_stage.sh script of the plugin is using mysqld initialize without log_bin directory option. In order to initialize a database on a sever with log_bin as "ON" we need to use log_bin option in mysqld initialize command (which was missing)