Repository navigation
docs(migration): say which volumes the backup actually covers - #18626
Conversation
The help calls backup a backup of "all RAGFlow data volumes", but VOLUME_BASES is a fixed set of four and only covers Elasticsearch among the document engines DOC_ENGINE offers. Under infinity, opensearch or serenedb the index volume is never read, the run still reports success, and the omission only surfaces later when restore stops on the es_backup.tar.gz that was never written. State the real coverage and name the consequence at the point where a reader is deciding whether this script is enough.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe migration script help text now lists the covered backup volumes and documents separate index-volume backup requirements for non-Elasticsearch document engines. ChangesMigration backup documentation
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to This change clarifies which volumes the migration backup covers and warns users about unsupported document-engine volumes; it does not alter runtime behavior, so no actionable merge-blocking risk remains. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
migration.sh helpdescribesbackupas a backup of all RAGFlow data volumes. It backs up four, fixed atmigration.sh:15:Nothing in the script reads
DOC_ENGINE, andesdata01is only where the indices live whenDOC_ENGINE=elasticsearch.docker/.envalso offersinfinity,opensearchandserenedb, whose indices live ininfinity_data,osdata01andserenedb_data(docker-compose-base.yml:405-409). None of those are ever considered, and CI exercises the infinity path (sep-tests.yml), so this is not a hypothetical configuration.What a user on one of those engines sees today:
backupfinds no<project>_esdata01, prints⚠️ Warning: Volume ... does not exist, skipping..., then prints🎉 Backup completed successfully!. The warning names Elasticsearch, which is easy to read as "not applicable to me" rather than "your index is not in this backup".es_backup.tar.gzis never written.restorechecks for every file inBACKUP_FILESfirst and exits on any that is missing (migration.sh:228-235), so the restore refuses to run at all.So the backup does not round-trip for any non-default document engine, and that is only discovered at restore time, which is the worst moment to discover it.
This PR does not change what is backed up. It corrects the
allclaim and states the consequence where a reader is deciding whether this script is sufficient:Making the script engine-aware is the real fix, but it is a design decision (which volume to select per engine, what a cross-engine restore should mean, and that
oceanbase/seekdbuse bind mounts rather than named volumes) and it would touch the sameperform_restorearea as the open #18393 and #18433. I have filed that separately as #18628 rather than pre-empting it here; this PR is only the documentation half and conflicts with neither.Verified against
upstream/mainate9cace9a.bash -n docker/migration.shpasses and the rendered help is the block quoted above.