fix(snapshot): background service restart after restore to prevent rpcd timeout

This commit is contained in:
Dushnilin
2026-09-09 15:11:18 +03:00
parent 70f09e8ea9
commit a54917501c
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -133,6 +133,10 @@ printf '%s\n' 'changed-data' >"$WORK_DIR/tachyon/data"
run_uc snapshot-restore "$SAVED_FILE" >"$WORK_DIR/result.json"
grep -Fq '"success": true' "$WORK_DIR/result.json" ||
fail "snapshot-restore must report success"
for _ in $(seq 1 30); do
grep -Fxq 'restart' "$WORK_DIR/bin.log" 2>/dev/null && break
sleep 0.1
done
grep -Fxq 'restart' "$WORK_DIR/bin.log" ||
fail "snapshot-restore must restart the service through the backend entrypoint"
grep -Fq "option dns '8.8.8.8'" "$WORK_DIR/config/tachyon" ||