Public bug reported:

Copy of http://bugs.mysql.com/bug.php?id=71761:

[18 Feb 2014 15:03] Laurynas Biveinis
Description:
1. An InnoDB table receives many updates and is added to the background stats 
processing queue.
2. Updates stop, an ANALYZE TABLE request comes, and the table stats are 
recalculated.
3. Some time later, the background stats thread picks up this table and 
recalculates its stats even though they are already up to date.

How to repeat:
Run write workload on a table, stop it, ANALYZE TABLE, observe the background 
stats thread recalculating its stats again.

Suggested fix:
One way to fix it is to add dict_stats_recalc_pool_del(ib_table), guarded by 
dict_mutex_enter/exit_for_mysql(), to ha_innobase::info_low if(is_analyze || 
innobase_stats_on_metadata).

** Affects: mysql-server
     Importance: Unknown
         Status: Unknown

** Affects: percona-server
     Importance: Medium
     Assignee: Laurynas Biveinis (laurynas-biveinis)
         Status: New

** Affects: percona-server/5.5
     Importance: Undecided
         Status: Invalid

** Affects: percona-server/5.6
     Importance: Medium
     Assignee: Laurynas Biveinis (laurynas-biveinis)
         Status: In Progress

** Affects: percona-server/5.7
     Importance: Medium
     Assignee: Laurynas Biveinis (laurynas-biveinis)
         Status: New


** Tags: innodb upstream

** Bug watch added: MySQL Bug System #71761
   http://bugs.mysql.com/bug.php?id=71761

** Also affects: mysql-server via
   http://bugs.mysql.com/bug.php?id=71761
   Importance: Unknown
       Status: Unknown

** Also affects: percona-server/5.7
   Importance: Undecided
       Status: New

** Also affects: percona-server/5.5
   Importance: Undecided
       Status: New

** Also affects: percona-server/5.6
   Importance: Undecided
       Status: New

** Changed in: percona-server/5.5
       Status: New => Invalid

** Changed in: percona-server/5.6
     Assignee: (unassigned) => Laurynas Biveinis (laurynas-biveinis)

** Changed in: percona-server/5.7
     Assignee: (unassigned) => Laurynas Biveinis (laurynas-biveinis)

** Changed in: percona-server/5.6
   Importance: Undecided => Medium

** Changed in: percona-server/5.6
       Status: New => In Progress

** Tags added: innodb upstream

** Changed in: percona-server/5.7
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Server/Client Support Team, which is subscribed to MySQL.
Matching subscriptions: Ubuntu Server/Client Support Team
https://bugs.launchpad.net/bugs/1626441

Title:
  ANALYZE TABLE should remove its table from background stat processing
  queue

To manage notifications about this bug go to:
https://bugs.launchpad.net/mysql-server/+bug/1626441/+subscriptions

-- 
Mailing list: https://launchpad.net/~enterprise-support
Post to     : enterprise-support@lists.launchpad.net
Unsubscribe : https://launchpad.net/~enterprise-support
More help   : https://help.launchpad.net/ListHelp

Reply via email to