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
start an active WebSocket connection via agent to app
trigger another request to backend (maybe required that a new db connection is created)
Backtrace
Not from same run as the int_proxy logs, I lost those...
2024-02-23T15:28:35.490170Z ERROR ThreadId(02) mirrordlayer::error: Error occured in Layer >> ProxyError(CodecError(IoError(Os { code: 35, kind: WouldBlock, message: "Resource temporarily unavailable" })))
Assertion failed: (!"unknown EAI* error code"), functionuv__getaddrinfo_translate_error, file getaddrinfo.c, line 90.
It most often seems to crash when it tries to connect to the database.
The database is run in a separate namespace in the k8s cluster. An ExternalName with name "db" is created in APP's namespace, which is used in app config.
The text was updated successfully, but these errors were encountered:
I started digging into why it works for one team but not the other. My hypotesis about the websocket does not hold water. I did not know, but the other team is now actually using WebSockets more extensively than the one having the issues.
What stands out is that on the problematic page, one graphql query is done that returns a 6MB response which takes more than 5 seconds to complete and in general it makes more grapqhl queries than should be needed.
More digging; as can be seen from the logs, the error is related to DNS query. In our case it can be completely avoided if we configure the db connection with the db server IP instead of the "db" name, thus avoiding the DNS query.
I'm open for screen-sharing session to show you reproduction, but I'll need time to set up an environment.
Bug Description
Our Nest.js application crashes seemingly a bit randomly.
We think it is related to having an active WebSocket connection from frontend -> backend where backend is running in mirrord.Looks like it is triggered if the DNS query is done while there is a long running >5 seconds stolen request being processed in the local process.
Steps to Reproduce
Backtrace
Tested on 3.90.0
Relevant Logs
internal_proxy.log
Your operating system and version
macOS Sonoma 14.2.1 (23C71)
Local process
nodejs
Local process version
... node/v18.17.1/bin/node: Mach-O 64-bit executable arm64
Additional Info
It most often seems to crash when it tries to connect to the database.
The database is run in a separate namespace in the k8s cluster. An ExternalName with name "db" is created in APP's namespace, which is used in app config.
The text was updated successfully, but these errors were encountered: