[
https://issues.apache.org/jira/browse/CURATOR-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14055024#comment-14055024
]
Steve Loughran commented on CURATOR-117:
----------------------------------------
Stack
{code}
"main" prio=5 tid=0x00007fcd5b017800 nid=0x1903 waiting on condition
[0x000000010c8ff000]
java.lang.Thread.State: WAITING (parking)
at sun.misc.Unsafe.park(Native Method)
- parking to wait for <0x00000007ec01ab90> (a
java.util.concurrent.CountDownLatch$Sync)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:834)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:994)
at
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1303)
at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:236)
at
org.apache.curator.test.TestingZooKeeperMain.blockUntilStarted(TestingZooKeeperMain.java:81)
at
org.apache.curator.test.TestingZooKeeperServer.start(TestingZooKeeperServer.java:144)
at org.apache.curator.test.TestingServer.<init>(TestingServer.java:75)
at org.apache.curator.test.TestingServer.<init>(TestingServer.java:68)
at
org.apache.hadoop.yarn.registry.AbstractZKRegistryTest.createZKServer(AbstractZKRegistryTest.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
at
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.jav
{code}
> TestingServer to detect failures of
> ------------------------------------
>
> Key: CURATOR-117
> URL: https://issues.apache.org/jira/browse/CURATOR-117
> Project: Apache Curator
> Issue Type: Improvement
> Components: Tests
> Affects Versions: 2.4.1
> Reporter: Steve Loughran
> Priority: Minor
>
> {{TestingServer}} blocks until the ZK server is started. But if it doesn't
> start for some reason, the block lasts until the test run times out -which
> then fails the test with little in terms of meaningful messages.
--
This message was sent by Atlassian JIRA
(v6.2#6252)