hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Clampffer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-11294) libhdfs++: Segfault in HA failover if DNS lookup for both Namenodes fails
Date Tue, 12 Sep 2017 19:00:05 GMT

     [ https://issues.apache.org/jira/browse/HDFS-11294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Clampffer updated HDFS-11294:
-----------------------------------
    Attachment: HDFS-11294.HDFS-8707.002.patch

New patch with test fixes.  Top level domain needs to exist or else the dns resolver will
exit before it gets to the bad dereference so I'm using a non-existent subdomain of apache.org.
 Test also explicitly sets the nameservice to the one in the config and verifies the connection
failure error message is the one that should be coming out of this fix.

> libhdfs++: Segfault in HA failover if DNS lookup for both Namenodes fails
> -------------------------------------------------------------------------
>
>                 Key: HDFS-11294
>                 URL: https://issues.apache.org/jira/browse/HDFS-11294
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>            Reporter: James Clampffer
>            Assignee: James Clampffer
>         Attachments: HDFS-11294.HDFS-8707.001.patch, HDFS-11294.HDFS-8707.002.patch,
HDFS-8707.HDFS-11294.000.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message