Skip to content

Commit a93237d

Browse files
authored
PMM-14032 setup changes for 3.2.0 test cases (#141)
* PMM-14032 setup changes for 3.2.0 test cases * Update pg_stat_statements_setup.sh * PMM-14032 ps setup fix
1 parent c3e34ac commit a93237d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

pmm_qa/client_container_ps_setup.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ chmod 1777 /tmp || true
4747

4848
## Deploy DB deployer
4949
export tar_ball_name=$(ls Percona-Server*)
50-
dbdeployer unpack ${tar_ball_name} --sandbox-binary=~/ps${ps_version} --flavor=percona
50+
dbdeployer unpack ${tar_ball_name} --sandbox-binary=~/ps${ps_version} --flavor=percona
5151
export db_version_sandbox=$(ls ~/ps${ps_version})
5252

5353
export db_sandbox=$(dbdeployer sandboxes | awk -F' ' '{print $1}')
@@ -120,10 +120,12 @@ if [[ "$number_of_nodes" == 1 ]];then
120120
pmm-admin add mysql --query-source=$query_source --username=msandbox --password=msandbox --environment=ms-prod --cluster=ps-prod-cluster --replication-set=ps-repl ps-group-replication-node-$j-${SERVICE_RANDOM_NUMBER} --debug 127.0.0.1:$node_port
121121
node_port=$(($node_port + 1))
122122
sleep 20
123-
done
123+
done
124124
else
125125
#run_workload 127.0.0.1 msandbox msandbox $node_port mysql mysql-single
126126
pmm-admin add mysql --query-source=$query_source --username=msandbox --password=msandbox --environment=dev --cluster=dev-cluster --replication-set=repl1 ps-single-${SERVICE_RANDOM_NUMBER} 127.0.0.1:$node_port
127+
sleep 20
128+
mysql -h 127.0.0.1 -u msandbox -pmsandbox --port $node_port -e "set long_query_time = 0; INSERT INTO T2033 ( ID, Value ) VALUES (1,1)" || true
127129
fi
128130
else
129131
dbdeployer deploy multiple ${db_version_sandbox} --sandbox-binary=~/ps${ps_version} --nodes $number_of_nodes --force --remote-access=% --bind-address=0.0.0.0 --my-cnf-options=gtid_mode=ON --my-cnf-options=enforce-gtid-consistency=ON --my-cnf-options=binlog-format=ROW --my-cnf-options=log-slave-updates=ON --my-cnf-options=binlog-checksum=NONE ${my_cnf_options:+--my-cnf-options="$my_cnf_options"}
@@ -172,6 +174,8 @@ else
172174
fi
173175
#run_workload 127.0.0.1 msandbox msandbox $node_port mysql mysql-multiple-node
174176
sleep 20
177+
178+
mysql -h 127.0.0.1 -u msandbox -pmsandbox --port $node_port -e "set long_query_time = 0; INSERT INTO T2033 ( ID, Value ) VALUES (1,1)" || true
175179
done
176180
fi
177181

pmm_qa/pg_stat_statements_setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ echo "CREATE DATABASE sbtest2;" >> /home/postgres/init.sql
8484
echo "CREATE USER pmm WITH PASSWORD 'pmm';" >> /home/postgres/init.sql
8585
echo "GRANT pg_monitor TO pmm;" >> /home/postgres/init.sql
8686
echo "ALTER USER postgres PASSWORD 'pass+this';" >> /home/postgres/init.sql
87+
echo "ALTER SYSTEM SET max_locks_per_transaction = 1024;" >> /home/postgres/init.sql
8788

8889
# Start server, run init.sql and Create extension PGSM
8990
service postgresql start

0 commit comments

Comments
 (0)