-
Notifications
You must be signed in to change notification settings - Fork 478
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
The library does not throw an exception when database is down #152
Comments
@andrewdodd, yes i tried to use the branch you mentioned but do not see any data in the DB. May be I am not supplying the right parameters to the api. Right now I have,
capacity - 2 So I expected to find two points in the DB after i wrote my third point to write method, but it was not reflected in the DB (even after 2 minutes). Is my code/understanding wrong? |
The difference between capacity and flushActions is to do with how 'soon' a batched write will fire. capacity - total size of underlying buffer (e.g. 1000) So with the examples I gave above: |
@andrewdodd I think we just add exception listener for user then we can let user to decide to ignore it or take other actions similar with spring batch. WDYT? |
I think the 2.5 release should throw an exception to the client if the server is down. Prior to that, it looks like exceptions were being ignored. We are using release 2.3 and are seeing sporadic event loss but no exceptions, so I checked the code we have, looked at the latest on git and noticed the added exception handling (hence we plan to upgrade). |
Hi,
I am tried using batch processing as suggested in the README. It works fine but does not throw an exception when the database is down. The 'points' just seem to be lost. Am I missing something or is this a bug?
Thanks,
Zambro
The text was updated successfully, but these errors were encountered: