Skip to content

Commit

Permalink
Reenable cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paul1r committed Jan 10, 2024
1 parent b1271d3 commit 11983eb
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pkg/storage/stores/shipper/bloomshipper/compress_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ func UncompressBloomBlock(block *LazyBlock, workingDirectory string, logger log.
return "", fmt.Errorf("error writing data to temp file: %w", err)
}
level.Info(logger).Log("msg", "extracting archive", "archive", archivePath, "workingDirectory", workingDirectoryPath, "blockPath", block.BlockPath)
// TODO: Uncomment after debugging
//defer func() {
// err = os.Remove(archivePath)
// if err != nil {
// level.Error(logger).Log("msg", "removing archive file", "err", err, "file", archivePath)
// }
//}()
defer func() {
err = os.Remove(archivePath)
if err != nil {
level.Error(logger).Log("msg", "removing archive file", "err", err, "file", archivePath)
}
}()
err = extractArchive(archivePath, workingDirectoryPath)
if err != nil {
return "", fmt.Errorf("error extracting archive: %w", err)
Expand Down

0 comments on commit 11983eb

Please sign in to comment.