Skip to content

Commit dd0aa0c

Browse files
authored
profileStore: add err check, return err if phlareparquet.CopyAsRowGroups returns err (#3421)
1 parent dbc8af1 commit dd0aa0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/phlaredb/profile_store.go

+3
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ func (s *profileStore) writeRowGroups(path string, rowGroups []parquet.RowGroup)
381381
readers[i] = rg.Rows()
382382
}
383383
n, numRowGroups, err = phlareparquet.CopyAsRowGroups(s.writer, schemav1.NewMergeProfilesRowReader(readers), s.cfg.MaxBufferRowCount)
384+
if err != nil {
385+
return 0, 0, err
386+
}
384387

385388
if err := s.writer.Close(); err != nil {
386389
return 0, 0, err

0 commit comments

Comments
 (0)