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

MTR Safe Process Hardcodes RLIMIT_NOFILE

    XMLWordPrintable

Details

    Description

      The mariadbd instances that are spawned by MTR have their RLIMIT_NOFILE hardcoded to 1024. This makes MTR unusable if used for high concurrency testing (e.g. for benchmarking).

      The hardcoding is set in ./mysql-test/lib/My/SafeProcess/safe_process.cc in its main function:

          /*
            mysqld defaults depend on that. make test results stable and independent
            from the environment
          */
          setlimit(RLIMIT_NOFILE, 1024, 1024);
      

      Instead, the safe process executable should use the test's configuration and use its value for open_files_limit.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bnestere Brandon Nesterenko
            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.