Skip to content

Commit

Permalink
Added missing finalizer.
Browse files Browse the repository at this point in the history
Signed-off-by: Bartek Plotka <[email protected]>
  • Loading branch information
bwplotka committed Apr 17, 2018
1 parent e2428b1 commit 2359bfe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/verifier/separated_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,12 @@ func SeparatedBlocks(ctx context.Context, logger log.Logger, bkt objstore.Bucket
return errors.Wrapf(err, "merge blocks %s and %s", a.ULID, b.ULID)
}

if _, err := block.Finalize(path.Join(tmpdir, resid.String()), bmeta.Thanos.Labels, bmeta.Thanos.Downsample.Resolution, nil); err != nil {
return errors.Wrapf(err, "finalizing of %s failed", resid)
}

level.Info(logger).Log("msg", "uploading merged block", "newID", resid, "issue", SeparatedBlocksID)
err = objstore.UploadDir(ctx, bkt, filepath.Join(tmpdir, resid.String()), resid.String())
err = block.Upload(ctx, bkt, filepath.Join(tmpdir, resid.String()))
if err != nil {
return errors.Wrapf(err, "upload of %s failed", resid)
}
Expand Down

0 comments on commit 2359bfe

Please sign in to comment.