Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pageserver: fix return code from secondary_download_handler (neondata…
…base#8508) ## Problem The secondary download HTTP API is meant to return 200 if the download is complete, and 202 if it is still in progress. In neondatabase#8198 the download implementation was changed to drop out with success early if it over-runs a time budget, which resulted in 200 responses for incomplete downloads. This breaks storcon_cli's "tenant-warmup" command, which uses the OK status to indicate download complete. ## Summary of changes - Only return 200 if we get an Ok() _and_ the progress stats indicate the download is complete.
- Loading branch information