Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-8707 Implement an async pure c++ HDFS client
  3. HDFS-11294

libhdfs++: Segfault in HA failover if DNS lookup for both Namenodes fails

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • hdfs-client
    • None

    Description

      Hit while doing more manual testing on HDFS-11028.

      The HANamenodeTracker takes an asio endpoint to figure out what endpoint on the other node to try next during a failover. This is done by passing the element at index 0 from endpoints (a std::vector<asio endpoint>).

      When DNS fails the endpoints vector for that node will be empty so the iterator returned by endpoints[0] is just a null pointer that gets dereferenced and causes a segfault.

      Attachments

        1. HDFS-11294.HDFS-8707.002.patch
          36 kB
          James Clampffer
        2. HDFS-11294.HDFS-8707.001.patch
          36 kB
          James Clampffer
        3. HDFS-8707.HDFS-11294.000.patch
          13 kB
          James Clampffer

        Activity

          People

            James C James Clampffer
            James C James Clampffer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: