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

MTR is broken on systems with IPv6 disabled

    XMLWordPrintable

Details

    • 10.0.20

    Description

      Some systems report IPv6 as supported (as in, getaddrinfo() returns both AF_INET6 and AF_INET addrinfo's), but an attempt to create an AF_INET6 socket fails, because IPv6 support is either not fully available or disabled.

      This does not prevent the server from starting up, because activate_tcp_port() falls back to AF_INET if creating an AF_INET6 socket fails. However, the "Failed to create a socket for IPv6" error is printed in the error log, which makes all MTR tests on such systems fail with the following symptoms:

      main.connect                             [ fail ]  Found warnings/errors in server log file!
              Test ended at 2015-04-30 08:39:03
      line
      150430  8:38:52 [ERROR] Failed to create a socket for IPv6 '::': errno: 97.
      150430  8:38:52 [ERROR] Failed to create a socket for IPv6 '::': errno: 97.
      ^ Found warnings in /home/ubuntu/install/mariadb-10.1.5/usr/local/mysql/mysql-test/var/log/mysqld.1.err

      This is a regression introduced by the patch for MDEV-4379, as before that change active_tcp_port() always tried creating an AF_INET socket before AF_INET6.

      A similar problem has been fixed in MySQL with https://github.com/mysql/mysql-server/commit/da66e3850d0b186a3c86e06daa4bc3208ad5cc62

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              kaamos Alexey Kopytov
              Votes:
              1 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.