hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077071 - /hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/http/HttpServer.java
Date Fri, 04 Mar 2011 03:37:33 GMT
Author: omalley
Date: Fri Mar  4 03:37:33 2011
New Revision: 1077071

URL: http://svn.apache.org/viewvc?rev=1077071&view=rev
Log:
commit be9f52538e7e3b30785e73316db238bef0c0ba29
Author: Konstantin Boudnik <cos@yahoo-inc.com>
Date:   Thu Dec 10 11:23:34 2009 -0800

    HADOOP-6428 from https://issues.apache.org/jira/secure/attachment/12427624/HADOOP-6428.0.20.patch
    
    +++ b/YAHOO-CHANGES.txt
    +    HADOOP-6428. HttpServer sleeps with negative values (cos)

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/http/HttpServer.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/http/HttpServer.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/http/HttpServer.java?rev=1077071&r1=1077070&r2=1077071&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/http/HttpServer.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/core/org/apache/hadoop/http/HttpServer.java
Fri Mar  4 03:37:33 2011
@@ -463,14 +463,13 @@ public class HttpServer implements Filte
           port = listener.getLocalPort();
           if (port < 0) {
             LOG.warn("Bounds port is " + port + " after webserver start");
-            Random r = new Random(1000);
             for (int i = 0; i < MAX_RETRIES/2; i++) {
               try {
                 webServer.stop();
               } catch (Exception e) {
                 LOG.warn("Can't stop  web-server", e);
               }
-              Thread.sleep(r.nextInt());
+              Thread.sleep(1000);
               
               listener.setPort(oriPort == 0 ? 0 : (oriPort += 1));
               listener.open();



Mime
View raw message