Skip to content

Conversation

Copy link

Copilot AI commented Jul 19, 2025

The KafkaTest smoke test was failing with a ClassNotFoundException: org.springframework.kafka.retrytopic.RetryTopicConfiguration error. This was caused by a version incompatibility between Spring Boot 2.7.18 and the older Spring Kafka 2.3.1.RELEASE dependency.

Root Cause

The RetryTopicConfiguration class was introduced in Spring Kafka 2.7.0, but the Kafka smoke test app was using Spring Kafka 2.3.1.RELEASE, which predates this class. Spring Boot 2.7.18's autoconfiguration expects this class to be available, leading to the failure.

Changes Made

  • Updated Spring Kafka dependency in smoke-tests/apps/Kafka/build.gradle.kts from 2.3.1.RELEASE to 2.8.11
  • Added missing version for com.github.ben-manes.versions plugin in settings.gradle.kts to fix build configuration

Testing

All KafkaTest variations now pass successfully:

  • KafkaTest$Java8Test
  • KafkaTest$Java11Test
  • KafkaTest$Java17Test
  • KafkaTest$Java21Test
  • KafkaTest$Java23Test
  • And their OpenJ9 variants
  • KafkaControllerSpansEnabledTest
  • KafkaDisabledTest

The upgrade maintains compatibility with the existing test logic while resolving the Spring Boot autoconfiguration issue.

Fixes #90.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Fix KafkaTest smoke test Fix KafkaTest smoke test by upgrading Spring Kafka version Jul 19, 2025
Copilot AI requested a review from trask July 19, 2025 17:27
Copilot finished work on behalf of trask July 19, 2025 17:27
Copy link
Owner

Choose a reason for hiding this comment

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

revert

Copy link
Author

Choose a reason for hiding this comment

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

Reverted the settings.gradle.kts changes and moved the plugin version declarations inline to the plugin blocks where they're used. Build and Kafka smoke test verified to work correctly. c4ae83f

Copilot AI requested a review from trask July 19, 2025 17:52
Copilot finished work on behalf of trask July 19, 2025 17:52
@trask trask closed this Jul 19, 2025
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.

Fix KafkaTest smoke test

2 participants