Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14900

Flaky test AuthorizerTest failing with NPE

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.5.0
    • kraft

    Description

      The AuthorizerTest has multiple tests that appear to have the same flaky failure:

      org.apache.kafka.server.fault.FaultHandlerException: quorumTestHarnessFaultHandler: Unhandled error initializing new publishers: Cannot invoke "kafka.raft.KafkaRaftManager.client()" because the return value of "kafka.server.SharedServer.raftManager()" is null
      	at app//kafka.server.SharedServer.$anonfun$start$3(SharedServer.scala:256)
      	at app//org.apache.kafka.image.loader.MetadataLoader.stillNeedToCatchUp(MetadataLoader.java:229)
      	at app//org.apache.kafka.image.loader.MetadataLoader.initializeNewPublishers(MetadataLoader.java:270)
      	at app//org.apache.kafka.image.loader.MetadataLoader.lambda$scheduleInitializeNewPublishers$0(MetadataLoader.java:258)
      	at app//org.apache.kafka.queue.KafkaEventQueue$EventContext.run(KafkaEventQueue.java:127)
      	at app//org.apache.kafka.queue.KafkaEventQueue$EventHandler.handleEvents(KafkaEventQueue.java:210)
      	at app//org.apache.kafka.queue.KafkaEventQueue$EventHandler.run(KafkaEventQueue.java:181)
      	at java.base@17.0.4.1/java.lang.Thread.run(Thread.java:833)
      Caused by: java.lang.NullPointerException: Cannot invoke "kafka.raft.KafkaRaftManager.client()" because the return value of "kafka.server.SharedServer.raftManager()" is null
      	... 8 more

      Attachments

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              gharris1727 Greg Harris
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: