Uploaded image for project: 'MariaDB MaxScale'
  1. MariaDB MaxScale
  2. MXS-6745

maxctrl2: output of 'show qc_cache' is not consistent with old maxctrl

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 25.10.3
    • None
    • maxctrl
    • None

    Description

      maxctrl2 outputs multiple key-value tables and not a single table. This also breaks the --tsv mode when used to generate TSV data for plotting query timings.

      Original:

      ┌──────────────────────────────────┬──────┬───────┬───────────────┬──────────────────────┬──────────────┬──────────────────────────────────────┬──────┐
      │ Statement                        │ Hits │ Count │ Avg. Duration │ Moving Avg. Duration │ Sum Duration │ Type                                 │ Size │
      ├──────────────────────────────────┼──────┼───────┼───────────────┼──────────────────────┼──────────────┼──────────────────────────────────────┼──────┤
      │ KILL QUERY ?                     │ 3    │ 0     │ 0.000         │ 0.000                │ 0.000        │ sql::TYPE_WRITE                      │ 372  │
      ├──────────────────────────────────┼──────┼───────┼───────────────┼──────────────────────┼──────────────┼──────────────────────────────────────┼──────┤
      │ select ? as q1                   │ 0    │ 1     │ 0.000         │ 0.000                │ 0.000        │ sql::TYPE_READ                       │ 374  │
      ├──────────────────────────────────┼──────┼───────┼───────────────┼──────────────────────┼──────────────┼──────────────────────────────────────┼──────┤
      │ select ? as q3                   │ 0    │ 1     │ 0.000         │ 0.000                │ 0.000        │ sql::TYPE_READ                       │ 374  │
      ├──────────────────────────────────┼──────┼───────┼───────────────┼──────────────────────┼──────────────┼──────────────────────────────────────┼──────┤
      │ select ? as q4                   │ 0    │ 1     │ 0.000         │ 0.000                │ 0.000        │ sql::TYPE_READ                       │ 374  │
      ├──────────────────────────────────┼──────┼───────┼───────────────┼──────────────────────┼──────────────┼──────────────────────────────────────┼──────┤
      │ select ? as q2                   │ 0    │ 1     │ 0.000         │ 0.000                │ 0.000        │ sql::TYPE_READ                       │ 374  │
      ├──────────────────────────────────┼──────┼───────┼───────────────┼──────────────────────┼──────────────┼──────────────────────────────────────┼──────┤
      │ select @@version_comment limit ? │ 0    │ 1     │ 0.008         │ 0.000                │ 0.008        │ sql::TYPE_READ|sql::TYPE_SYSVAR_READ │ 392  │
      └──────────────────────────────────┴──────┴───────┴───────────────┴──────────────────────┴──────────────┴──────────────────────────────────────┴──────┘
      

      Maxctrl 2:

      ┌──────────────────────┬─────────────────┐
      │ Statement            │ KILL QUERY ?    │
      ├──────────────────────┼─────────────────┤
      │ Hits                 │ 3               │
      ├──────────────────────┼─────────────────┤
      │ Count                │ 0.0             │
      ├──────────────────────┼─────────────────┤
      │ Avg. Duration        │ 0.000           │
      ├──────────────────────┼─────────────────┤
      │ Moving Avg. Duration │ 0.000           │
      ├──────────────────────┼─────────────────┤
      │ Sum Duration         │ 0.000           │
      ├──────────────────────┼─────────────────┤
      │ Type                 │ sql::TYPE_WRITE │
      ├──────────────────────┼─────────────────┤
      │ Size                 │ 372             │
      └──────────────────────┴─────────────────┘
      ┌──────────────────────┬────────────────┐
      │ Statement            │ select ? as q1 │
      ├──────────────────────┼────────────────┤
      │ Hits                 │ 0              │
      ├──────────────────────┼────────────────┤
      │ Count                │ 1.0            │
      ├──────────────────────┼────────────────┤
      │ Avg. Duration        │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Moving Avg. Duration │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Sum Duration         │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Type                 │ sql::TYPE_READ │
      ├──────────────────────┼────────────────┤
      │ Size                 │ 374            │
      └──────────────────────┴────────────────┘
      ┌──────────────────────┬────────────────┐
      │ Statement            │ select ? as q3 │
      ├──────────────────────┼────────────────┤
      │ Hits                 │ 0              │
      ├──────────────────────┼────────────────┤
      │ Count                │ 1.0            │
      ├──────────────────────┼────────────────┤
      │ Avg. Duration        │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Moving Avg. Duration │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Sum Duration         │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Type                 │ sql::TYPE_READ │
      ├──────────────────────┼────────────────┤
      │ Size                 │ 374            │
      └──────────────────────┴────────────────┘
      ┌──────────────────────┬────────────────┐
      │ Statement            │ select ? as q4 │
      ├──────────────────────┼────────────────┤
      │ Hits                 │ 0              │
      ├──────────────────────┼────────────────┤
      │ Count                │ 1.0            │
      ├──────────────────────┼────────────────┤
      │ Avg. Duration        │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Moving Avg. Duration │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Sum Duration         │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Type                 │ sql::TYPE_READ │
      ├──────────────────────┼────────────────┤
      │ Size                 │ 374            │
      └──────────────────────┴────────────────┘
      ┌──────────────────────┬────────────────┐
      │ Statement            │ select ? as q2 │
      ├──────────────────────┼────────────────┤
      │ Hits                 │ 0              │
      ├──────────────────────┼────────────────┤
      │ Count                │ 1.0            │
      ├──────────────────────┼────────────────┤
      │ Avg. Duration        │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Moving Avg. Duration │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Sum Duration         │ 0.000          │
      ├──────────────────────┼────────────────┤
      │ Type                 │ sql::TYPE_READ │
      ├──────────────────────┼────────────────┤
      │ Size                 │ 374            │
      └──────────────────────┴────────────────┘
      ┌──────────────────────┬──────────────────────────────────────┐
      │ Statement            │ select @@version_comment limit ?     │
      ├──────────────────────┼──────────────────────────────────────┤
      │ Hits                 │ 0                                    │
      ├──────────────────────┼──────────────────────────────────────┤
      │ Count                │ 1.0                                  │
      ├──────────────────────┼──────────────────────────────────────┤
      │ Avg. Duration        │ 0.008                                │
      ├──────────────────────┼──────────────────────────────────────┤
      │ Moving Avg. Duration │ 0.000                                │
      ├──────────────────────┼──────────────────────────────────────┤
      │ Sum Duration         │ 0.008                                │
      ├──────────────────────┼──────────────────────────────────────┤
      │ Type                 │ sql::TYPE_READ|sql::TYPE_SYSVAR_READ │
      ├──────────────────────┼──────────────────────────────────────┤
      │ Size                 │ 392                                  │
      └──────────────────────┴──────────────────────────────────────┘
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.