Skip to content

feat: don't enqueue records to kafka when the context has been cancelled#5499

Merged
javiermolinar merged 4 commits intomainfrom
dont-enqueue-context-cancelled-records
Sep 16, 2025
Merged

feat: don't enqueue records to kafka when the context has been cancelled#5499
javiermolinar merged 4 commits intomainfrom
dont-enqueue-context-cancelled-records

Conversation

@javiermolinar
Copy link
Copy Markdown
Contributor

@javiermolinar javiermolinar commented Aug 8, 2025

What this PR does:

This PR tries to skip enqueue records when the context has been cancelled. This is not perfect since the context can be cancelled right after the check.

It also track it as a different error to allow us to discriminate real kafka errors versus context cancellation ones

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Copy link
Copy Markdown
Contributor

@mapno mapno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but tests are for some reason failing

@javiermolinar javiermolinar merged commit b8f58a8 into main Sep 16, 2025
22 checks passed
@javiermolinar javiermolinar deleted the dont-enqueue-context-cancelled-records branch September 16, 2025 07:37
davidham added a commit that referenced this pull request Sep 16, 2025
…grafana/tempo into feature/add-option-to-run-once-and-exit

* 'feature/add-option-to-run-once-and-exit' of github.com:grafana/tempo:
  [tools] repalce missing golangci dependency with fork (#5653)
  feat: don't enqueue records to kafka when the context has been cancelled (#5499)
  Gracefully handle unsupported block encodings (#5543)
  vParquet5: dedicated columns for int values (#5639)
  Add support for scope in cost-attribution usage tracker (#5646)
  chore: refactor method to wait for a healthy broker (#5618)
  Update local docker-compose example to scrape /usage_metrics (#5643)
  Fix race condition in block-builder test (#5645)
  Upgrade parquet-go (#5644)
  Cleanup blocks on startup (#5642)
  Move tracing install to pkg/tracing (#5634)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants