Uploaded image for project: 'Percona Toolkit'
  1. Percona Toolkit
  2. PT-817

LP #1404313: pt-query-digest: specifying a file that doesn't exist as log causes the tool to wait for STDIN instead of giving an error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None

      Description

      **Reported in Launchpad by Kenny Gryp last update 15-04-2015 15:41:13

      if you specify a file to process that does not exist, pt-query-digest waits forever. Often you will think that it's just slow to process, until you check and find out that it's not using any CPU at all.
      <code>
      Pertop:consulting gryp$ pt-query-digest filethatdoesntexist
      ^C# Caught SIGINT.
      </code>

      Basically, the tool waits for STDIN data.

      The good behavior should be that pt-query-digest exits when the file is not found.

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              lpjirasync lpjirasync (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: