Skip to content

Commit 7945778

Browse files
authored
Remove wait (#263)
1 parent e167ff7 commit 7945778

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

tools/run_experiment.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -125,21 +125,11 @@ if [[ "$EXPERIMENT_MODE" == "snapshot" ]]; then
125125
curl -X PUT \
126126
"http://${PRIVATE_IP_OF_THE_SERVER}:6333/collections/benchmark/snapshots/recover" \
127127
--data-raw "{\"location\": \"${SNAPSHOT_URL}\"}"
128+
echo ""
128129
echo "Done recovering collection from snapshot"
129130

130131
collection_url="http://${PRIVATE_IP_OF_THE_SERVER}:6333/collections/benchmark"
131132
collection_status=$(curl -s "$collection_url" | jq -r '.result.status')
132-
counter=0
133-
while [[ "$collection_status" != "green" && "$counter" -lt 5 ]]; do
134-
collection_status=$(curl -s "$collection_url" | jq -r '.result.status')
135-
counter=$(expr $counter + 1)
136-
sleep 1
137-
done
138-
139-
if [[ "$collection_status" == "green" ]]; then
140-
echo "Experiment stage: Done"
141-
else
142-
echo "Experiment interrupted: collection is not ready."
143-
exit 1
144-
fi
133+
echo "Experiment stage: collection status is ${collection_status} after recovery"
134+
145135
fi

0 commit comments

Comments
 (0)