Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-1697

Startup can fail if DNS lookup fails for seed node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.6.7, 0.7.0 rc 1
    • None
    • None
    • Low

    Description

      This might fall into one of those WONT FIX scenarios, since not many things are going to work well with flaky DNS. This has only happened to me once, but I someone might be interested in the stack trace. In this case cdbsd01.hadoop.pvt is one of my seed nodes.

       INFO [main] 2010-11-02 11:52:00,141 CLibrary.java (line 43) JNA not found. Native methods will be disabled.
       INFO [main] 2010-11-02 11:52:00,421 DatabaseDescriptor.java (line 246) DiskAccessMode ismmap, indexAccessMode is mmap
      ERROR [main] 2010-11-02 11:52:25,591 CassandraDaemon.java (line 232) Exception encountered during startup.
      java.lang.ExceptionInInitializerError
      	at org.apache.cassandra.thrift.CassandraDaemon.setup(CassandraDaemon.java:72)
      	at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:214)
      Caused by: java.lang.RuntimeException: java.net.UnknownHostException: cdbsd01.hadoop.pvt
      	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:551)
      	... 2 more
      Caused by: java.net.UnknownHostException: cdbsd01.hadoop.pvt
      	at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
      	at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
      	at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
      	at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
      	at java.net.InetAddress.getAllByName(InetAddress.java:1084)
      	at java.net.InetAddress.getAllByName(InetAddress.java:1020)
      	at java.net.InetAddress.getByName(InetAddress.java:970)
      	at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:540)
      	... 2 more
      

      Attachments

        1. 1697.txt
          1 kB
          Jonathan Ellis

        Activity

          People

            jbellis Jonathan Ellis
            appodictic Edward Capriolo
            Jonathan Ellis
            Gary Dusbabek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: