Skip sanity on blockstreamer node at cluster boot.
It may not have caught up to the bootstrap leader yet...
This commit is contained in:
@ -491,6 +491,8 @@ startClient() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sanity() {
|
sanity() {
|
||||||
|
declare skipBlockstreamerSanity=$1
|
||||||
|
|
||||||
$metricsWriteDatapoint "testnet-deploy net-sanity-begin=1"
|
$metricsWriteDatapoint "testnet-deploy net-sanity-begin=1"
|
||||||
|
|
||||||
declare ok=true
|
declare ok=true
|
||||||
@ -508,7 +510,7 @@ sanity() {
|
|||||||
) || ok=false
|
) || ok=false
|
||||||
$ok || exit 1
|
$ok || exit 1
|
||||||
|
|
||||||
if [[ -n $blockstreamer ]]; then
|
if [[ -z $skipBlockstreamerSanity && -n $blockstreamer ]]; then
|
||||||
# If there's a blockstreamer node run a reduced sanity check on it as well
|
# If there's a blockstreamer node run a reduced sanity check on it as well
|
||||||
echo "--- Sanity: $blockstreamer"
|
echo "--- Sanity: $blockstreamer"
|
||||||
(
|
(
|
||||||
@ -675,7 +677,8 @@ deploy() {
|
|||||||
stopNode "$ipAddress" true
|
stopNode "$ipAddress" true
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
sanity
|
sanity skipBlockstreamerSanity # skip sanity on blockstreamer node, it may not
|
||||||
|
# have caught up to the bootstrap leader yet
|
||||||
|
|
||||||
SECONDS=0
|
SECONDS=0
|
||||||
for ((i=0; i < "$numClients" && i < "$numClientsRequested"; i++)) do
|
for ((i=0; i < "$numClients" && i < "$numClientsRequested"; i++)) do
|
||||||
|
Reference in New Issue
Block a user