[
https://issues.apache.org/jira/browse/BOOKKEEPER-762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14007769#comment-14007769
]
Flavio Junqueira commented on BOOKKEEPER-762:
---------------------------------------------
Should the assert be assertFalse instead of assertTrue here:
{noformat}
conf.setUseHostNameAsBookieID(false);
b = new Bookie(conf);
b.start();
assertTrue("Fails to recognize bookie which was started with HostName as ID",
conf.getUseHostNameAsBookieID());
{noformat}
> CookieTest failure
> ------------------
>
> Key: BOOKKEEPER-762
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-762
> Project: Bookkeeper
> Issue Type: Bug
> Reporter: Flavio Junqueira
>
> I'm getting this test failure in trunk consistently:
> {noformat}
> -------------------------------------------------------------------------------
> Test set: org.apache.bookkeeper.bookie.CookieTest
> -------------------------------------------------------------------------------
> Tests run: 13, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.208 sec
> <<< FAILURE!
> testRestartWithIpAddressAsBookieID(org.apache.bookkeeper.bookie.CookieTest)
> Time elapsed: 0.155 sec <<< FAILURE!
> java.lang.AssertionError: Fails to recognize bookie which was started with
> HostName as ID
> at org.junit.Assert.fail(Assert.java:91)
> at org.junit.Assert.assertTrue(Assert.java:43)
> at
> org.apache.bookkeeper.bookie.CookieTest.testRestartWithIpAddressAsBookieID(CookieTest.java:405)
> 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.junit.internal.runners.statements.FailOnTimeout$1.run(FailOnTimeout.java:28)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)