This repository has been archived by the owner on Aug 13, 2019. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add tsdb.Scan() to unblock from a corrupted db. #320
base: master
Are you sure you want to change the base?
Add tsdb.Scan() to unblock from a corrupted db. #320
Changes from 1 commit
1494b96
256b31b
b1bf6c7
6a3cac2
027ca86
ec8223f
6c8f7cf
1de1737
c1bc1bb
e0a9be3
5e933aa
5d67925
4acb8eb
ac0f4ab
ef52656
d139ea6
7919ae5
8a38a1e
c7190e9
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
scanTmpCompactFiles
to be more verbose?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.
ditto with error return
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.
I think there were cases with other temps like WAL checkpoint so will leave as is to be more generic and just updated the print message.
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.
I am not sure about changing anything in
db.go
before resolving conflicts (: I would aim for changing as little as possible. (e.g-type Overlaps map[TimeRange][]BlockMeta
->type Overlaps map[TimeRange][]*Block
change)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.
why you need whole blocks if we are using only meta?
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.
it is just to get rid of
validateBlockSequence
function?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.
yes and also need the block dir when preparing to delete these.
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.
Why not using
meta.ULID?
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.
I don't see any harm in this refactoring as
validateBlockSequence
is doing the same thing.