Skip to content
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

BatchProcessor Stops Execution #118

Closed
PaulWeakley opened this issue Nov 16, 2015 · 4 comments
Closed

BatchProcessor Stops Execution #118

PaulWeakley opened this issue Nov 16, 2015 · 4 comments

Comments

@PaulWeakley
Copy link

The BatchProcessor's thread execution fails after some period of time and the data being transferred to the influx database falls back onto the hard limit.

My guess is that the connection to the InfluxDB server becomes unstable or a fault occurs and the write() method throws an exception. If this occurs then the executor service will not recover and the write() method will never be called again. Suggest putting a try/catch around the write method contents.

Situation: Pushing 160 samples to influx every 30 seconds. 10 second flush interval with a 2000 entry limit. Then, randomly when requesting data from InfluxDB observing a 6 min gap in data despite the 10 second flush interval. Eventually the data is available (because the server flushed the data to the database) and the gap window of 6 minutes starts again.

@majst01
Copy link
Collaborator

majst01 commented Nov 16, 2015

Im happy to accept PR to address this issue.

@PaulWeakley
Copy link
Author

Thank you for taking a look. I had some ideas on a clean solution so I created a pull request for you to take a look.

@majst01
Copy link
Collaborator

majst01 commented Nov 7, 2016

Is there anything to do here, otherwise i will close this issue.

@jiafu1115
Copy link
Contributor

@majst01 you can close this issue just now, I double check the issue had been fixed by @PaulWeakley .

@majst01 majst01 closed this as completed Nov 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants