-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
c/serverRelated to serverRelated to servere/easycan be wrapped up in a couple of dayscan be wrapped up in a couple of daysk/bugSomething isn't workingSomething isn't workingp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprint
Description
Description
reload_remote_schema does not work on remote schemas which are inconsistent (i.e. they were not available on startup). Considering prior discussions (see: #3792 ), this is actually a bug because even reload_metadata does not refresh remote schemas. There is no way to resolve an inconsistent remote schema without restarting Hasura.
Repro:
- Run hasura (any version > 1.0.0)
- Add a remote schema. E.g. this: https://github.com/hasura/preview-remote-joins/tree/master/graphql-services/weather
- Stop hasura and remote schema
- Start hasura -> remote schema becomes inconsistent
- curl -d'{"type": "reload_remote_schema", "args":-schema" }}' localhost:8080/v1/query -> throws an error:
{"path":"$.args","error":"remote schema with name \"my-remote-schema\" does not exist","code":"not-exists"}
Note for versions prior to v1.1.0: reload_metadata API would actually fetch inconsistent remote schemas and hence would resolve the inconsistency (although it wouldn't refresh consistent remote schemas).
Metadata
Metadata
Assignees
Labels
c/serverRelated to serverRelated to servere/easycan be wrapped up in a couple of dayscan be wrapped up in a couple of daysk/bugSomething isn't workingSomething isn't workingp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprint