Closed lalitsharmaprofile closed 1 year ago
Note: Just found that it is working on version onfinality/subql-query:v1.6.2-1 but error started from onfinality/subql-query:v1.6.2-2
I found this code that is causing the error:- in file packages/query/src/graphql/graphql.module.ts
if (!argv['disable-hot-schema']) {
const pgClient = await this.pgPool.connect();
await pgClient.query(`LISTEN "${hashName(dbSchema, 'schema_channel', '_metadata')}"`);
pgClient.on('notification', (msg) => {
if (msg.payload === 'schema_updated') {
void this.schemaListener(dbSchema, options);
}
});
}
It was added in this commit 642f039
If I run the subql-query service with --disable-hot-schema=true flag, it's working fine but the hot-schema-load feature will be disabled.
Hi there, is the fix of adding a try-catch block sufficient? I mean it will disable the HSR.
Prerequisites
Description
[Description of the bug or feature] Running a subquery project for avalanche (https://github.com/subquery/avalanche-subql-starter) - c-type chain, mainnet. Using RDS database with master-slave architecture. I am storing data from indexer in master instance and trying to query data from subquery graphql using slave instance
NOTE:- the subql-query docker service working fine with RDS master-slave architecture when using version 1.6.1 [released on 2022-10-27] but giving error with latest version i.e, 1.9.0 [released on 2022-11-30]
Details
Seeing the following error for onfinality/subql-query:latest docker service:-
These details can help to reproduce the environment the issue is occurring
Local Environment: [You can get this information from executing
subql version
.] --> @subql/cli/1.8.0 linux-x64 node-v17.2.0Query Version: [What is the version of the query service?] --> Probably [1.9.0] - 2022-11-30, using this docker image https://hub.docker.com/layers/onfinality/subql-query/latest/images/sha256-d7419524924fd98b91b6ce9dfa8651ca26d34f3cbebaf8db6b5e40221d15b2d8?context=explore,
Indexer Version: [What is the version of the indexer service?] Probably [v1.10.5] (https://hub.docker.com/layers/onfinality/subql-node-avalanche/v1.10.5/images/sha256-02d9b8a4cb27af97a547f58e64444da619dcd82748d5c6ce8531573da37e1bf6?context=explore)
Network Details:
Steps to Reproduce
Example project: [A link to a minimal example that can reproduce the issue] --> https://github.com/subquery/avalanche-subql-starter
Expected behavior: [What you expected to happen] It should work fine with RDS master slave database and i should be able to query the graphql service
Actual behavior: [What actually happened] subql-query docker instance giving error:-
Any other information
Please note subql-avalanche-indexer docker service is able to save data to master instance as i can access via pgadmin / postgres via terminal and query the data.
NOTE:- the subql-query docker service working fine with RDS master-slave architecture when using version 1.6.1 [released on 2022-10-27] but giving error with latest version i.e, 1.9.0 [released on 2022-11-30]
Is there any other information you would like to add? No, That's all.