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

information_schema.processlist reports incorrect value for Time (2147483647)

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.0.2, 5.5.31, 5.1.67, 5.2.14, 5.3.12
    • 10.0.4, 5.5.32
    • None
    • None
    • Debian Squeeze (6.0.6) x86_64, Linux 3.2.40. Compiled locally. This is 5.5.28-MariaDB-log.

    Description

      In the information_schema.processlist table, the Time column frequently reports an incorrect value of 2147483647. "show processlist" is not similarly affected. From my testing, I'm reasonably sure these queries are all less than 1 second old. I do see plenty of processes reported with an accurate Time value (>=1).

      Examples (with some obfuscation):

      *************************** 1. row ***************************
             ID: 81365
           USER: xxx
           HOST: xxx
             DB: xxx
        COMMAND: Query
           TIME: 2147483647
          STATE: Sending data
           INFO: select xxx left outer join xxx on xxx where xxx
        TIME_MS: 18446744073709550.000
          STAGE: 0
      MAX_STAGE: 0
       PROGRESS: 0.000
       
      *************************** 1. row ***************************
             ID: 82602
           USER: xxx
           HOST: xxx
             DB: xxx
        COMMAND: Query
           TIME: 2147483647
          STATE: optimizing
           INFO: select xxx from xxx where xxx
        TIME_MS: 18446744073709550.000
          STAGE: 0
      MAX_STAGE: 0
       PROGRESS: 0.000

      Attachments

        Issue Links

          Activity

            jnicol Jonathan Nicol created issue -
            elenst Elena Stepanova made changes -
            Field Original Value New Value
            Description In the information_schema.processlist table, the Time column frequently reports an incorrect value of 2147483647. "show processlist" is not similarly affected. From my testing, I'm reasonably sure these queries are all less than 1 second old. I do see plenty of processes reported with an accurate Time value (>=1).

            Examples (with some obfuscation):
            *************************** 1. row ***************************
                   ID: 81365
                 USER: xxx
                 HOST: xxx
                   DB: xxx
              COMMAND: Query
                 TIME: 2147483647
                STATE: Sending data
                 INFO: select xxx left outer join xxx on xxx where xxx
              TIME_MS: 18446744073709550.000
                STAGE: 0
            MAX_STAGE: 0
             PROGRESS: 0.000

            *************************** 1. row ***************************
                   ID: 82602
                 USER: xxx
                 HOST: xxx
                   DB: xxx
              COMMAND: Query
                 TIME: 2147483647
                STATE: optimizing
                 INFO: select xxx from xxx where xxx
              TIME_MS: 18446744073709550.000
                STAGE: 0
            MAX_STAGE: 0
             PROGRESS: 0.000
            In the information_schema.processlist table, the Time column frequently reports an incorrect value of 2147483647. "show processlist" is not similarly affected. From my testing, I'm reasonably sure these queries are all less than 1 second old. I do see plenty of processes reported with an accurate Time value (>=1).

            Examples (with some obfuscation):
            {noformat}
            *************************** 1. row ***************************
                   ID: 81365
                 USER: xxx
                 HOST: xxx
                   DB: xxx
              COMMAND: Query
                 TIME: 2147483647
                STATE: Sending data
                 INFO: select xxx left outer join xxx on xxx where xxx
              TIME_MS: 18446744073709550.000
                STAGE: 0
            MAX_STAGE: 0
             PROGRESS: 0.000

            *************************** 1. row ***************************
                   ID: 82602
                 USER: xxx
                 HOST: xxx
                   DB: xxx
              COMMAND: Query
                 TIME: 2147483647
                STATE: optimizing
                 INFO: select xxx from xxx where xxx
              TIME_MS: 18446744073709550.000
                STAGE: 0
            MAX_STAGE: 0
             PROGRESS: 0.000
            {noformat}

            elenst Elena Stepanova made changes -
            Assignee Elena Stepanova [ elenst ]
            serg Sergei Golubchik made changes -
            serg Sergei Golubchik made changes -
            elenst Elena Stepanova made changes -
            Attachment mdev4578_debug_sync.patch [ 22300 ]
            elenst Elena Stepanova made changes -
            Affects Version/s 5.1.67 [ 12100 ]
            Affects Version/s 5.2.14 [ 12101 ]
            Affects Version/s 5.3.12 [ 12000 ]
            Affects Version/s 10.0.2 [ 11900 ]
            elenst Elena Stepanova made changes -
            Fix Version/s 10.0.3 [ 12900 ]
            Fix Version/s 5.5.32 [ 13000 ]
            Fix Version/s 5.3.13 [ 12602 ]
            elenst Elena Stepanova made changes -
            Assignee Elena Stepanova [ elenst ] Sergei Golubchik [ serg ]
            serg Sergei Golubchik made changes -
            Fix Version/s 10.0.4 [ 13101 ]
            Fix Version/s 10.0.3 [ 12900 ]
            serg Sergei Golubchik made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            serg Sergei Golubchik made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Resolution Fixed [ 1 ]
            Status Closed [ 6 ] Reopened [ 4 ]
            serg Sergei Golubchik made changes -
            Fix Version/s 5.3.13 [ 12602 ]
            serg Sergei Golubchik made changes -
            Resolution Fixed [ 1 ]
            Status Reopened [ 4 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            jb-boin Jean Weisbuch made changes -
            serg Sergei Golubchik made changes -
            Workflow defaullt [ 27541 ] MariaDB v2 [ 46582 ]
            ratzpo Rasmus Johansson (Inactive) made changes -
            Workflow MariaDB v2 [ 46582 ] MariaDB v3 [ 67290 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 67290 ] MariaDB v4 [ 146736 ]

            People

              serg Sergei Golubchik
              jnicol Jonathan Nicol
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.