Skip to content

Commit

Permalink
cr: return error instead of logging issues with reading deletion marks
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
  • Loading branch information
FUSAKLA committed Feb 7, 2022
1 parent ef90283 commit b96326a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/replicate/scheme.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (rs *replicationScheme) execute(ctx context.Context) error {
for id, meta := range metas {
_, err := rs.fromBkt.ReaderWithExpectedErrs(rs.fromBkt.IsObjNotFoundErr).Get(ctx, path.Join(meta.ULID.String(), metadata.DeletionMarkFilename))
if err != nil && !rs.fromBkt.IsObjNotFoundErr(err) {
level.Debug(rs.logger).Log("msg", "failed to read deletion mark from origin bucket", "error", err)
return errors.Wrapf(err, "failed to read deletion mark from origin bucket block %s", meta.ULID.String())
}
if rs.blockFilter(meta, !rs.fromBkt.IsObjNotFoundErr(err)) {
level.Info(rs.logger).Log("msg", "adding block to be replicated", "block_uuid", id.String())
Expand Down

0 comments on commit b96326a

Please sign in to comment.