kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Mollitor (Jira)" <j...@apache.org>
Subject [jira] [Created] (KAFKA-9443) Producer Can Fail with NPE
Date Thu, 16 Jan 2020 15:36:00 GMT
David Mollitor created KAFKA-9443:

             Summary: Producer Can Fail with NPE
                 Key: KAFKA-9443
                 URL: https://issues.apache.org/jira/browse/KAFKA-9443
             Project: Kafka
          Issue Type: Improvement
            Reporter: David Mollitor

kafka.api.ClientIdQuotaTest > testProducerConsumerOverrideUnthrottled FAILED
        at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:1141)
        at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:429)
        at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:312)
        at kafka.api.IntegrationTestHarness.createProducer(IntegrationTestHarness.scala:123)
        at kafka.api.ClientIdQuotaTest.createQuotaTestClients(ClientIdQuotaTest.scala:37)
        at kafka.api.BaseQuotaTest.setUp(BaseQuotaTest.scala:76)
        at kafka.api.ClientIdQuotaTest.setUp(ClientIdQuotaTest.scala:33)

I believe that the issue is that there is some small amount of initialization that happens
before the logger is configured.  If a failure occurs quickly then an Exception is thrown
and the logger is used to report the error,.. but it's not yet setup so it fails with NPE.

This message was sent by Atlassian Jira

View raw message