-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add Truncate and ReadOnly options for badger #1842
Add Truncate and ReadOnly options for badger #1842
Conversation
7b6d741
to
ab94146
Compare
…aegertracing#1832 Signed-off-by: Michael Burman <yak@iki.fi>
travis failures seem to have nothing to do with this PR:
Or crossdock for that matter. |
Codecov Report
@@ Coverage Diff @@
## master #1842 +/- ##
=========================================
- Coverage 98.44% 98.4% -0.04%
=========================================
Files 197 197
Lines 9631 9645 +14
=========================================
+ Hits 9481 9491 +10
- Misses 114 117 +3
- Partials 36 37 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@burmanm Wondering if there is an automatic approach that could be used to overcome the issue - rather than having to specific command line options? Specifically thinking about when used with the operator, what would prompt the operator to restart the all-in-one server with these options? Is there an "auto-healing" approach that could be used instead to automatically recover (if optionally enabled)? |
@objectiser Well, for readonly there's no "automatic" as it's something someone might want, like for example reading a backup/snapshot from past. As for the truncate, it shouldn't be needed ever, but for some reason that's been the case. I don't think truncating a WAL log automatically is a good thing since stuff will be lost that might be recoverable (and we shouldn't make the decision). Maybe it's a bug in the version of badger we ship with Jaeger, it would have been good to know more details or if there's a reproducer. Maybe the filesystem corrupted the file on close for example. |
Could we truncate automatically in badger storage if badger fails to start with a specific error? Can be the data recovered in any other way? |
Well, the error isn't typed, but we could try parsing the returned error message. Assuming it doesn't change in some version.. |
@burmanm @jpkrohling @pavolloffay Although I started the conversation regarding whether auto recovery would be possible, wondering if better to get this merged and then look at whether something more automated could be achieved in a separate PR, or possibly in the operator? |
+1 from me, @objectiser |
…aegertracing#1832 (jaegertracing#1842) Signed-off-by: Michael Burman <yak@iki.fi> Signed-off-by: radekg <radek@gruchalski.com>
…aegertracing#1832 (jaegertracing#1842) Signed-off-by: Michael Burman <yak@iki.fi> Signed-off-by: Jonah Back <jonah@jonahback.com>
Which problem is this PR solving?
Short description of the changes
--badger.truncate
and--badger.read-only
are passed tobadger.Open()