-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Sorry guys but the reconnect functionality is not ok.
- When voltdb goes away, the driver keeps calling the error callback once per second. (This in itself is a complete anti-pattern in Node.js, because once you return from a function with a success callback, you never return again either with success or error. This is just a broken design. You don't call return more than once.)
- When voltdb comes back, nothing happens, the error callback is still being called once per second.
- There's no way to handle this because the driver doesn't offer a
close()functionality, so the only solution is to restart the Node.js process, which is lame.
Do you think you can fix this?
Metadata
Metadata
Assignees
Labels
No labels