-
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
Make graph-node more robust in the face of shards being down or restarting #2815
Commits on Oct 4, 2021
-
store: Reconnect notification listener when database drops
Instead of crashing the process, try to reconnect indefinitely if we lose the connection to the database.
Configuration menu - View commit details
-
Copy full SHA for 4008ef6 - Browse repository at this point
Copy the full SHA 4008ef6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d874f7a - Browse repository at this point
Copy the full SHA d874f7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 66fe268 - Browse repository at this point
Copy the full SHA 66fe268View commit details -
store: Mirror chains and deployment_schemas in all shards
Manually insert/delete rows from the primary's deployment_schemas and chains table. We can't use logical replication because we need to support Postgres 9.6. Add a job that refreshes the mirror every 5 minutes
Configuration menu - View commit details
-
Copy full SHA for 39de144 - Browse repository at this point
Copy the full SHA 39de144View commit details -
store: Allow reading from the primary and mirrored tables
Use that facility for the places where the BlockStore reads from the primary
Configuration menu - View commit details
-
Copy full SHA for 6354d69 - Browse repository at this point
Copy the full SHA 6354d69View commit details -
store: Map and mirror subgraph_deployment_assignment to read assignments
We read the assignments for a node early during startup; with this change, a node will start up even when the primary is down
Configuration menu - View commit details
-
Copy full SHA for 8b37a41 - Browse repository at this point
Copy the full SHA 8b37a41View commit details -
Configuration menu - View commit details
-
Copy full SHA for eb1814d - Browse repository at this point
Copy the full SHA eb1814dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 40decfa - Browse repository at this point
Copy the full SHA 40decfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba6d765 - Browse repository at this point
Copy the full SHA ba6d765View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c87b8d - Browse repository at this point
Copy the full SHA 0c87b8dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c12ee0f - Browse repository at this point
Copy the full SHA c12ee0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dc3cd2 - Browse repository at this point
Copy the full SHA 7dc3cd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for bbec57e - Browse repository at this point
Copy the full SHA bbec57eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 633d047 - Browse repository at this point
Copy the full SHA 633d047View commit details -
store: Make DeploymentStore::transact_entity_operations take references
This is in preparation of retrying operations: if we pass owned data, we need to clone before every attempt. Instead of forcing a clone in the common case of the first try succeeding, work with references. This also requires that we use Cow<Entity> because in rare cases we have to modify the entity to add fulltext search fields; in the common case where there is no fulltext search, we do not want to clone.
Configuration menu - View commit details
-
Copy full SHA for 4018b87 - Browse repository at this point
Copy the full SHA 4018b87View commit details -
Configuration menu - View commit details
-
Copy full SHA for 261f426 - Browse repository at this point
Copy the full SHA 261f426View commit details -
Configuration menu - View commit details
-
Copy full SHA for aba537d - Browse repository at this point
Copy the full SHA aba537dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aa7381 - Browse repository at this point
Copy the full SHA 2aa7381View commit details -
Configuration menu - View commit details
-
Copy full SHA for 703973e - Browse repository at this point
Copy the full SHA 703973eView commit details -
Configuration menu - View commit details
-
Copy full SHA for ef60ab9 - Browse repository at this point
Copy the full SHA ef60ab9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8a5510 - Browse repository at this point
Copy the full SHA c8a5510View commit details -
Configuration menu - View commit details
-
Copy full SHA for d86aa39 - Browse repository at this point
Copy the full SHA d86aa39View commit details -
store: Do not treat failing to send store event as error
When we transact block operations, or revert a block, ignore errors when sending store events. Since store events sent for these operations are only used to update subscriptions, it is better to carry on than to fail the operation and with that the subgraph.
Configuration menu - View commit details
-
Copy full SHA for 7e48747 - Browse repository at this point
Copy the full SHA 7e48747View commit details -
store: Remove ConnectionPool.get_with_timeout_warning
This can block indefinitely and therefore lead to a lot of work on query nodes queueing up; rather than that, operations should fail when we can not get a connection.
Configuration menu - View commit details
-
Copy full SHA for 6b2cde8 - Browse repository at this point
Copy the full SHA 6b2cde8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65ec9ea - Browse repository at this point
Copy the full SHA 65ec9eaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c0fe5d - Browse repository at this point
Copy the full SHA 6c0fe5dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 393ce06 - Browse repository at this point
Copy the full SHA 393ce06View commit details