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

MTR Easily fails with 'File exists' on multiple runs of the same (any) testcase when using --mem

    XMLWordPrintable

Details

    Description

      Start (any) repeated test in MTR (using parallel=1), for example main/create.test:

      /test/MD180921-mariadb-10.7.0-linux-x86_64-dbg/mysql-test$ ./mysql-test-run --repeat=99999 --parallel=1 --mem --force --retry=99999 --retry-failure=99999 --suite=main create | tee long_run.txt
      

      Or you can use /dev/shm (same outcome):

      MTR_MEM=/dev/shm ./mysql-test-run --repeat=99999 --parallel=1 --mem --force --retry=99999 --retry-failure=99999 --suite=main create | tee long_run.txt
      

      And it will quickly (20 to 500 testcase runs) fail with:

      10.7.0 d552e092c9f3e20da078d1b62b976f629f73d3a4 (Debug)

      ...
      main.create                              [ 13 pass ]   5546
      main.create                              [ 14 pass ]   5549
      main.create                              [ 15 pass ]   5580
      main.create                              [ 16 pass ]   5755
      ========================================
      mkdir failed
      err: 'File exists'
      path: '/test/MD180921-mariadb-10.7.0-linux-x86_64-dbg/mysql-test/var'
      dir: 'var'
      ...
      

      Issue pops up frequently around 15-30 repeats. Seems like a (sporadic) race condition.

      Attachments

        Activity

          People

            Roel Roel Van de Paar
            Roel Roel Van de Paar
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.