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

Jia Zhai commented on BOOKKEEPER-866:
-------------------------------------

org.apache.bookkeeper.client.BookKeeperTest.testConstructionZkDelay[0]
org.apache.bookkeeper.client.BookKeeperTest.testConstructionNotConnectedExplicitZk[0]
org.apache.bookkeeper.client.BookKeeperTest.testConstructionZkDelay[1]
org.apache.bookkeeper.client.BookKeeperTest.testConstructionNotConnectedExplicitZk[1]

These 4 tests failed at here:
  java.io.IOException: ZooKeeper thread not found
      at 
org.apache.bookkeeper.test.ZooKeeperUtil.sleepServer(ZooKeeperUtil.java:134)

org.apache.bookkeeper.zookeeper.TestZooKeeperClient.testReconnectAfterExipred
this test failed at here:
java.lang.NullPointerException
        at 
org.apache.bookkeeper.zookeeper.ZooWorker.syncCallWithRetries(ZooWorker.java:148)
        at 
org.apache.bookkeeper.zookeeper.ZooKeeperClient.exists(ZooKeeperClient.java:763)
        at 
org.apache.bookkeeper.zookeeper.TestZooKeeperClient.testReconnectAfterExipred(TestZooKeeperClient.java:165)

suspect this is related to zookeeper or some changes in Junit. Will study more 
on them. 

> Fix compile issue when Updating junit to latest release version( 4.12) in the 
> test of  Bookkeeper-server.
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: BOOKKEEPER-866
>                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-866
>             Project: Bookkeeper
>          Issue Type: Improvement
>          Components: bookkeeper-server
>            Reporter: Jia Zhai
>            Assignee: Jia Zhai
>         Attachments: BOOKKEEPER-866.patch
>
>
> When write test cases for BOOKKEEPER-865,  It appears that current version of 
> junit could not support some new features well, such as Parameterized test. 
> Then we try to update junit to latest release version, but found " 
> junit.framework.Assert in junit.framework has been deprecated" .  
> So using this new ticket to trace this to make the objective more clear.
> The fix is simple, 
> replace 
> import junit.framework.Assert;
> to
> import org.junit.Assert; 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to