-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tolerate a non-primary shard being down during startup #2727
Merged
Commits on Aug 27, 2021
-
store: Include the port when setting up fdw connections
Unfortunately, we can't just slap a "set port 'NNNN'" into the 'alter server' statement since we have installations that have a server without a port, and for those we first need to "add port 'NNNN'".
Configuration menu - View commit details
-
Copy full SHA for e0b65f8 - Browse repository at this point
Copy the full SHA e0b65f8View commit details -
store: Map fdw tables without accessing the foreign server
When we initialize a connection pool, we should only assume that the database for that pool is up and running. Previously, we used `import foreign schema` to create fdw tables locally, but that requires that Postgres access the remote server, and will therefore not work when that server is not up. We now create these tables by assuming the corresponding table on the remote server has the same schema as our local table, which avoids accessing the remote server. It also removes a subtle race where we could have pulled in the schema from a remote server before that ran its latest migrations.
Configuration menu - View commit details
-
Copy full SHA for 56ff92e - Browse repository at this point
Copy the full SHA 56ff92eView commit details -
store: Do not impl Deref for ConnectionPool
This helps make it clearer how the underlying Diesel pool is accessed
Configuration menu - View commit details
-
Copy full SHA for b59f512 - Browse repository at this point
Copy the full SHA b59f512View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3cd0686 - Browse repository at this point
Copy the full SHA 3cd0686View commit details -
Configuration menu - View commit details
-
Copy full SHA for 79c18bd - Browse repository at this point
Copy the full SHA 79c18bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3265db9 - Browse repository at this point
Copy the full SHA 3265db9View commit details -
graph, node, store: Tolerate shards not being available during startup
When one of the configured shards is not available, defer setting it up (e.g., running migrations) until it becomes available.
Configuration menu - View commit details
-
Copy full SHA for e19e5e2 - Browse repository at this point
Copy the full SHA e19e5e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6775ad9 - Browse repository at this point
Copy the full SHA 6775ad9View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.