test(kafka): fix flaky consumer ignore-topic tests with producer.flush()#2603
Open
dependabot[bot] wants to merge 2 commits intomainfrom
Open
test(kafka): fix flaky consumer ignore-topic tests with producer.flush()#2603dependabot[bot] wants to merge 2 commits intomainfrom
dependabot[bot] wants to merge 2 commits intomainfrom
Conversation
Bumps the github-actions group with 1 update in the / directory: [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish). Updates `pypa/gh-action-pypi-publish` from 1.13.0 to 1.14.0 - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](pypa/gh-action-pypi-publish@ed0c539...cef2210) --- updated-dependencies: - dependency-name: pypa/gh-action-pypi-publish dependency-version: 1.14.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
🤖 GitHub commentsJust comment with:
|
Contributor
|
@copilot fix the testcases |
Agent-Logs-Url: https://github.com/elastic/apm-agent-python/sessions/295f0298-a167-4641-b5d1-aae0ddb3bb79 Co-authored-by: fr4nc1sc0-r4m0n <215478872+fr4nc1sc0-r4m0n@users.noreply.github.com>
Contributor
Fixed in commit |
Copilot
AI
changed the title
build(deps): bump pypa/gh-action-pypi-publish from 1.13.0 to 1.14.0 in the github-actions group across 1 directory
test(kafka): fix flaky consumer ignore-topic tests with producer.flush()
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Kafka tests sending to multiple topics were non-deterministic after migrating from
bitnami/kafka:3.1toapache/kafka:4.1.0(KRaft mode).producer.send()is async — messages to 3 different topics/partitions can arrive at the broker at different times, causing the consumer to poll, receive only foo+bar, then time out beforetestis committed.Changes
producer.flush()after sends indelayed_sendfor:test_kafka_consumer_ignore_topictest_kafka_consumer_ignore_topic_ongoing_transactionThis ensures all messages are broker-acknowledged before the consumer polls, guaranteeing all 3 are visible within
consumer_timeout_ms.