spring-kafka-test doesn't work

Solution Verified - Updated -

Issue

  • spring-kafka-test[1] doesn't work and error occurs using embedded kafka in junit test case because of inconsistent version of zookeeper and scala library.
  • Kafka 2.5 should be based on zookeeper v3.5 and scala library v2.12, however, when to use spring-kafka-test on Fuse it uses zookeeper v3.4 and scala library v2.11.
  • The workaround is specifying zookeeper v3.5 and scala library v2.12 in the project pom.
  • Fuse 7.8 doesn't includes spring-kafka-test[1] and it shouldn't be supported. However, a user claim that Fuse should be based on zookeeper v3.5 and scala library v2.12 because of Fuse 7.8 was tested with Kafka 2.5.

Environment

  • Red Hat Fuse 7.8 on Spring boot 2 (7.8.0.fuse-sb2-780038-redhat-00001)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content