
The configuration used an invalid parameter name which caused the two MaxScales to use the same directory for persisted configurations. The test also tried to sync with the wrong server causing the same listener to be created twice on the same port but on different MaxScales. Cleaned up the startup and shutdown scripts to always start from a clean state.
21 lines
299 B
Bash
Executable File
21 lines
299 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# This script is run after each test block. It kills the MaxScale process.
|
|
#
|
|
|
|
maxscaledir=$MAXSCALE_DIR
|
|
|
|
test -z "$MAXSCALE_DIR" && exit 1
|
|
|
|
for ((i=0;i<20;i++))
|
|
do
|
|
pkill '^maxscale$' || break
|
|
sleep 0.5
|
|
done
|
|
|
|
# If it wasn't dead before, now it is
|
|
pkill -9 '^maxscale$'
|
|
|
|
exit 0
|