Uploaded image for project: 'Percona XtraDB Cluster'
  1. Percona XtraDB Cluster
  2. PXC-3210

Introduce new auxiliary inc files for general use cases for MTR tests.

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: On Hold
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 8.0.x
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      Currently, in most of the Galera MTR tests, we see a patterns like below
      1.

      --let $wait_condition = SELECT VARIABLE_VALUE = 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size'
      --source include/wait_condition.inc
      

       

      This is done to wait until the cluster reaches the desired state.

      2.

      --let $wait_condition = SELECT VARIABLE_VALUE = 'Synced' FROM performance_schema.global_status WHERE VARIABLE_NAME = 'wsrep_local_state_comment';
      --source include/wait_condition.inc

       

      This is done to wait until the cluster status changes to the 'Synced' state.

      Similarly, there exist many such use cases which are currently being done through waits. This ticket aims at finding out such common cases and introducing new auxiliary .inc files for increasing the readability of MTR tests.

      Note: This is only for the 8.0 branch and doesn't aim other GA versions.

        Smart Checklist

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              venkatesh.prasad Venkatesh Prasad
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: