tez-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hit...@apache.org
Subject tez git commit: TEZ-2683. TestHttpConnection::testAsyncHttpConnectionInterrupt fails in certain environments. (Rajesh Balamohan via hitesh)
Date Wed, 12 Aug 2015 18:11:33 GMT
Repository: tez
Updated Branches:
  refs/heads/master ecd90dc1f -> c0aec00da


TEZ-2683. TestHttpConnection::testAsyncHttpConnectionInterrupt fails in certain environments.
(Rajesh Balamohan via hitesh)


Project: http://git-wip-us.apache.org/repos/asf/tez/repo
Commit: http://git-wip-us.apache.org/repos/asf/tez/commit/c0aec00d
Tree: http://git-wip-us.apache.org/repos/asf/tez/tree/c0aec00d
Diff: http://git-wip-us.apache.org/repos/asf/tez/diff/c0aec00d

Branch: refs/heads/master
Commit: c0aec00daf59331a3931b4a8b1ff7888c19c0da1
Parents: ecd90dc
Author: Hitesh Shah <hitesh@apache.org>
Authored: Wed Aug 12 11:10:36 2015 -0700
Committer: Hitesh Shah <hitesh@apache.org>
Committed: Wed Aug 12 11:10:36 2015 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                  | 1 +
 .../test/java/org/apache/tez/http/TestHttpConnection.java    | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tez/blob/c0aec00d/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 3de9fb7..a19e369 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -16,6 +16,7 @@ INCOMPATIBLE CHANGES
   TEZ-2699. Internalize strings in ATF parser
 
 ALL CHANGES:
+  TEZ-2683. TestHttpConnection::testAsyncHttpConnectionInterrupt fails in certain environments.
   TEZ-2692. bugfixes & enhancements related to job parser and analyzer.
   TEZ-2663. SessionNotRunning exceptions are wrapped in a ServiceException from a dying AM.
   TEZ-2630. TezChild receives IP address instead of FQDN.

http://git-wip-us.apache.org/repos/asf/tez/blob/c0aec00d/tez-runtime-library/src/test/java/org/apache/tez/http/TestHttpConnection.java
----------------------------------------------------------------------
diff --git a/tez-runtime-library/src/test/java/org/apache/tez/http/TestHttpConnection.java
b/tez-runtime-library/src/test/java/org/apache/tez/http/TestHttpConnection.java
index 8b07d5a..ed4ed54 100644
--- a/tez-runtime-library/src/test/java/org/apache/tez/http/TestHttpConnection.java
+++ b/tez-runtime-library/src/test/java/org/apache/tez/http/TestHttpConnection.java
@@ -52,7 +52,13 @@ public class TestHttpConnection {
   private static int connTimeout = 5000;
   private static int readTimeout = 5000;
 
-  private static final String NOT_HOSTED_URL = "http://10.255.255.255:10221";
+  /**
+   * Ref: https://en.wikipedia.org/wiki/Reserved_IP_addresses
+   * Using 240.0.0.1 as the intention is to connect to unhosted ip and interrupt in between.
+   * With 10.255.255.255, it is possible to get permission denied exception in some
+   * networks (ref: http://linux.die.net/man/2/connect).  192.0.2.x can be considered as
well.
+   */
+  private static final String NOT_HOSTED_URL = "http://240.0.0.1:10221";
 
   private static ExecutorService executorService;
   private static URL url;


Mime
View raw message