Prechádzať zdrojové kódy

ZOOKEEPER-1700. FLETest consistently failing - setLastSeenQuorumVerifier
seems to be hanging (phunt via fpj)



git-svn-id: https://svn.apache.org/repos/asf/zookeeper/trunk@1481317 13f79535-47bb-0310-9956-ffa450edef68

Flavio Paiva Junqueira 12 rokov pred
rodič
commit
925599c72b

+ 3 - 0
CHANGES.txt

@@ -342,6 +342,9 @@ BUGFIXES:
   ZOOKEEPER-1672. zookeeper client does not accept "-members" option
   in reconfig command (Xiaoshuang Wang via phunt)
 
+  ZOOKEEPER-1700. FLETest consistently failing - setLastSeenQuorumVerifier
+  seems to be hanging (phunt via fpj)
+
 IMPROVEMENTS:
 
   ZOOKEEPER-1170. Fix compiler (eclipse) warnings: unused imports,

+ 7 - 6
src/java/test/org/apache/zookeeper/test/FLETest.java

@@ -202,7 +202,7 @@ public class FLETest extends ZKTestCase {
                                  * joined.
                                  */
                                 successCount++;
-                                notify();
+                                self.notify();
                             }
                         
                             /*
@@ -301,8 +301,9 @@ public class FLETest extends ZKTestCase {
             port[i] = PortAssignment.unique();
             peers.put(Long.valueOf(i),
                     new QuorumServer(i,
-                            new InetSocketAddress(PortAssignment.unique()),
-                    new InetSocketAddress(PortAssignment.unique()), new InetSocketAddress(port[i])));
+                            new InetSocketAddress("127.0.0.1", PortAssignment.unique()),
+                    new InetSocketAddress("127.0.0.1", PortAssignment.unique()),
+                    new InetSocketAddress("127.0.0.1", port[i])));
             tmpdir[i] = ClientBase.createTmpDir();           
         }
 
@@ -403,9 +404,9 @@ public class FLETest extends ZKTestCase {
             port[sid] = PortAssignment.unique();
             peers.put(Long.valueOf(sid),
                     new QuorumServer(sid,
-                            new InetSocketAddress(PortAssignment.unique()),
-                    new InetSocketAddress(PortAssignment.unique()),
-                    new InetSocketAddress(port[sid])));
+                            new InetSocketAddress("127.0.0.1", PortAssignment.unique()),
+                    new InetSocketAddress("127.0.0.1", PortAssignment.unique()),
+                    new InetSocketAddress("127.0.0.1", port[sid])));
             tmpdir[sid] = ClientBase.createTmpDir();          
         }
         // start 2 peers and verify if they form the cluster