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

Thread status not changed when applying log events

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.0.9
    • 10.0.11
    • None
    • None

    Description

      The thread status of the SQL thread is not changed when it starts to apply a log event. The result is that the SQL thread has the status of "System lock" for the whole time it is executing relay log events.

      The status of the thread should be changed when it starts to execute an event.

      Attachments

        Activity

           +++ sql/log_event.cc    2014-03-19 19:24:26 +0000
           @@ -9622,6 +9622,7 @@ int Rows_log_event::do_apply_event(rpl_g
                  goto err;
                }
           
           +    THD_STAGE_INFO(thd, stage_executing);
                /*

          kolbe Kolbe Kegel (Inactive) added a comment - +++ sql/log_event.cc 2014-03-19 19:24:26 +0000 @@ -9622,6 +9622,7 @@ int Rows_log_event::do_apply_event(rpl_g goto err; }   + THD_STAGE_INFO(thd, stage_executing); /*
          kolbe Kolbe Kegel (Inactive) added a comment - - edited

          That first patch Monty proposed didn't do it, but this other one he proposed does:

          +++ sql/log_event.cc    2014-03-20 16:59:38.112399862 +0000
          @@ -11183,6 +11183,7 @@ int Rows_log_event::do_apply_event(Relay
                   break;
               }
           
          +    THD_STAGE_INFO(thd, stage_executing);
               do {
           
                 error= (this->*do_apply_row_ptr)(rli);

          kolbe Kolbe Kegel (Inactive) added a comment - - edited That first patch Monty proposed didn't do it, but this other one he proposed does: +++ sql/log_event.cc 2014-03-20 16:59:38.112399862 +0000 @@ -11183,6 +11183,7 @@ int Rows_log_event::do_apply_event(Relay break; }   + THD_STAGE_INFO(thd, stage_executing); do {   error= (this->*do_apply_row_ptr)(rli);

          Fixed.

          monty Michael Widenius added a comment - Fixed.

          People

            monty Michael Widenius
            kolbe Kolbe Kegel (Inactive)
            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.