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

Conversation

@rakeshkky
Copy link
Member

@rakeshkky rakeshkky commented Apr 30, 2019

Description

Affected components

  • Server

Related Issues

Solution and Design

  • While running multiple HGE instances on the same database, If a server instance receives metadata update event from other instance then rebuild its schema cache without clearing and setting up hdb_views schema.
  • Clear hdb_views schema's views and routines in order in SQL for loop.

Steps to test and verify

  • Run more than 2 HGE instances on the same database
  • Create insert permission on one of the server instance
  • Check logs on other two for successful schema cache reload

@rakeshkky rakeshkky added the c/server Related to server label Apr 30, 2019
@rakeshkky rakeshkky requested a review from 0x777 as a code owner April 30, 2019 08:47
@rakeshkky rakeshkky self-assigned this Apr 30, 2019
@netlify
Copy link

netlify bot commented Apr 30, 2019

Deploy preview for hasura-docs ready!

Built with commit e95ab79

https://deploy-preview-2098--hasura-docs.netlify.com

@hasura-bot
Copy link
Contributor

Review app for commit 3a73073 deployed to Heroku: https://hge-ci-pull-2098.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2098-3a73073

@hasura-bot
Copy link
Contributor

Review app for commit 7f1a700 deployed to Heroku: https://hge-ci-pull-2098.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2098-7f1a700

@hasura-bot
Copy link
Contributor

Review app for commit adf32fc deployed to Heroku: https://hge-ci-pull-2098.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2098-adf32fc

@hasura-bot
Copy link
Contributor

Review app for commit cbce986 deployed to Heroku: https://hge-ci-pull-2098.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2098-cbce986

0x777 and others added 2 commits May 3, 2019 13:33
This becomes useful when a lot of schema change
events happen while we are still processing an
earlier event.
@hasura-bot
Copy link
Contributor

Review app for commit e95ab79 deployed to Heroku: https://hge-ci-pull-2098.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2098-e95ab79

@0x777 0x777 merged commit c4c36e0 into hasura:master May 3, 2019
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-2098.herokuapp.com is deleted

polRk pushed a commit to polRk/graphql-engine that referenced this pull request Feb 12, 2020
* build schema cache function without db setup

The setup shouldn't happen for sync. The database is already setup by the instance which generated the event. This means that the sync is now faster.

* use SQL loop to drop hdb_views schema views and routines with ordering

This avoids deadlocks when schema is being changed concurrently

* schema sync now only processes the latest event

This becomes useful when a lot of schema change
events happen while we are still processing an
earlier event.
hasura-bot pushed a commit that referenced this pull request Aug 5, 2025
…ror (#2098)

<!-- The PR description should answer 2 important questions: -->

### What

`Built-in operators require a boolean expression type` shows up as an
internal error, when it's really because a boolean expression type
hasn't been provided for a type. Change the type to reflect this, and
include the object type name in question to make it easier to fix.

V3_GIT_ORIGIN_REV_ID: 89fae7521fd9fe1135bfb5c8c9d44c07fc1d93cb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/server Related to server

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants