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

--master-retry-count=0 can still stop

    XMLWordPrintable

Details

    • Can result in unexpected behaviour
    • Fix --master-retry-count=0 not infinite as described
    • Q3/2025 Server Development

    Description

      From https://github.com/MariaDB/server/pull/3764#discussion_r1917630832:

      A value of 0 means the replica will not stop attempting to reconnect.
      https://mariadb.com/kb/en/mariadbd-options/#-master-retry-count

      But the code had no special case for 0 since 2002, which means it treats 0 as ULONG_MAX + 1.
      It's not forever forever, only practically forever (2^32 tries × 1 millisecond/try ≅ 50 days).

      We should either add this special case or correct (clarify?) the doc.

      Attachments

        Issue Links

          Activity

            People

              ParadoxV5 Jimmy Hú
              ParadoxV5 Jimmy Hú
              Jimmy Hú Jimmy Hú
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

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