Purge PS tables and metadata_lock

Comments

4 comments

  • Avatar
    Ashraf Sharif

    Hi,

    Can you run the following statement on one of the DB node?

    SELECT COUNT(schema_name) AS Rows FROM performance_schema.events_statements_summary_by_digest WHERE SCHEMA_NAME NOT IN ('information_schema', 'mysql', 'performance_schema', 'sys') AND SCHEMA_NAME <> 'NULL' AND LAST_SEEN > DATE_SUB(NOW(), INTERVAL 1 SECOND);

    The above shall return the number of rows to tell how big the resultset is for your workload. This will give us ideas on how to reproduce the issue and provide fix if required.

    Regards,
    Ashraf

    0
    Comment actions Permalink
  • Avatar
    lale

    Hi Ashraf and thanks for answering.

    The result of

    SELECT COUNT(schema_name) AS Rows FROM performance_schema.events_statements_summary_by_digest WHERE SCHEMA_NAME NOT IN ('information_schema', 'mysql', 'performance_schema', 'sys') AND SCHEMA_NAME <> 'NULL' AND LAST_SEEN > DATE_SUB(NOW(), INTERVAL 1 SECOND);

    is 0.

    BTW: if I restart cmon avery 30 minutes, the issue doesn't appear

    Thanks

    0
    Comment actions Permalink
  • Avatar
    Ashraf Sharif

    Hi,

    We haven't had any luck to reproduce this problem with Overview page but we got the idea on why the metadata lock happens when truncating the PS table. Purging PS will be optional via a purge button in the next release (1.6).

    Regards,
    Ashraf

    0
    Comment actions Permalink
  • Avatar
    lale

    Thanks!

    we will wait the next release then.

     

    Regards,

    Lale

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk