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

ServerShutdownTest fails in trunk.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.9.0.0
    • None
    • None

    Description

      I ran into these failures consistently when trying to build Kafka locally:

      kafka.server.ServerShutdownTest > testCleanShutdown FAILED
      java.lang.NullPointerException
      at kafka.server.ServerShutdownTest$$anonfun$verifyNonDaemonThreadsStatus$2.apply(ServerShutdownTest.scala:147)
      at kafka.server.ServerShutdownTest$$anonfun$verifyNonDaemonThreadsStatus$2.apply(ServerShutdownTest.scala:147)
      at scala.collection.TraversableOnce$$anonfun$count$1.apply(TraversableOnce.scala:114)
      at scala.collection.TraversableOnce$$anonfun$count$1.apply(TraversableOnce.scala:113)
      at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:105)
      at scala.collection.TraversableOnce$class.count(TraversableOnce.scala:113)
      at scala.collection.mutable.ArrayOps$ofRef.count(ArrayOps.scala:105)
      at kafka.server.ServerShutdownTest.verifyNonDaemonThreadsStatus(ServerShutdownTest.scala:147)
      at kafka.server.ServerShutdownTest.testCleanShutdown(ServerShutdownTest.scala:101)

      kafka.server.ServerShutdownTest > testCleanShutdownWithDeleteTopicEnabled FAILED
      java.lang.NullPointerException
      at kafka.server.ServerShutdownTest$$anonfun$verifyNonDaemonThreadsStatus$2.apply(ServerShutdownTest.scala:147)
      at kafka.server.ServerShutdownTest$$anonfun$verifyNonDaemonThreadsStatus$2.apply(ServerShutdownTest.scala:147)
      at scala.collection.TraversableOnce$$anonfun$count$1.apply(TraversableOnce.scala:114)
      at scala.collection.TraversableOnce$$anonfun$count$1.apply(TraversableOnce.scala:113)
      at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:105)
      at scala.collection.TraversableOnce$class.count(TraversableOnce.scala:113)
      at scala.collection.mutable.ArrayOps$ofRef.count(ArrayOps.scala:105)
      at kafka.server.ServerShutdownTest.verifyNonDaemonThreadsStatus(ServerShutdownTest.scala:147)
      at kafka.server.ServerShutdownTest.testCleanShutdownWithDeleteTopicEnabled(ServerShutdownTest.scala:114)

      kafka.server.ServerShutdownTest > testCleanShutdownAfterFailedStartup FAILED
      java.lang.NullPointerException
      at kafka.server.ServerShutdownTest$$anonfun$verifyNonDaemonThreadsStatus$2.apply(ServerShutdownTest.scala:147)
      at kafka.server.ServerShutdownTest$$anonfun$verifyNonDaemonThreadsStatus$2.apply(ServerShutdownTest.scala:147)
      at scala.collection.TraversableOnce$$anonfun$count$1.apply(TraversableOnce.scala:114)
      at scala.collection.TraversableOnce$$anonfun$count$1.apply(TraversableOnce.scala:113)
      at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
      at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:105)
      at scala.collection.TraversableOnce$class.count(TraversableOnce.scala:113)
      at scala.collection.mutable.ArrayOps$ofRef.count(ArrayOps.scala:105)
      at kafka.server.ServerShutdownTest.verifyNonDaemonThreadsStatus(ServerShutdownTest.scala:147)
      at kafka.server.ServerShutdownTest.testCleanShutdownAfterFailedStartup(ServerShutdownTest.scala:141)

      It looks like Jenkins also had issues with these tests:

      https://builds.apache.org/job/Kafka-trunk/351/console

      I would like to provide a patch that fixes this.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            fanatoly Anatoly Fayngelerin
            fanatoly Anatoly Fayngelerin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment