-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1737830: Sporadic error seen in AWS lambda after upgrading to 1.14.0 driver #936
Comments
hi and thank you for raising this issue! one notable change in 1.14.0 regarding the heartbeats was #908. Obviously we could just revert that in a patch to test if that single change fixes the issue for you, but then we would not get any details about the actual error it causes. Unfortunately it seems during JSON.stringify-ing the error, it gets lost :( So I made a small patch with patch-package which does nothing else, just changes how we log the error thrown. Would it be possible for you to:
The same way we can revert #908 too in a subsequent step to get proof it caused the error (or the opposite) but if we were doing it right now, there would be no details of the errors it causes, so I'm hoping we can do it in two steps. |
Thanks. I should be able to do that. It may take a day or so but I'll let you know once I get results. |
We've got this error a few more times now since I deployed the patched snowflake. Here's the additional log we get now:
|
thank you so much @spdaley, this helps! before going into disabling configuration which worked perfectly for you prior to installing 1.14.0 with #908 , do you have some time to try one more patch ? This is the same as before (adding/fixing logging) plus reverting #908 . Nothing else was changed. So with this patch, it should be very easy to get proof if really the aforementioned PR caused the problems for you or not. If the errors cease to happen with 1.14.0 + patch which reverts 908, we should have a good indication where it comes from. Thank you ! |
I can give that patch a shot too. One thing I didn't notice before is that our code seems to be where that error originates. Line 41 of that file looks like this:
None of this code has changed between 1.13.1 and 1.14.0 though. We've only been changing the driver. |
I have a stand-alone script that reproduces it now. Do the following:
For this test I didn't actually set a valid table because I didn't really care. I just wanted something in there to let me know the connection was working. The script
Other note, if I apply the second patch which undoes the callback/this heartbeat change, and I run this script, I get this output:
|
Just for full disclosure, we've been running patch 2 in our environment for half a day and have not seen these errors. |
fix incoming on #939 |
PR is merged and will be part of the next release |
released with Snowflake Node.js driver v1.15.0 in the October 2024 release cycle |
Info
npm list
)?As stated above, this run didn't actually use the snowflake connection at all. It was performing an action against a different data source. We were running the 1.13.0 driver for a few weeks without seeing this. It was only after upgrading to 1.14.0 that we started to seeing.
I'm sorry it's not much to go on. I noticed in the release notes for 1.14.0 there was a fix to the heartbeat callback handler. Not sure if this is related or not but it was the only thing noticeable I saw in this path.
The text was updated successfully, but these errors were encountered: