testcontainers-spring-boot: Kafka container can not submit metrics to Confluent

I have Spring Boot based web app with Kafka integration and I use embedded-kafka to spin up Kafka container.

I use typical configuration:

spring.kafka.bootstrap-servers=${embedded.kafka.brokerList}
embedded.kafka.topicsToCreate=tickets

and confluentinc-cp-kafka:5.4.1 docker image

https://hub.docker.com/r/confluentinc/cp-kafka/tags

docker pull confluentinc/cp-kafka:5.4.1

When I run test in Gitlab CI, it fails to spin up Kafka container:

[2020-06-02 08:15:54,365] ERROR Could not submit metrics to Confluent: Connect to support-metrics.confluent.io:443 [support-metrics.confluent.io/35.160.104.243, support-metrics.confluent.io/52.89.16.125] failed: connect timed out (io.confluent.support.metrics.utils.WebClient)
[2020-06-02 08:15:54,365] ERROR Failed to submit metrics via secure endpoint, falling back to insecure endpoint (io.confluent.support.metrics.submitters.ConfluentSubmitter)
[2020-06-02 08:15:58,379] ERROR Could not submit metrics to Confluent: Connect to support-metrics.confluent.io:80 [support-metrics.confluent.io/35.160.104.243, support-metrics.confluent.io/52.89.16.125] failed: connect timed out (io.confluent.support.metrics.utils.WebClient)
[2020-06-02 08:15:58,379] ERROR Failed to submit metrics to Confluent via insecure endpoint=http://support-metrics.confluent.io/anon -- giving up (io.confluent.support.metrics.submitters.ConfluentSubmitter)
2020-06-02 08:16:37.702  WARN --- [Test worker][][] AnnotationConfigApplicationContext       : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'kafka' defined in com.playtika.test.kafka.configuration.KafkaContainerConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.testcontainers.containers.GenericContainer]: Factory method 'kafka' threw exception; nested exception is org.testcontainers.containers.ContainerLaunchException: Container startup failed
2020-06-02 08:16:38.324 ERROR --- [Test worker][][] SpringApplication                        : Application startup failed

Is it possible to turn off ConfluentSubmitter? Is there any way how to overcome this issue? Different docker image?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 24 (23 by maintainers)

Commits related to this issue

Most upvoted comments

@pmihalcin I replied in https://github.com/confluentinc/cp-docker-images/issues/709#issuecomment-637631204 solution provided by @vasilievip should be enough. FYI, we’re planning to disable proactive support by default in CP 6.0.

Thanks for resurfacing it Cheers, Vik