Skip to content

Try and flush failed chunks repeatedly when we're shutting down. #234

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

Merged
merged 1 commit into from
Jan 25, 2017

Conversation

tomwilkie
Copy link
Contributor

Fixes #86

This is a particularly naive solution, but I think simpler is better. I considered only trying a fixed number of times; problem is we might still fail to flush some chunks but exit cleanly and never know, which I'd like to avoid.

The problem with this approach is if, because of some bug / logical error, the first chunk fails to flush and always fails to flush, we'll never try to flush any of the other chunks even if they might succeed. I'm tempted to put all the failing flushes on a second list and try them at the end, in a loop, to work around this. WDYT?

In the long run the real solution here is the WAL.

@juliusv
Copy link
Contributor

juliusv commented Jan 24, 2017

Yes, putting bad ones in the end would be even better, but it's ok like it is for now as well. I assume that errors that are particular to a chunk will be way less frequent than ones that are generally throughput/connectivity-related.

👍

@tomwilkie
Copy link
Contributor Author

I assume that errors that are particular to a chunk will be way less frequent than ones that are generally throughput/connectivity-related.

Yes, experience tells me most errors are transient, and the ones that aren't affect all chunks.

@tomwilkie tomwilkie merged commit 365faad into master Jan 25, 2017
@tomwilkie tomwilkie deleted the 86-retry-on-shutdown branch January 25, 2017 09:39
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

Successfully merging this pull request may close these issues.

Retry on errors from Dynamo
2 participants