Skip to content

Commit

Permalink
Merge pull request #2169 from keboola/jt-fix-issues
Browse files Browse the repository at this point in the history
fix: Data race in metacleanup
  • Loading branch information
jachym-tousek-keboola authored Dec 3, 2024
2 parents 06cd5af + 675f427 commit 60c9f4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func (n *Node) cleanMetadata(ctx context.Context) (err error) {

// Log/trace job details
attrs := job.Telemetry()
ctx = ctxattr.ContextWith(ctx, attrs...)
ctx := ctxattr.ContextWith(ctx, attrs...)

// Trace each job
ctx, span := n.telemetry.Tracer().Start(ctx, "keboola.go.stream.model.cleanup.metadata.cleanJob")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ func (o *operator) waitForFileClosing(ctx context.Context, file *fileData) (stat

// Make sure the statistics cache is up-to-date
if err := o.statisticsCache.WaitForRevision(ctx, file.ModRevision); err != nil {
return statistics.Aggregated{}, errors.PrefixError(err, "error when waiting for statistics cache revision")
return statistics.Aggregated{}, errors.PrefixErrorf(err, "error when waiting for statistics cache revision, actual: %v, expected: %v", o.statisticsCache.Revision(), file.ModRevision)
}

// Get file statistics
Expand Down

0 comments on commit 60c9f4f

Please sign in to comment.