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

rpl.rpl_semi_sync_wait_point crashes because of thd_destructor_proxy

Details

    Description

      rpl.rpl_semi_sync_wait_point crashes because of thd_destructor_proxy kills innodb
      service threads before all slave threads has ended.

      What happens is that proxy detects that no transactions are active and starts
      srv_shutdown_bg_undo_sources(), but fails to take into account that new transactions
      can still start, especially be slave but also by other threads. In addition there is no
      mute when checking for active transaction so this is not safe.

      Suggestion is to mark innodb server threads and in close_connection first shutdown all other threads, including events, and then last inform destructor proxy and other innodb threads that they can now safely be shut down.

      Attachments

        Issue Links

          Activity

            Transition Time In Source Status Execution Times
            Sergei Golubchik made transition -
            Open In Progress
            3d 20h 13m 1
            Sergei Golubchik made transition -
            In Progress Stalled
            3s 1
            Sergei Golubchik made transition -
            Stalled Closed
            2d 8h 45m 1

            People

              serg Sergei Golubchik
              monty Michael Widenius
              Votes:
              0 Vote for this issue
              Watchers:
              4 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.