File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff 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+
145135fi
You can’t perform that action at this time.
0 commit comments