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

main.information_schema_db fails sporadically

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      Test failure:

      CURRENT_TEST: main.information_schema_db
      --- /home/buildbot/amd64-fedora-41/build/mysql-test/main/information_schema_db.result	2025-10-02 09:29:34.000000000 +0000
      +++ /home/buildbot/amd64-fedora-41/build/mysql-test/main/information_schema_db.reject	2025-10-02 09:53:54.327983068 +0000
      @@ -269,6 +269,7 @@
       select * from v1d;
       current_user()	user
       root@localhost	root
      +root@localhost	mysqltest_1
       root@localhost	root
       select * from v1i;
       current_user()	user
      

      The following patch makes failure reliably reproducible:

      diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
      index c279f2663c8..c227fee943e 100644
      --- a/sql/sql_connect.cc
      +++ b/sql/sql_connect.cc
      @@ -1483,6 +1483,7 @@ void do_handle_one_connection(CONNECT *connect, bool put_in_cache)
           if (thd->userstat_running)
             update_global_user_stats(thd, create_user, time(NULL));
       
      +    sleep(1);
           unlink_thd(thd);
           if (IF_WSREP(thd->wsrep_applier, false) || !put_in_cache ||
               !(connect= thread_cache.park()))
      

      Cross-reference: link.

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              svoj Sergey Vojtovich
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.