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

WIP: Update the shipper metadata after each upload #938

Closed
wants to merge 1 commit into from
Closed

WIP: Update the shipper metadata after each upload #938

wants to merge 1 commit into from

Conversation

SuperQ
Copy link
Contributor

@SuperQ SuperQ commented Mar 19, 2019

Changes

Update the shipper metadata after each upload rather than waiting to the end of the sync.

Partly fixes #934

Verification

Not tested yet.

@bwplotka
Copy link
Member

So essentially you would like to have updated meta.json lying around? hmm useful for manual upload of blocks as well. Worth to double check in some e2e/integration test at some point that Prometheus can still read that meta, but otherwise.. it might be fine.

Why is that required though?

@SuperQ
Copy link
Contributor Author

SuperQ commented Mar 19, 2019

See the linked issue. The shipper iterates over all of the compacted blocks in one go, we're uploading ~6 months of week-size blocks. So if one of the couple dozen blocks gets a storage error, all of the previously uploaded blocks don't get marked as complete. Then it retries and finds all of the previously uploaded OK blocks as overlapping.

Partly fixes #934

Signed-off-by: Ben Kochie <superq@gmail.com>
@SuperQ
Copy link
Contributor Author

SuperQ commented Mar 19, 2019

Yea, this doesn't work as expected, it drops all blocks after the the last block upload.

@SuperQ SuperQ changed the title Update the shipper metadata after each upload WIP: Update the shipper metadata after each upload Mar 19, 2019
@SuperQ
Copy link
Contributor Author

SuperQ commented Mar 19, 2019

This is the wrong fix.

@SuperQ SuperQ closed this Mar 19, 2019
@SuperQ SuperQ deleted the meta_file_update branch March 19, 2019 11:24
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.

Existing upload confuses shipper
2 participants