Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
readyset: Make migration task upstream conn fault tolerant
When running with async migrations, the migration background task needs to load the server-configured schema search path from the upstream db on startup. Previously, this process was not fault tolerant, and would cause a panic triggering a full-process abort if the connection failed. This commit changes it to sleep a second and automatically retry if it encounters an error instead. Fixes: ENG-2835 Change-Id: I8d464a55998029704ec79e9a031d8d30f006221c Reviewed-on: https://gerrit.readyset.name/c/readyset/+/4807 Tested-by: Buildkite CI Reviewed-by: Dan Wilbanks <dan@readyset.io>
- Loading branch information
1 parent
52177a2
commit 020f58a
Showing
1 changed file
with
44 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters