Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-42237

rpl.rpl_read_old_relay_log_info fails on Windows (Linux-style path)

    XMLWordPrintable

Details

    • Hide
      AI generated: On Windows, when replication was used and the server initialized a relay log position of 2 GB (2^31 bytes) or larger, an integer overflow occurred. This caused the server to seek to an incorrect position in the relay log. The position is now correctly initialized.
      Show
      AI generated: On Windows, when replication was used and the server initialized a relay log position of 2 GB (2^31 bytes) or larger, an integer overflow occurred. This caused the server to seek to an incorrect position in the relay log. The position is now correctly initialized.

    Description

      rpl.rpl_read_old_relay_log_info fails because the test overrrides relay-log.info with the Linux-style ./slave-relay-bin.000001, while Windows uses the format with backslashes, .\slave-relay-bin.000001.

      rpl.rpl_read_old_relay_log_info 'mix'    w1 [ fail ]
              Test ended at 2026-09-14 23:19:31
       
      CURRENT_TEST: rpl.rpl_read_old_relay_log_info
      mysqltest: In included file "./include/rpl_end.inc": 
      included from C:/home/Builds/10.11/mysql-test/suite/rpl/t/rpl_read_old_relay_log_info.test at line 74:
      At line 93: query 'CHANGE MASTER TO master_use_gtid=Slave_Pos' failed: ER_MASTER_INFO (1201): Could not initialize master info structure for ''; more error messages can be found in the MariaDB error log
       
      The result from queries just before the failure was:
      < snip >
      INSERT INTO t1 VALUES (1);
      DROP TABLE t1;
      connection slave;
      ==== Check that we still understand the old format of relay-log.info ====
      include/stop_slave.inc
      include/reset_slave.inc
      # Read relay-log.info
      START SLAVE IO_THREAD;
      include/wait_for_slave_io_to_start.inc
      # Check that relay log coordinates are equal to those we saved in old-format_relay-log.info
      = , 0, slave-relay-bin.000001, 4
      #
      # MDEV-38020: Master & relay log info files read 2^31 and above incorrectly
      #
      connection server_2;
      include/stop_slave.inc
      include/rpl_restart_server.inc [server_number=2 parameters: --skip-slave-start]
      include/assert.inc [relay_log_pos should be 2147483648 after restart]
      include/rpl_end.inc
      

      Attachments

        Issue Links

          Activity

            People

              elenst Elena Stepanova
              elenst Elena Stepanova
              Susil Behera Susil Behera
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.