You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hasura continues sending streaming queries checks for postgresql even when all users are disconnected (I've ensured it using netstat).
What is the expected behaviour?
After all users are disconnected, I expect that hasura stops probing postgresql.
How to reproduce the issue?
Configure postgresql to log all the queries (log_statement = 'all')
Launch 400 users in a BigBlueButton 3.0 server (which uses hasura)
Wait for all users to leave.
Stop bbb-graphql-middleware and nginx (to ensure nothing else is connected to hasura).
Screenshots or Screencast
In the screencast, I monitor the number of connections with port 8085 (which hasura is listening too).
When almost all users disconnected, I stop the nginx and the bbb-graphql-middleware (they route connections to hasura).
After stopping, I ensure there is no ESTABLISHED connection in port 8085.
Even after that, postgres continues receiving the streaming queries from probers.
PS: this doesn't happen with the subscription queries, only with streaming.
I kept the server running for 1 hour, and the queries were still being emmited, so it doesn't look like a pending timeout.
Version Information
Server Version:
Environment
OSS
What is the current behaviour?
Hasura continues sending streaming queries checks for postgresql even when all users are disconnected (I've ensured it using
netstat
).What is the expected behaviour?
After all users are disconnected, I expect that hasura stops probing postgresql.
How to reproduce the issue?
log_statement = 'all'
)Screenshots or Screencast
In the screencast, I monitor the number of connections with port 8085 (which hasura is listening too).
When almost all users disconnected, I stop the nginx and the bbb-graphql-middleware (they route connections to hasura).
After stopping, I ensure there is no ESTABLISHED connection in port 8085.
Even after that, postgres continues receiving the streaming queries from probers.
PS: this doesn't happen with the subscription queries, only with streaming.
I kept the server running for 1 hour, and the queries were still being emmited, so it doesn't look like a pending timeout.
Link to the video (too long for github):
https://www.dropbox.com/scl/fi/35enek9b2fjpzntc1rgey/hasura-bug-with-streaming-queries-2.mp4?rlkey=lrdgxcd7pgx1p8fgu4crhbwn6&dl=0
Keywords
always increasing system load, memory leak, cpu leak, streaming queries
The text was updated successfully, but these errors were encountered: