Skip to content

fix: harden qdrant restore script and align restore .env example#110

Merged
bennotieno merged 1 commit into
feat/auto-fetch-collections-from-s3from
fix/qdrant-restore-polish
May 19, 2026
Merged

fix: harden qdrant restore script and align restore .env example#110
bennotieno merged 1 commit into
feat/auto-fetch-collections-from-s3from
fix/qdrant-restore-polish

Conversation

@tobias-pfaffelmoser-aa
Copy link
Copy Markdown
Contributor

Follow-up to feat/auto-fetch-collections-from-s3 with three small fixes

  • track_collection: skip the read loop when the jq result is empty. Bash here-strings always append a newline, so done <<< "" would otherwise iterate once with an empty item and write a bogus host, line to $QDRANT_COLLECTIONS_FILE. Affects get_coll against an empty source.
  • generate_snapshot_file_from_s3: fix word order in the non-error exit message so the filename lands in the correct position.
  • UPGRADE-OPERATIONS.md restore example: set QDRANT_SOURCE_HOSTS="" to match the new restore-from-S3-only contract used by the k8s manifests; move the port-forward note to QDRANT_RESTORE_HOSTS where it belongs.
  • Sync configmap-script.yaml via config_map_updater.sh.

Follow-up to feat/auto-fetch-collections-from-s3 with three small fixes
surfaced during review.

- track_collection: skip the read loop when the jq result is empty. Bash
  here-strings always append a newline, so `done <<< ""` would otherwise
  iterate once with an empty item and write a bogus `host,` line to
  $QDRANT_COLLECTIONS_FILE. Affects `get_coll` against an empty source.
- generate_snapshot_file_from_s3: fix word order in the non-error exit
  message so the filename lands in the correct position.
- UPGRADE-OPERATIONS.md restore example: set QDRANT_SOURCE_HOSTS="" to
  match the new restore-from-S3-only contract used by the k8s manifests;
  move the port-forward note to QDRANT_RESTORE_HOSTS where it belongs.
- Sync configmap-script.yaml via config_map_updater.sh.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the fix label May 19, 2026
@bennotieno bennotieno merged commit 5e35d27 into feat/auto-fetch-collections-from-s3 May 19, 2026
3 checks passed
@bennotieno bennotieno deleted the fix/qdrant-restore-polish branch May 19, 2026 08:58
tobias-pfaffelmoser-aa added a commit that referenced this pull request May 19, 2026
Follow-up to feat/auto-fetch-collections-from-s3 with three small fixes
surfaced during review.

- track_collection: skip the read loop when the jq result is empty. Bash
  here-strings always append a newline, so `done <<< ""` would otherwise
  iterate once with an empty item and write a bogus `host,` line to
  $QDRANT_COLLECTIONS_FILE. Affects `get_coll` against an empty source.
- generate_snapshot_file_from_s3: fix word order in the non-error exit
  message so the filename lands in the correct position.
- UPGRADE-OPERATIONS.md restore example: set QDRANT_SOURCE_HOSTS="" to
  match the new restore-from-S3-only contract used by the k8s manifests;
  move the port-forward note to QDRANT_RESTORE_HOSTS where it belongs.
- Sync configmap-script.yaml via config_map_updater.sh.
tobias-pfaffelmoser-aa added a commit that referenced this pull request May 19, 2026
* feat: auto-fetch-collections-from-s3

* update documentation

* Update ConfigMap with latest script changes

* fix: harden qdrant restore script and align restore .env example (#110)

Follow-up to feat/auto-fetch-collections-from-s3 with three small fixes
surfaced during review.

- track_collection: skip the read loop when the jq result is empty. Bash
  here-strings always append a newline, so `done <<< ""` would otherwise
  iterate once with an empty item and write a bogus `host,` line to
  $QDRANT_COLLECTIONS_FILE. Affects `get_coll` against an empty source.
- generate_snapshot_file_from_s3: fix word order in the non-error exit
  message so the filename lands in the correct position.
- UPGRADE-OPERATIONS.md restore example: set QDRANT_SOURCE_HOSTS="" to
  match the new restore-from-S3-only contract used by the k8s manifests;
  move the port-forward note to QDRANT_RESTORE_HOSTS where it belongs.
- Sync configmap-script.yaml via config_map_updater.sh.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tobias Pfaffelmoser <tobias.pfaffelmoser@ext.aleph-alpha.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants