Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.5.33a
    • Fix Version/s: 5.5.34
    • Component/s: None
    • Labels:
    • Environment:
      Debian Squeeze, 64 bit

      Description

      Our MariaDB server is crashing on long semaphor wait. It is happening usually at night when database backups are running (but sometimes also in the middle of the day). I'm 100% sure it's related to one of our users because when i moved him to different server, the problem moves with him. There were enough of memory and we had the same problem with MySQL 5.5. Everytime it happend, the mentioned user is running simultanious SELECT and TRUNCATE on the same table.

        Gliffy Diagrams

          Attachments

          1. global_variables.txt
            11 kB
          2. index_products.frm
            8 kB
          3. my.cnf
            6 kB
          4. mysql.log.gz
            53 kB
          5. mysql2.log.gz
            98 kB

            Activity

            Hide
            azurit azurit added a comment -

            Jan,

            there is attached file 'global_variables.txt' with all global variables from that server - you are probably asking for this:
            performance_schema OFF

            Maybe that user is enabling it locally (if it's possible)?

            Show
            azurit azurit added a comment - Jan, there is attached file 'global_variables.txt' with all global variables from that server - you are probably asking for this: performance_schema OFF Maybe that user is enabling it locally (if it's possible)?
            Hide
            jplindst Jan Lindström added a comment -

            It seems that some of the table statistics are calculated even in the case when performance_schema is off. Especially in case when table becomes empty (truncate table or delete from <table>).

            Show
            jplindst Jan Lindström added a comment - It seems that some of the table statistics are calculated even in the case when performance_schema is off. Especially in case when table becomes empty (truncate table or delete from <table>).
            Hide
            jplindst Jan Lindström added a comment -

            Could you please try MariaDB 5.5.34 with startup variable --innodb_use_stacktrace and if there is again long semaphore wait errors, I would need full error log. There should be additional information that would greatly help to identify the actual issue.

            Show
            jplindst Jan Lindström added a comment - Could you please try MariaDB 5.5.34 with startup variable --innodb_use_stacktrace and if there is again long semaphore wait errors, I would need full error log. There should be additional information that would greatly help to identify the actual issue.
            Hide
            jplindst Jan Lindström added a comment -

            Fixed some incorrect and not logical mutex operations and added a new configuration variable innobase_use_stacktrace (default off) to produce a stack trace from waiting and holding thread if long semaphore wait is detected. These, should help to resolve possible future issues more easily.

            Show
            jplindst Jan Lindström added a comment - Fixed some incorrect and not logical mutex operations and added a new configuration variable innobase_use_stacktrace (default off) to produce a stack trace from waiting and holding thread if long semaphore wait is detected. These, should help to resolve possible future issues more easily.
            Hide
            azurit azurit added a comment -

            Thank you very much, i will try it and report back.

            Show
            azurit azurit added a comment - Thank you very much, i will try it and report back.

              People

              • Assignee:
                jplindst Jan Lindström
                Reporter:
                azurit azurit
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d