question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]spring-cloud-azure-starter-storage-blob with spring-kafka fails to consume a topic

See original GitHub issue

Describe the bug When using the dependency spring-cloud-azure-starter-storage-blob with spring-kafka and try to create a consumer to listen to a topic im always receiving this error Received error INVALID_REQUEST from node -1 when making an ApiVersionsRequest with correlation id 50. If i remove the spring-cloud-azure-starter-storage-blob dependency its works perfectly. There is a workaround to fix this issue? Exception or Stack Trace

2022-08-10 21:21:30.878 WARN 78294 — [ group-0-C-1] org.apache.kafka.clients.NetworkClient : [Consumer clientId=kafka-service-name-0, groupId=group] Received error INVALID_REQUEST from node -1 when making an ApiVersionsRequest with correlation id 15. Disconnecting. 2022-08-10 21:21:30.879 WARN 78294 — [ group-0-C-1] org.apache.kafka.clients.NetworkClient : [Consumer clientId=kafka-service-name-0, groupId=group] Bootstrap broker localhost:9092 (id: -1 rack: null) disconnected

To Reproduce Start a project with the dependency of spring-cloud-azure-starter-storage-blob and spring-kafka and create a consumer

Setup (please complete the following information):

  • OS: [Linux]
  • IDE: [IntelliJ]
  • Library/Libraries:
  • Java version: 11
  • App Server/Environment:Tomcat
  • Frameworks: SpringBoot

Additional context Add any other context about the problem here.

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • [ X] Bug Description Added
  • [ X] Repro Steps Added
  • [ X] Setup information Added

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
backwind1233commented, Aug 25, 2022

@thalleslmF Thanks for reaching out, this a known issue, it’s the same as this issue. The issue has been resolved in https://github.com/Azure/azure-sdk-for-java/pull/30605, and will be available in our next release which version is 4.4.0. With version 4.4.0, you can configure spring.cloud.azure.eventhubs.kafka.enabled=false to address this issue.

A workaround to fix this issue for now is you can exclude com.azure.spring.cloud.autoconfigure.kafka.AzureEventHubsKafkaOAuth2AutoConfiguration

@SpringBootApplication(exclude = {
    AzureEventHubsKafkaOAuth2AutoConfiguration.class
})
1reaction
thalleslmFcommented, Aug 26, 2022

thank you @backwind1233 i will try

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to consume Kafka messages within Spring Boot
I am told that Kafka is not able to handle name lookup and from my ... org.apache.kafka: DEBUG spring: kafka: bootstrap-servers: <FQDN names ......
Read more >
Can Your Kafka Consumers Handle a Poison Pill? - Confluent
A poison pill (in the context of Kafka) is a record that has been produced to a Kafka topic and always fails when...
Read more >
Kafka - How to fail gracefully - Quarkus
It uses the dead-letter-topic failure strategy and contains a component reading the dead-letter topic ( dead-letter-topic-movies ). You can run ...
Read more >
Spring for Apache Kafka
Starting with version 2.5, you can use a RoutingKafkaTemplate to select the producer at runtime, based on the destination topic name. The routing...
Read more >
Intro to Apache Kafka with Spring - Baeldung
xml of spring-kafka. Finally, we need to write a listener to consume Greeting messages: @KafkaListener( topics = "topicName", ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found