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

No GTT MTR coverage on optimized builds due to debug_sync requirement

    XMLWordPrintable

Details

    • Not for Release Notes
    • Q4/2025 Server Maintenance, Q4/2025 Server Development

    Description

      Features require MTR tests on both optimized and debug builds. While often bugs are seen in both, there are also very regularly bugs which are seen only on one or the other. The current GTT tests seem to require debug_sync, so they won't run on optimized builds:

      ./mtr main.global_temporary_table rpl.global_temporary_table binlog.global_temporary_table
      

      Leads to:

      MDEV-35915-8 CS 12.2.0 c7ea08421d34fa7d45e27919a869ade968bd88c4 (Optimized, Clang 21.1.3-20250923) Build 20/10/2025

      TEST                                      RESULT   TIME (ms) or COMMENT
      --------------------------------------------------------------------------
       
      worker[01] Using MTR_BUILD_THREAD 300, with reserved ports 19000..19029
      binlog.global_temporary_table 'stmt'     [ skipped ]  debug_sync is not available
      rpl.global_temporary_table 'stmt'        [ skipped ]  debug_sync is not available
      main.global_temporary_table              [ skipped ]  debug_sync is not available
      --------------------------------------------------------------------------
      The servers were restarted 2 times
      Spent 0.000 of 4 seconds executing testcases
       
      Completed: All 0 tests were successful.
       
      3 tests were skipped, 3 by the test itself.
      

      rocksdb.global_temporary_table was not included as it currently crashes (MDEV-37897).

      Please improve the tests so that GTT is tested in MTR runs on optimized builds.

      It should not matter, but for reference here is the build command used:

      cmake . -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DWITH_SSL=bundled -DBUILD_CONFIG=mysql_release -DWITH_UNIT_TESTS=0 -DWITH_TOKUDB=0 -DWITH_JEMALLOC=no -DFEATURE_SET=community -DDEBUG_EXTNAME=OFF -DWITH_EMBEDDED_SERVER=0 -DWITH_DEBUG_SYNC=ON -DENABLE_DOWNLOADS=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/tmp/boost_242205 -DENABLED_LOCAL_INFILE=1 -DENABLE_DTRACE=0 -DWITH_{SAFEMALLOC,NUMA}=OFF -DWITH_UNIT_TESTS=OFF -DCONC_WITH_{UNITTEST,SSL}=OFF -DPLUGIN_PERFSCHEMA=YES -DWITH_DBUG_TRACE=OFF -DWITH_ZLIB=bundled -DWITH_ROCKSDB=1 -DWITH_PAM=ON -DWITH_MARIABACKUP=0 -DFORCE_INSOURCE_BUILD=1 -DWITHOUT_GROUP_REPLICATION=1 -DMYSQL_MAINTAINER_MODE=OFF -DWARNING_AS_ERROR='' -DCMAKE_BUILD_TYPE=RelWithDebInfo
      

      Attachments

        Issue Links

          Activity

            People

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