Uploaded image for project: 'ProxySQL Admin Scripts'
  1. ProxySQL Admin Scripts
  2. PSQLADM-113

proxysql_galera_checker assumes parameters given in long format

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Pending Release
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 1.4.10
    • Fix Version/s: 1.4.12
    • Component/s: None
    • Labels:
      None

      Description

      proxysql-1.4.10-1.1.el7.x86_64

      proxysql_galera_checker help shows long and short versions of most flags:

      # /usr/bin/proxysql_galera_checker --help
      Usage: proxysql_galera_checker --write-hg=10 --read-hg=11 --config-file=/etc/proxysql-admin.cnf --log=/var/lib/proxysql/pxc_test_proxysql_galera_check.logOptions:
        -w, --write-hg=<NUMBER>             Specify ProxySQL write hostgroup.
        -r, --read-hg=<NUMBER>              Specify ProxySQL read hostgroup.
      ...
      
      proxysql> INSERT INTO scheduler (id, active, interval_ms, filename, arg1, comment) VALUES (1, 1, 3000, '/usr/bin/proxysql_galera_checker', '-w 10 -r 20 -n 1 -m singlewrite -l /tmp/checker.log', 'mycluster');

      But proxysql_galera_checker only looks for long format:

      line 1938:    scheduler_id=$(proxysql_exec $LINENO -Ns "SELECT id FROM scheduler where arg1 LIKE '%--write-hg=$HOSTGROUP_WRITER_ID %'")
      

        Attachments

          Activity

            People

            • Assignee:
              kenn.takara Kenn Takara
              Reporter:
              matthew.boehm@percona.com Matthew Boehm
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 2 hours
                2h