[jira] [Commented] (ZOOKEEPER-1774) QuorumPeerMainTest fails consistently with "complains about host" assertion failure

2013-10-08 Thread Hudson (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789111#comment-13789111
 ] 

Hudson commented on ZOOKEEPER-1774:
---

SUCCESS: Integrated in ZooKeeper-trunk #2082 (See 
[https://builds.apache.org/job/ZooKeeper-trunk/2082/])
ZOOKEEPER-1774. QuorumPeerMainTest fails consistently with complains about 
host" assertion failure (phunt) (phunt: 
http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1530157)
* /zookeeper/trunk/CHANGES.txt
* 
/zookeeper/trunk/src/java/test/org/apache/zookeeper/server/quorum/QuorumPeerMainTest.java


> QuorumPeerMainTest fails consistently with "complains about host" assertion 
> failure
> ---
>
> Key: ZOOKEEPER-1774
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1774
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: quorum, tests
>Affects Versions: 3.4.6
> Environment: Ubuntu 13.04 
> Linux version 3.8.0-30-generic (buildd@akateko) (gcc version 4.7.3 
> (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #44-Ubuntu SMP Thu Aug 22 20:54:42 UTC 2013
> java -version
> java version "1.6.0_45"
> Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
> Java HotSpot(TM) Server VM (build 20.45-b01, mixed mode)
>Reporter: Patrick Hunt
>Assignee: Patrick Hunt
>Priority: Blocker
> Fix For: 3.4.6, 3.5.0
>
> Attachments: ZOOKEEPER-1774-b34.patch, ZOOKEEPER-1774.patch
>
>
> QuorumPeerMainTest fails consistently with "complains about host" assertion 
> failure.
> {noformat}
> 2013-10-01 16:09:17,962 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testBadPeerAddressInQuorum
> java.lang.AssertionError: complains about host
>   at org.junit.Assert.fail(Assert.java:91)
>   at org.junit.Assert.assertTrue(Assert.java:43)
>   at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPeerAddressInQuorum(QuorumPeerMainTest.java:434)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>   at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
>   at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>   at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>   at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
> 2013-10-01 16:09:17,963 [myid:] - INFO  [main:ZKTestCase$1@65] - FAILED 
> testBadPeerAddressInQuorum
> java.lang.AssertionError: complains about host
>   at org.junit.Assert.fail(Assert.java:91)
>   at org.junit.Assert.assertTrue(Assert.java:43)
>   at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPeerAddressInQuorum(QuorumPeerMainTest.java:434)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)

[jira] [Commented] (ZOOKEEPER-1774) QuorumPeerMainTest fails consistently with "complains about host" assertion failure

2013-10-06 Thread Benjamin Reed (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13787936#comment-13787936
 ] 

Benjamin Reed commented on ZOOKEEPER-1774:
--

it could be dns timeout issues. we only wait about 5 seconds for the error to 
happen, but your DNS setup may have timeouts longer than that. perhaps we 
should bump the timeout on line 404 to be more like 15 seconds.

> QuorumPeerMainTest fails consistently with "complains about host" assertion 
> failure
> ---
>
> Key: ZOOKEEPER-1774
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1774
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: quorum, tests
>Affects Versions: 3.4.6
> Environment: Ubuntu 13.04 
> Linux version 3.8.0-30-generic (buildd@akateko) (gcc version 4.7.3 
> (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #44-Ubuntu SMP Thu Aug 22 20:54:42 UTC 2013
> java -version
> java version "1.6.0_45"
> Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
> Java HotSpot(TM) Server VM (build 20.45-b01, mixed mode)
>Reporter: Patrick Hunt
>Priority: Blocker
> Fix For: 3.4.6, 3.5.0
>
>
> QuorumPeerMainTest fails consistently with "complains about host" assertion 
> failure.
> {noformat}
> 2013-10-01 16:09:17,962 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testBadPeerAddressInQuorum
> java.lang.AssertionError: complains about host
>   at org.junit.Assert.fail(Assert.java:91)
>   at org.junit.Assert.assertTrue(Assert.java:43)
>   at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPeerAddressInQuorum(QuorumPeerMainTest.java:434)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>   at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
>   at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>   at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>   at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
> 2013-10-01 16:09:17,963 [myid:] - INFO  [main:ZKTestCase$1@65] - FAILED 
> testBadPeerAddressInQuorum
> java.lang.AssertionError: complains about host
>   at org.junit.Assert.fail(Assert.java:91)
>   at org.junit.Assert.assertTrue(Assert.java:43)
>   at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPeerAddressInQuorum(QuorumPeerMainTest.java:434)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>   at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.ja

[jira] [Commented] (ZOOKEEPER-1774) QuorumPeerMainTest fails consistently with "complains about host" assertion failure

2013-10-05 Thread Patrick Hunt (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13787275#comment-13787275
 ] 

Patrick Hunt commented on ZOOKEEPER-1774:
-

Doesn't fail on my internal CI either, seems to be related to my laptop env. 
Some timing issues it seems... still looking.

> QuorumPeerMainTest fails consistently with "complains about host" assertion 
> failure
> ---
>
> Key: ZOOKEEPER-1774
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1774
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: quorum, tests
>Affects Versions: 3.4.6
> Environment: Ubuntu 13.04 
> Linux version 3.8.0-30-generic (buildd@akateko) (gcc version 4.7.3 
> (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #44-Ubuntu SMP Thu Aug 22 20:54:42 UTC 2013
> java -version
> java version "1.6.0_45"
> Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
> Java HotSpot(TM) Server VM (build 20.45-b01, mixed mode)
>Reporter: Patrick Hunt
>Priority: Blocker
> Fix For: 3.4.6, 3.5.0
>
>
> QuorumPeerMainTest fails consistently with "complains about host" assertion 
> failure.
> {noformat}
> 2013-10-01 16:09:17,962 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testBadPeerAddressInQuorum
> java.lang.AssertionError: complains about host
>   at org.junit.Assert.fail(Assert.java:91)
>   at org.junit.Assert.assertTrue(Assert.java:43)
>   at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPeerAddressInQuorum(QuorumPeerMainTest.java:434)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>   at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
>   at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>   at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>   at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
> 2013-10-01 16:09:17,963 [myid:] - INFO  [main:ZKTestCase$1@65] - FAILED 
> testBadPeerAddressInQuorum
> java.lang.AssertionError: complains about host
>   at org.junit.Assert.fail(Assert.java:91)
>   at org.junit.Assert.assertTrue(Assert.java:43)
>   at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPeerAddressInQuorum(QuorumPeerMainTest.java:434)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>   at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
>   at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
>   at 
> or

[jira] [Commented] (ZOOKEEPER-1774) QuorumPeerMainTest fails consistently with "complains about host" assertion failure

2013-10-05 Thread Flavio Junqueira (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13787236#comment-13787236
 ] 

Flavio Junqueira commented on ZOOKEEPER-1774:
-

It doesn't fail for me...

> QuorumPeerMainTest fails consistently with "complains about host" assertion 
> failure
> ---
>
> Key: ZOOKEEPER-1774
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1774
> Project: ZooKeeper
>  Issue Type: Bug
>  Components: quorum, tests
>Affects Versions: 3.4.6
> Environment: Ubuntu 13.04 
> Linux version 3.8.0-30-generic (buildd@akateko) (gcc version 4.7.3 
> (Ubuntu/Linaro 4.7.3-1ubuntu1) ) #44-Ubuntu SMP Thu Aug 22 20:54:42 UTC 2013
> java -version
> java version "1.6.0_45"
> Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
> Java HotSpot(TM) Server VM (build 20.45-b01, mixed mode)
>Reporter: Patrick Hunt
>Priority: Blocker
> Fix For: 3.4.6, 3.5.0
>
>
> QuorumPeerMainTest fails consistently with "complains about host" assertion 
> failure.
> {noformat}
> 2013-10-01 16:09:17,962 [myid:] - INFO  
> [main:JUnit4ZKTestRunner$LoggedInvokeMethod@54] - TEST METHOD FAILED 
> testBadPeerAddressInQuorum
> java.lang.AssertionError: complains about host
>   at org.junit.Assert.fail(Assert.java:91)
>   at org.junit.Assert.assertTrue(Assert.java:43)
>   at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPeerAddressInQuorum(QuorumPeerMainTest.java:434)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>   at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
>   at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>   at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
>   at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
>   at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
>   at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
>   at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
>   at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
>   at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:518)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1052)
>   at 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:906)
> 2013-10-01 16:09:17,963 [myid:] - INFO  [main:ZKTestCase$1@65] - FAILED 
> testBadPeerAddressInQuorum
> java.lang.AssertionError: complains about host
>   at org.junit.Assert.fail(Assert.java:91)
>   at org.junit.Assert.assertTrue(Assert.java:43)
>   at 
> org.apache.zookeeper.server.quorum.QuorumPeerMainTest.testBadPeerAddressInQuorum(QuorumPeerMainTest.java:434)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:597)
>   at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>   at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>   at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>   at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>   at 
> org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
>   at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48)
>   at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
>   at

[jira] [Commented] (ZOOKEEPER-1774) QuorumPeerMainTest fails consistently with "complains about host" assertion failure

2013-10-03 Thread Patrick Hunt (JIRA)

[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-1774?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13785667#comment-13785667
 ] 

Patrick Hunt commented on ZOOKEEPER-1774:
-

This fails intermittently for me. It's happening with both jdk6 (u45) and jdk7 
(ju25). In both 3.4 branch and trunk.

When it fails this is what I see in the log. afaict this means that the servers 
are not actually starting

{noformat}
2013-10-03 15:30:19,422 [myid:] - INFO  [main:ZKTestCase$1@50] - STARTING 
testBadPeerAddressInQuorum
2013-10-03 15:30:19,422 [myid:] - INFO  
[main:JUnit4ZKTestRunner$LoggedInvokeMethod@50] - RUNNING TEST METHOD 
testBadPeerAddressInQuorum
2013-10-03 15:30:19,423 [myid:] - INFO  [main:PortAssignment@32] - assigning 
port 11245
2013-10-03 15:30:19,423 [myid:] - INFO  [main:PortAssignment@32] - assigning 
port 11246
2013-10-03 15:30:19,423 [myid:] - INFO  [main:PortAssignment@32] - assigning 
port 11247
2013-10-03 15:30:19,423 [myid:] - INFO  [main:PortAssignment@32] - assigning 
port 11248
2013-10-03 15:30:19,423 [myid:] - INFO  [main:PortAssignment@32] - assigning 
port 11249
2013-10-03 15:30:19,423 [myid:] - INFO  [main:PortAssignment@32] - assigning 
port 11250
2013-10-03 15:30:19,423 [myid:] - INFO  [main:QuorumPeerTestBase$MainThread@64] 
- id = 1 tmpDir = 
/home/phunt/dev/svn/svn-zookeeper34/build/test/tmp/test6192936857075354198.junit.dir
 clientPort = 11245
2013-10-03 15:30:19,424 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:19,425 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:19,424 [myid:] - INFO  [Thread-60:QuorumPeerConfig@103] - 
Reading configuration from: 
/home/phunt/dev/svn/svn-zookeeper34/build/test/tmp/test6192936857075354198.junit.dir/zoo.cfg
2013-10-03 15:30:19,675 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:19,676 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:19,929 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:19,929 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:20,181 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:20,182 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:20,434 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:20,435 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:20,687 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:20,688 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:20,939 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:20,940 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:21,192 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:21,193 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:21,443 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:21,444 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:21,695 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:21,695 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:21,947 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:21,948 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:22,200 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:22,200 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:22,453 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:22,453 [myid:] - INFO  [main:ClientBase@239] - server 
127.0.0.1:11245 not up java.net.ConnectException: Connection refused
2013-10-03 15:30:22,706 [myid:] - INFO  [main:FourLetterWordMain@43] - 
connecting to 127.0.0.1 11245
2013-10-03 15:30:22,708 [myid:] - INFO  [main:ClientBase@2