Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-297

KafkaNotificationTest.testSendReceiveMessage fails when atlas-server is running on the same machine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.6-incubating
    • 0.6-incubating
    • None
    • None
    • Dev environment

    Description

      Start the atlas-server on local machine. Then execute mvn -Dtest=KafkaNotificationTest -DfailIfNoTests=false test

      Get the following stack trace and test failure:

      Running org.apache.atlas.kafka.KafkaNotificationTest
      Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 1.262 sec <<< FAILURE! - in org.apache.atlas.kafka.KafkaNotificationTest
      setUp(org.apache.atlas.kafka.KafkaNotificationTest) Time elapsed: 0.88 sec <<< FAILURE!
      org.apache.atlas.AtlasException: Failed to start embedded kafka
      at sun.nio.ch.Net.bind0(Native Method)
      at sun.nio.ch.Net.bind(Net.java:463)
      at sun.nio.ch.Net.bind(Net.java:455)
      at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
      at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
      at org.apache.zookeeper.server.NIOServerCnxnFactory.configure(NIOServerCnxnFactory.java:95)
      at org.apache.zookeeper.server.ServerCnxnFactory.createFactory(ServerCnxnFactory.java:126)
      at org.apache.atlas.kafka.KafkaNotification.startZk(KafkaNotification.java:140)
      at org.apache.atlas.kafka.KafkaNotification.start(KafkaNotification.java:170)
      at org.apache.atlas.kafka.KafkaNotificationTest.setUp(KafkaNotificationTest.java:40)

      Attachments

        1. ATLAS-297.patch
          5 kB
          Hemanth Yamijala
        2. ATLAS-297-1.patch
          0.7 kB
          Hemanth Yamijala
        3. ATLAS-297-2.patch
          11 kB
          Hemanth Yamijala

        Activity

          People

            yhemanth Hemanth Yamijala
            yhemanth Hemanth Yamijala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: