hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1360845 - in /hadoop/common/branches/branch-1: CHANGES.txt src/test/org/apache/hadoop/ipc/TestSaslRPC.java
Date Thu, 12 Jul 2012 18:25:22 GMT
Author: eli
Date: Thu Jul 12 18:25:22 2012
New Revision: 1360845

URL: http://svn.apache.org/viewvc?rev=1360845&view=rev
Log:
HADOOP-7836. TestSaslRPC#testDigestAuthMethodHostBasedToken fails with hostname localhost.localdomain.
Contributed by Daryn Sharp

Modified:
    hadoop/common/branches/branch-1/CHANGES.txt
    hadoop/common/branches/branch-1/src/test/org/apache/hadoop/ipc/TestSaslRPC.java

Modified: hadoop/common/branches/branch-1/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/CHANGES.txt?rev=1360845&r1=1360844&r2=1360845&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/CHANGES.txt (original)
+++ hadoop/common/branches/branch-1/CHANGES.txt Thu Jul 12 18:25:22 2012
@@ -82,6 +82,9 @@ Release 1.2.0 - unreleased
 
     HDFS-3639. JspHelper#getUGI should always verify the token if
     security is enabled. (eli)
+
+    HADOOP-7836. TestSaslRPC#testDigestAuthMethodHostBasedToken fails
+    with hostname localhost.localdomain. (daryn via eli)
  
 Release 1.1.0 - unreleased
 

Modified: hadoop/common/branches/branch-1/src/test/org/apache/hadoop/ipc/TestSaslRPC.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-1/src/test/org/apache/hadoop/ipc/TestSaslRPC.java?rev=1360845&r1=1360844&r2=1360845&view=diff
==============================================================================
--- hadoop/common/branches/branch-1/src/test/org/apache/hadoop/ipc/TestSaslRPC.java (original)
+++ hadoop/common/branches/branch-1/src/test/org/apache/hadoop/ipc/TestSaslRPC.java Thu Jul
12 18:25:22 2012
@@ -364,7 +364,10 @@ public class TestSaslRPC {
     server.start();
 
     final UserGroupInformation current = UserGroupInformation.getCurrentUser();
-    final InetSocketAddress addr = NetUtils.getConnectAddress(server);
+    // don't use what the rpc server claims it's bound to since it's the
+    // client's responsibility to set the service
+    final InetSocketAddress addr = NetUtils.createSocketAddr(
+        ADDRESS, server.getListenerAddress().getPort());
     TestTokenIdentifier tokenId = new TestTokenIdentifier(new Text(current
         .getUserName()));
     Token<TestTokenIdentifier> token = new Token<TestTokenIdentifier>(tokenId,



Mime
View raw message