Skip to content

chore(deps): update confluentinc/cp-kafka docker tag to v8.2.0#826

Merged
mensfeld merged 5 commits intomasterfrom
renovate/confluentinc-cp-kafka-8.x
Mar 31, 2026
Merged

chore(deps): update confluentinc/cp-kafka docker tag to v8.2.0#826
mensfeld merged 5 commits intomasterfrom
renovate/confluentinc-cp-kafka-8.x

Conversation

@mensfeld
Copy link
Copy Markdown
Member

This PR contains the following updates:

Package Update Change
confluentinc/cp-kafka minor 8.1.18.2.0

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the local/dev Kafka Docker image to Confluent Platform Kafka 8.2.0, and adjusts rdkafka admin specs to be resilient to config list ordering differences introduced by the newer Kafka image.

Changes:

  • Bump confluentinc/cp-kafka Docker tag from 8.1.1 to 8.2.0 in both compose configurations.
  • Update broker/topic config assertions in admin_spec.rb to search configs by name instead of relying on configs.first ordering.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
spec/lib/rdkafka/admin_spec.rb Makes config assertions order-independent by locating specific config entries by name.
docker-compose.yml Updates Kafka image tag to confluentinc/cp-kafka:8.2.0.
docker-compose-ssl.yml Updates Kafka image tag to confluentinc/cp-kafka:8.2.0 for the SSL compose setup.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

config = resources_results.first.configs.find { |c| c.name == "log.cleaner.min.compaction.lag.ms" }
expect(config).not_to be_nil
expect(config.value).to eq("0")
expect(resources_results.first.configs.map(&:synonyms)).not_to be_empty
Copy link

Copilot AI Mar 27, 2026

Choose a reason for hiding this comment

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

These specs now avoid relying on configs.first ordering, but there is still a remaining expectation earlier in this file that asserts resources_results.first.configs.first is compression.type/producer (around lines 179-180). With Kafka upgrades changing config ordering, that earlier assertion is likely still flaky; consider updating it to locate the config by name (similar to the new find { |c| c.name == ... } pattern) for consistency and stability.

Suggested change
expect(resources_results.first.configs.map(&:synonyms)).not_to be_empty
expect(config.synonyms).not_to be_empty

Copilot uses AI. Check for mistakes.
Kafka 8.2.0 added new broker configs (e.g. ssl.keystore.credentials)
which changed the ordering of configs returned by DescribeConfigs.
Instead of checking .first, find configs by name to make tests
resilient to config ordering changes across Kafka versions.
@mensfeld mensfeld force-pushed the renovate/confluentinc-cp-kafka-8.x branch from 7d6e3fe to 84dafbe Compare March 30, 2026 18:57
…nings

Kafka 8.2.0 logs TOPIC_ALREADY_EXISTS warnings when concurrent produce
or metadata requests trigger auto-creation for the same topic. Since all
tests pre-create topics via the admin API, broker-side auto-creation is
unnecessary and causes spurious warnings that fail verify_kafka_warnings.
Kafka 8.2.0 logs TOPIC_ALREADY_EXISTS warnings when concurrent metadata
or produce requests race to auto-create the same topic. Disabling
auto.create.topics on the broker eliminates these races entirely.

Pre-create the hardcoded "test" topic used by producer topic_config specs
in the before(:suite) hook alongside the existing example_topic.
…ets)

Kafka 8.2.0 races internally when auto-creating __consumer_offsets on
first consumer group join. This is a Kafka-internal race condition that
cannot be prevented from the client side.
@mensfeld mensfeld force-pushed the renovate/confluentinc-cp-kafka-8.x branch from d3cf4a9 to fac15b3 Compare March 30, 2026 20:20
@mensfeld mensfeld merged commit 4ea956e into master Mar 31, 2026
98 checks passed
@mensfeld mensfeld deleted the renovate/confluentinc-cp-kafka-8.x branch March 31, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants