Skip to content

Commit

Permalink
Fixed a duplicate OOS trials bug in pquery-results.sh, compiled and a…
Browse files Browse the repository at this point in the history
…ddded pquery2-ms8 for use with ms/ps 8.0 based on new caching_sha2_password auth plugin, config updates
  • Loading branch information
RoelVdP committed Jan 29, 2018
1 parent 2c9ed7e commit e4e2dc2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
14 changes: 13 additions & 1 deletion pquery-results.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,19 @@ OOS5=$(ls -s */data/core* 2>/dev/null | grep -o "^ *0 [^/]\+" | awk '{print $2}'
OOS="$(echo "${OOS1} ${OOS2} ${OOS3} ${OOS4} ${OOS5}" | sed "s| | |g")"
if [ "$(echo "${OOS}" | sed "s| ||g")" != "" ]; then
echo "================ Likely out of disk space trials:"
echo "$(echo "${OOS}" | tr ' ' '\n' | sort -u | tr '\n' ' ' | sed 's|$|\n|;s|^ \+||')"
echo "$(echo "${OOS}" | tr ' ' '\n' | sort -nu | tr '\n' ' ' | sed 's|$|\n|;s|^ \+||')"
fi

# Likely result of 'RELEASE' command (client connection lost resulting in pquery seeing >200 x 'MySQL server has gone away'
# For the moment, these can simply be deleted. In time, pquery itself should handle this better by reconnecting to mysqld
# However, in such case reducer replay needs to be checked as well; does it continue replaying the SQL via a live client connection
# when RELEASE was seen? Likely not for mysql cli mode, but for pquery (which is then updated to do so) it would be fine, and
# many testcases would not end up with an eventual RELEASE so they would replay at the mysql cli just fine, or otherwise the
# pquery replay method can be used in the replay only works via pquery (as usual).
REL1=$(grep -m1 -B2 "MySQL server has gone away" */default.node.tld_thread-0.sql | grep -i "RELEASE[ \t]*;" | sed 's|/.*||' | sort -nu | tr '\n' ' ')
if [ "$REL1" != "" ]; then
echo "================ Likely 'Server has gone away' 200x due to 'RELEASE' sql:"
echo "${REL1}"
fi

# Coredumps overview (for comparison)
Expand Down
4 changes: 2 additions & 2 deletions pquery-run-PS80-gen.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
# Please do not change this file unless your name is listed above. As a template/default, it is the only configuration file which is maintained whenever pquery-run.sh is updated.

# ========================================= User configurable variables: generics 1 ===============================================
PQUERY_BIN=${SCRIPT_PWD}/pquery/pquery2-ps # pquery2-ps: Percona Server, pquery2-ms: MySQL, pquery2-ws: WS/FB: WSS/fb-mysql, pquery-md: MariaDB
PQUERY_BIN=${SCRIPT_PWD}/pquery/pquery2-ms8 # pquery2-ps: Percona Server, pquery2-ms: MySQL, pquery2-ws: WS/FB: WSS/fb-mysql, pquery-md: MariaDB
USE_GENERATOR_INSTEAD_OF_INFILE=1 # If enabled, high quality generated SQL is used (the generator is located in percona-qa/generator)
ADD_INFILE_TO_GENERATED_SQL=0 # If enabled, and if USE_GENERATOR_INSTEAD_OF_INFILE=1, then the INFILE is added to the generator output
# Should be used with caution when a lage INFILE is used. It is ideal for small input files (feature testing)
INFILE=${SCRIPT_PWD}/pquery/main-ms-ps-md.sql.tar.xz # Default: main-ms-ps-md.sql (mtr_to_sql.sh of all major distro's + engine mix). Use main-ws.sql for mysql-fb
OPTIONS_INFILE=${SCRIPT_PWD}/pquery/mysqld_options_ps_80.txt # Set to the right distribution + version to match mysqld options (as generated by generate_mysqld_options.sh)
# mysqld_options_ps_56.txt, mysqld_options_ms_56.txt, mysqld_options_ms_57.txt, mysqld_options_ps_55.txt etc.
TOKUDB_OPTIONS_INFILE=${SCRIPT_PWD}/pquery/mysqld_options_tokudb.txt # TokuDB options list
BASEDIR=/sda/PS161017-mysql-8.0.3-rc-linux-x86_64-debug # MySQL Basedir. Required for all runs, including PXC
BASEDIR=/sda/MS270118-mysql-8.0.4-rc-linux-x86_64-debug # MySQL Basedir. Required for all runs, including PXC
WORKDIR=/sda/$RANDOMD # Working directory. Here we keep the log files, option list, failed items. Please leave $RANDOMD!
RUNDIR=/dev/shm/$RANDOMD # Run directory. Keeps a copy of the data dir template & stores mysqld runs (--datadir=x). Pls leave $RANDOMD!
SYSBENCH_DATALOAD=0 # Sysbench data load. Normally set to 0 (off)
Expand Down
4 changes: 2 additions & 2 deletions pquery-run-PS80.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
# Please do not change this file unless your name is listed above. As a template/default, it is the only configuration file which is maintained whenever pquery-run.sh is updated.

# ========================================= User configurable variables: generics 1 ===============================================
PQUERY_BIN=${SCRIPT_PWD}/pquery/pquery2-ps # pquery2-ps: Percona Server, pquery2-ms: MySQL, pquery2-ws: WS/FB: WSS/fb-mysql, pquery-md: MariaDB
PQUERY_BIN=${SCRIPT_PWD}/pquery/pquery2-ms8 # pquery2-ps: Percona Server, pquery2-ms: MySQL, pquery2-ws: WS/FB: WSS/fb-mysql, pquery-md: MariaDB
USE_GENERATOR_INSTEAD_OF_INFILE=0 # If enabled, high quality generated SQL is used (the generator is located in percona-qa/generator)
ADD_INFILE_TO_GENERATED_SQL=0 # If enabled, and if USE_GENERATOR_INSTEAD_OF_INFILE=1, then the INFILE is added to the generator output
# Should be used with caution when a lage INFILE is used. It is ideal for small input files (feature testing)
INFILE=${SCRIPT_PWD}/pquery/main-ms-ps-md.sql.tar.xz # Default: main-ms-ps-md.sql (mtr_to_sql.sh of all major distro's + engine mix). Use main-ws.sql for mysql-fb
OPTIONS_INFILE=${SCRIPT_PWD}/pquery/mysqld_options_ps_80.txt # Set to the right distribution + version to match mysqld options (as generated by generate_mysqld_options.sh)
# mysqld_options_ps_56.txt, mysqld_options_ms_56.txt, mysqld_options_ms_57.txt, mysqld_options_ps_55.txt etc.
TOKUDB_OPTIONS_INFILE=${SCRIPT_PWD}/pquery/mysqld_options_tokudb.txt # TokuDB options list
BASEDIR=/sda/PS161017-mysql-8.0.3-rc-linux-x86_64-debug # MySQL Basedir. Required for all runs, including PXC
BASEDIR=/sda/MS270118-mysql-8.0.4-rc-linux-x86_64-debug # MySQL Basedir. Required for all runs, including PXC
WORKDIR=/sda/$RANDOMD # Working directory. Here we keep the log files, option list, failed items. Please leave $RANDOMD!
RUNDIR=/dev/shm/$RANDOMD # Run directory. Keeps a copy of the data dir template & stores mysqld runs (--datadir=x). Pls leave $RANDOMD!
SYSBENCH_DATALOAD=0 # Sysbench data load. Normally set to 0 (off)
Expand Down
Binary file added pquery/pquery2-ms8
Binary file not shown.

0 comments on commit e4e2dc2

Please sign in to comment.