-
Notifications
You must be signed in to change notification settings - Fork 77
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
Aerospike timeout error using node debug #140
Comments
Thanks for reporting this issue, @anuranjit. I am able to reproduce it and will take a look to see what is causing this. |
To clarify, this seems to only happen when running Node.js with the interactive debugger enabled:
In the non-interactive debug mode ( Furthermore, when program execution is continued (using the I think this has to do with the way libuv tracks time. To improve efficiency, libuv captures the current time at the beginning of each event loop iteration and uses that timestamp throughout the execution of the iteration. If something (e.g. the interactive debugger) blocks the execution of the event loop for an extended period of time this seems to be able to cause timeouts like we are seeing here. A call to If you are debugging a longer running Node.js application, maybe you should try using |
@jhecking Thanks for the reply. Will this be fixed in any future version?. Is there any workaround so that I can use interactive debugging? |
@anuranjit, I have committed the |
@jhecking Thanks. I will try it out and let you know. |
@anuranjit, does the work-around I added work for you? |
Work-around (9bed04e) is included in v2.3.0. Closing this. Please reopen or file a new issue if there are still issues with using the aerospike module using the interactive debugger. |
@jhecking Thanks for the fix. This is working now. |
@jhecking It is not working again 😭 . It worked for sometime but now again the same problem is happening. |
@anuranjit, any idea what might have changed between 10 days ago and now? Are you doing the debugging the same way as before? |
@jhecking Actually it was not working earlier also. I was restarting the interactive debugger frequently. So it used to be work for some time. Once I keep breakpoint for slightly long duration than it starts failing again. Plus after this even if I keep the breakpoint on for short duration (~7s) it fails . |
Whenever i run the node server in debug mode.All of my queries to Aerospike result in Timeout error. The same thing works when i dont use debug?
The text was updated successfully, but these errors were encountered: