hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r641279 - in /hadoop/core/trunk: CHANGES.txt src/contrib/hod/hodlib/Common/util.py
Date Wed, 26 Mar 2008 12:11:03 GMT
Author: ddas
Date: Wed Mar 26 05:11:02 2008
New Revision: 641279

URL: http://svn.apache.org/viewvc?rev=641279&view=rev
Log:
HADOOP-2983. [HOD] Fixes the problem - local_fqdn() returns None when gethostbyname_ex doesnt
return any FQDNs. Contributed by Craig Macdonald.

Modified:
    hadoop/core/trunk/CHANGES.txt
    hadoop/core/trunk/src/contrib/hod/hodlib/Common/util.py

Modified: hadoop/core/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/CHANGES.txt?rev=641279&r1=641278&r2=641279&view=diff
==============================================================================
--- hadoop/core/trunk/CHANGES.txt (original)
+++ hadoop/core/trunk/CHANGES.txt Wed Mar 26 05:11:02 2008
@@ -355,6 +355,9 @@
     HADOOP-3086. Adds the testcase missed during commit of hadoop-3040.
     (Amareshwari Sriramadasu via ddas)
 
+    HADOOP-2983. [HOD] Fixes the problem - local_fqdn() returns None when 
+    gethostbyname_ex doesnt return any FQDNs. (Craig Macdonald via ddas)
+
 Release 0.16.2 - Unreleased
 
   BUG FIXES

Modified: hadoop/core/trunk/src/contrib/hod/hodlib/Common/util.py
URL: http://svn.apache.org/viewvc/hadoop/core/trunk/src/contrib/hod/hodlib/Common/util.py?rev=641279&r1=641278&r2=641279&view=diff
==============================================================================
--- hadoop/core/trunk/src/contrib/hod/hodlib/Common/util.py (original)
+++ hadoop/core/trunk/src/contrib/hod/hodlib/Common/util.py Wed Mar 26 05:11:02 2008
@@ -159,7 +159,8 @@
     for name in nameInfo[1]:
         if name.count(".") and name.startswith(me):
             fqdn = name
-
+    if fqdn == None:
+        fqdn = me
     return(fqdn)
   
 def need_to_allocate(allocated, config, command):



Mime
View raw message