This adds remaining logic for CreateBackup handler: handling data chunks and finishing the request.
Depends on D6198
Differential D6199
[services][backup] CreateBackup 3/3 - handle chunks and finish bartek on Jan 9 2023, 4:09 AM. Authored by Tags None Referenced Files
Details This adds remaining logic for CreateBackup handler: handling data chunks and finishing the request. Depends on D6198 The whole CreateBackupHandler can be tested for example this way: cd services && yarn init-local-cloud yarn run-blob-service-in-sandbox # in another nix terminal cd services/backup RUST_LOG=backup=trace cargo run -- --port 50052 --sandbox --blob-service-url "http://localhost:50053" Now the endpoint can be called either manually (e.g. BloomRPC) or by yarn run-integration-tests backup - these will fail yet, but the backup should be created, which can be checked by e.g. looking at backup and blob services logs or using aws-cli.
Diff Detail
Event Timeline
Comment Actions Rebase, changed is_data_mode boolean to enum - this required slight code flow refactors (genral flow remains unchanged) Comment Actions Agreed, I hope to get rid of this and keep these handlers much simpler when the API gets simplified by merging most inputs together. As for now, this solution "just works" and keeps the code more organized than C++ reactors. |