Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10021

NPE in YARN Registry DNS when wrong DNS message is incoming

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      I’ve met NPE in YARN Registry DNS as below.
      It looks like this happens if the incoming DNS request is the wrong format.

      2019-11-29 10:51:12,178 ERROR dns.RegistryDNS (RegistryDNS.java:call(932)) - Error initializing DNS UDP listener
      java.lang.NullPointerException
          at java.nio.ByteBuffer.put(ByteBuffer.java:859)
          at org.apache.hadoop.registry.server.dns.RegistryDNS.serveNIOUDP(RegistryDNS.java:983)
          at org.apache.hadoop.registry.server.dns.RegistryDNS.access$100(RegistryDNS.java:121)
          at org.apache.hadoop.registry.server.dns.RegistryDNS$5.call(RegistryDNS.java:930)
          at org.apache.hadoop.registry.server.dns.RegistryDNS$5.call(RegistryDNS.java:926)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
      2019-11-29 10:51:12,180 WARN  concurrent.ExecutorHelper (ExecutorHelper.java:logThrowableFromAfterExecute(50)) - Execution exception when running task in RegistryDNS 1
      2019-11-29 10:51:12,180 WARN  concurrent.ExecutorHelper (ExecutorHelper.java:logThrowableFromAfterExecute(63)) - Caught exception in thread RegistryDNS 1:
      java.lang.NullPointerException
          at java.nio.ByteBuffer.put(ByteBuffer.java:859)
          at org.apache.hadoop.registry.server.dns.RegistryDNS.serveNIOUDP(RegistryDNS.java:983)
          at org.apache.hadoop.registry.server.dns.RegistryDNS.access$100(RegistryDNS.java:121)
          at org.apache.hadoop.registry.server.dns.RegistryDNS$5.call(RegistryDNS.java:930)
          at org.apache.hadoop.registry.server.dns.RegistryDNS$5.call(RegistryDNS.java:926)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        1. YARN-10021.001.patch
          0.9 kB
          kyungwan nam

        Activity

          People

            kyungwan nam kyungwan nam
            kyungwan nam kyungwan nam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: