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

maxctrl2: `list queries` doesn't report an error if retain_last_statement is disabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 25.10.4
    • maxctrl
    • None
    • MXS-SPRINT-277

    Description

      [vagrant@localhost maxctrl-diffs]$ maxctrl list queries
      Error: The 'retain_last_statements' parameter must be enabled for this command to work:
       
        maxctrl alter maxscale retain_last_statements 1
       
      [vagrant@localhost maxctrl-diffs]$ maxctrl2 list queries
      2026-07-22 12:25:31   notice : URL: curl -X GET -u admin:mariadb http://127.0.0.1:8989/v1/sessions
      ┌────┬──────┬──────┬──────────┬───────┐
      │ Id │ User │ Host │ Duration │ Query │
      ├────┼──────┼──────┼──────────┼───────┤
      └────┴──────┴──────┴──────────┴───────┘
      

      Attachments

        Activity

          People

            johan.wikman Johan Wikman
            markus makela markus makela
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.2h Time Not Required
                0.2h

                Git Integration

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