Skip to content

Commit

Permalink
restore: add logging of closing of span files
Browse files Browse the repository at this point in the history
Release note: none.
Epic: none.
  • Loading branch information
dt committed Feb 23, 2024
1 parent 32c5bdb commit 34c96ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/ccl/backupccl/restore_data_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ func (rd *restoreDataProcessor) openSSTs(
readAsOfIter := storage.NewReadAsOfIterator(iter, rd.spec.RestoreTime)

cleanup := func() {
log.VInfof(ctx, 1, "finished with and closing %d files in span [%s-%s)", len(entry.Files), entry.Span.Key, entry.Span.EndKey)
readAsOfIter.Close()
rd.qp.Release(iterAllocs...)

Expand All @@ -397,7 +398,7 @@ func (rd *restoreDataProcessor) openSSTs(
return mSST, nil
}

log.VEventf(ctx, 1 /* level */, "ingesting span [%s-%s)", entry.Span.Key, entry.Span.EndKey)
log.VEventf(ctx, 1, "ingesting %d files in span [%s-%s)", len(entry.Files), entry.Span.Key, entry.Span.EndKey)

storeFiles := make([]storageccl.StoreFile, 0, len(entry.Files))
iterAllocs := make([]*quotapool.IntAlloc, 0, len(entry.Files))
Expand Down

0 comments on commit 34c96ec

Please sign in to comment.