Issue at shutdown: Error in my_thread_global_end(): 2 threads didn't exit

Bug #1190774 reported by Raghavendra D Prabhu
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MySQL patches by Codership
Status tracked in 5.6
5.5
New
Undecided
Unassigned
5.6
New
Undecided
Unassigned
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Status tracked in 5.6
5.5
Fix Released
Medium
Unassigned
5.6
Fix Released
Medium
Unassigned

Bug Description

Seeing this at shutdown:

130613 22:38:11 [Note] WSREP: Flow-control interval: [0, 0]
130613 22:38:11 [Note] WSREP: Received SELF-LEAVE. Closing connection.
130613 22:38:11 [Note] WSREP: Shifting OPEN -> CLOSED (TO: 16)
130613 22:38:11 [Note] WSREP: RECV thread exiting 0: Success
130613 22:38:11 [Note] WSREP: recv_thread() joined.
130613 22:38:11 [Note] WSREP: Closing slave action queue.
130613 22:38:11 [Note] WSREP: Service disconnected.
130613 22:38:11 [Note] WSREP: rollbacker thread exiting
130613 22:38:12 [Note] WSREP: Some threads may fail to exit.
130613 22:38:12 [Note] /pxc/bin/mysqld: Shutdown complete

Error in my_thread_global_end(): 2 threads didn't exit

=============================================================

In mysqld.cc:

  // Note: We can't call THD destructor without crashing
  // if plugins have not been initialized. However, in most of the
  // cases this means that pre SE initialization SST failed and
  // we are going to exit anyway.
  if (plugins_are_initialized)
  {
    net_end(&thd->net);
    MYSQL_CALLBACK(thread_scheduler, end_thread, (thd, 1));
  }
  else
  {
    // TODO: lightweight cleanup to get rid of:
    // 'Error in my_thread_global_end(): 2 threads didn't exit'
    // at server shutdown
  }

So, this bug is to track that and resolve it.

Changed in percona-xtradb-cluster:
milestone: none → 5.5.31-25
Changed in percona-xtradb-cluster:
milestone: 5.5.33-23.7.6 → future-5.5
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1070

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.