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

spider/bugfix.perfschema fails sporadically

    XMLWordPrintable

Details

    • Not for Release Notes

    Description

      Test failure:

      CURRENT_TEST: spider/bugfix.perfschema
      --- 10.11/storage/spider/mysql-test/spider/bugfix/r/perfschema.result	2025-05-26 17:37:28.267009380 +0400
      +++ 10.11/storage/spider/mysql-test/spider/bugfix/r/perfschema.reject	2026-01-11 19:11:51.436620894 +0400
      @@ -7,5 +7,6 @@
       variable_name	variable_value
       Spider_direct_aggregate	0
       Spider_direct_aggregate	0
      +Spider_direct_aggregate	0
       disconnect foo;
       connection default;
      

      Reproducible with:

      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()))
      

      Attachments

        Issue Links

          Activity

            People

              svoj Sergey Vojtovich
              svoj Sergey Vojtovich
              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.