这是indexloc提供的服务,不要输入任何密码
Skip to content

reload_remote_schema does not work if remote schema is in inconsistent metadata #4117

@tirumaraiselvan

Description

@tirumaraiselvan

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:

  1. Run hasura (any version > 1.0.0)
  2. Add a remote schema. E.g. this: https://github.com/hasura/preview-remote-joins/tree/master/graphql-services/weather
  3. Stop hasura and remote schema
  4. Start hasura -> remote schema becomes inconsistent
  5. 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 servere/easycan be wrapped up in a couple of daysk/bugSomething isn't workingp/highcandidate for being included in the upcoming sprint

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions